Dijstras question

https://ide.codingblocks.com/s/187151 please make changes in my code and also tell where u change it

@sgdon142 at line 33 of your code you should check if( nodedist + x.second < dist[x.first] ) you are checking it with x.first which is node number not distance.

again error aa rha h

@sgdon142 at line 24 you have printed your src, delete that line and you are good to go.

abhi bhi wrong ans aa rh h

i have updated your code at just two points i have told you above and it is getting submitted successfully check this (https://ide.codingblocks.com/s/187459)

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.