Hello guys, yesterday i was trying to solve this problem 20C - Dijkstra? but i'm getting runtime error with this test case: 50906466
Debugging i found out my program is crashing when is reading "w" in the for loop, but i can't understand why.
Runtime error while reading integers with cin
Hello guys, yesterday i was trying to solve this problem 20C - Dijkstra? but i'm getting runtime error with this test case: 50906466
Debugging i found out my program is crashing when is reading "w" in the for loop, but i can't understand why.