Runtime Error — Can't understand why

Revision en2, by 627, 2018-01-14 14:56:03

I was participating in the Educational Round the other day. I was trying 915E. I submitted this code but ended up with an RTE on the very first case. Whereas this code doesn't cause any problem on various online IDEs, I am getting RTE on Codeforces. So I debugged a while and ended up with this code. From what I see, its not inputting just after one iteration.

I am all lost here. Anything on this will be so much of help right now! Thanks in advance.

Tags runtime error

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English 627 2018-01-14 14:56:03 14 Tiny change: 'etting RTE. So I deb' -> 'etting RTE on Codeforces. So I deb'
en1 English 627 2018-01-14 14:52:10 638 Initial revision (published)