Runtime error while reading integers with cin

Revision en1, by tarkus, 2019-03-09 03:07:49

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.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English tarkus 2019-03-09 03:07:49 302 Initial revision (published)