https://ide.codingblocks.com/s/201847 please refer this link for code
I am not able to find mistake in my code of finding median in continous stream
Hi @vanshu21, question expects you to take input t and consider t test cases so handle that part also somewhere you are accesing invalid input due to which you are getting runtime error
I highly suggest you to use stl function for maxheap and minheap
i will provide you the code
In case of any doubt feel free to ask 
mark your doubt as resolved if you got the answer