Hello guys, yesterday i was trying to solve this problem 20C - Алгоритм Дейкстры? 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.