Hostel Visit error

this is the link to the code it is giving correct output but showing wrong ans while submitting help//

hello @Vivek-Pandey-2129725577345937
here
image
u can perform this push and pop operation ,
only when pq.top() > rocket(x,y)

so put these two statement inside if statement and the condition of that if statement should be pq.top() > rocket(x,y)