ICPC Trip wrong output

Hello sir/ma’am,

I tried to write the code for this problem but my code always shows output as 0, could you please help me and tell what’s wrong? sharing my code: https://ide.codingblocks.com/s/239896

Please reply…

@priyanshi.agarwal3405 hey there is problem in your dikshtra code,please check it again and I suggest you to use priority queue instead of set.

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.