Median in a stream of running integers

My code https://ide.codingblocks.com/s/400086
I am getting wrong answer in all testcases can you please tell me where i have done wrong.

Hello @machete786 your code is perfectly fine but there was just small error that you have to declare your median as of type int.
in video prateek sir taught to declare it of type as float or double but here it is mentioned in the question to print only the integer part.


if you have any doubt you can ask here;
Happy Learning!!

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.