ironsoul's blog

By ironsoul, history, 3 years ago, In English,

See this submission -> Click.

As you see, I got a runtime error because of "assert" function that I added while debugging my code. My array S is an array of pairs where second value is an index from (1..m). I can not understrand why my code is getting a runtime error. "assert(s[i].second <= m)" should be fine but it leads to an error. Why?

Read more »

 
 
 
 
  • Vote: I like it
  • +1
  • Vote: I do not like it

By ironsoul, history, 4 years ago, translation, In English,

Course from ITMO. Now available) Click

Read more »

 
 
 
 
  • Vote: I like it
  • +5
  • Vote: I do not like it