Test cases failed for median in running stream

please help me to pass test cases as i am getting correct answer while running program bur all test cases failed

please share the link of code

how to send Link of Code ?
paste you code at

click on file->save->link will be generated
send the link of code generated
it will look like https://ide.codingblocks.com/s/258793

mistakes

  1. you have to declare leftheap and rightheap in every testcase
    so declare them inside while loop

  2. use int instead of float
    as in question it is not mention to print ans in decimal

Modified Code

if you have more doubts regarding this feel free to ask
i hope this helps
if yes hit a like and don’t forgot to mark doubt as resolved :grinning: