Wierd RunTime Error

Правка en1, от Numinous, 2023-09-04 22:42:21

So I was solving this problem Keen Tree Calculation from the recent contest, I was not able to figure out why I was getting a runtime error on Test 11. After struggling for half a day, I decided look in other people's submission and I found out a team which faced the similar issue. The fix for the problem was to make a copy of vector and then to iterate on it rather than iterating on the original. Here I have linked my submissions Accepted , RTE . It would be of great help, if someone can explain why the latter doesn't work.

Thanks

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en4 Английский Numinous 2023-09-05 21:10:46 8
en3 Английский Numinous 2023-09-05 11:06:58 135
en2 Английский Numinous 2023-09-04 22:50:21 2
en1 Английский Numinous 2023-09-04 22:42:21 737 Initial revision (published)