This is my code. Please help me in debugging it. The error is not pointing towards any particular line. So i am unable to figure out where is the error. Please help me.
Compilation Error | Djikstra
@aman212yadav the code is now working and the test case given in example is giving correct output, but when I am submitting the code, I am getting compile error. Please help.
u need to print disance in following order (distance of 1sr vertex then 2nd then 3rd so on)
if any vertices is not visited or INT_MAX distanace then print -1.
check ur updated code here>
1 Like
Thank you for your help. I missed the "labeled as 1 to N " part in the question. Thanks a lot again.