getting error in dijkstra code

used priority queue but not working properly please help

What kind of error are you getting? and bro, one error that I spotted was in line 8 vector<vector >vec(m+1); vector size should be n+1 as nodes are from 1 to n.

2 Likes

thank you @ssp547

is your code working properly now? or it was something else

what u pointed out was the only mistake

wow man… you have became a nice bug finder now a days :slight_smile: @ss547

Thanks!!! for the compliment :slight_smile:

1 Like