Error in hostel Visit

I am solving hostel visit problem of stl challenge but don’t know why I’m getting error while submitting the code even though code is running fine on my pc

Code: https://ide.codingblocks.com/s/77988

you have initialised priority queue with “int” and you are pushing long long int…?

I have change it, but still I’m getting wrong answer. Can you suggest any changes in my code?

check this https://ide.codingblocks.com/s/78040

1 Like

yes change you x,y also please

Thanks got AC :slight_smile:

change your x,y to long long int

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.