Not able to print output correctly

hello @supratik260699
image

here dont iterate over map.

run a roop from 1 to number of verted
and print dist[i]

refer this->https://ide.codingblocks.com/s/244050

I have made the desired changes and output is coming correctly but still test cases are not passing why??


it should be INT_MAX

1 Like