Please, try EDU on Codeforces! New educational section with videos, subtitles, texts, and problems. ×

### AbhishekAg's blog

By AbhishekAg, history, 9 days ago, ,

Can't understand the diagnostics to this submission for the problem.

• +2

 » 9 days ago, # |   +3 This type of diagnostic error (the one in your submission) usually happens in my case whenever I try to access a non-allocated memory space (like trying to access an element not in an array), I can see a lower_bound in your code, have you checked for it's edge cases, like when it throws last?PS — I am only a noob so take this with a grain of salt
•  » » 9 days ago, # ^ |   +3 Seems fine to me....have used the same thing many times.....but am not much of an expert myself.....
 » 9 days ago, # | ← Rev. 2 →   +7 You do binary search on a not sorted array. Error: elements in iterator range [__first, __last) are not partitioned by the value __val. 
•  » » 9 days ago, # ^ |   +8 Thanks......I just assumed that input was ordered.....
 » 9 days ago, # |   0 Still getting WA for this, would really appreciate if someone could point out what is wrong?