Median in a stream of integers

I am unable to pass the test cases

make two changes

  1. put an endl after each testcase
  2. instead of float and int use long long int

i hope this help
if you have more doubts regarding this feel free to ask
if your doubt is resolved mark it as resolved from your doubt section inside your course