Error in vertical order print binary

Hey, I am not being able to find error in my code. Please help me out.
here is the link to my code:

@sanjana23
hello Sanjana,
declare ur map inside while loop.

but there is no use of hash map, and moreover it limits its scope

image
u are using hashmap in ur code.

make sure u declare it inside while loop otherwise answer for previous data will remain in that map and u will print that too.

it will not limit it scope because u are sending it in each function .

sorry sir but i am not getting it, if we declare inside the while loop ,
then when we call vertical order print it shows error that h in out of scope

@vanshu21
yeah u are right .i am bit confuse with the input format.
can please paste the question so that i can check what input we are given and in what format.

if u have t different test cases then u need to declare u map insider while loop .
otherwise outside of while loop.