Median of a running stream

sir i am unable to find what i have done wrong in the code
running median.cpp

Hi Rahul, please avoid asking same doubt multiple times.