Блог пользователя TheNoOne

Автор TheNoOne, история, 5 лет назад, По-английски

https://codeforces.com/contest/1097/submission/51276480 : This is the link to my submission for the problem https://codeforces.com/contest/1097/problem/E. The program gives Munmap_chunk(): invalid pointer error (even for basic testcases like 1 4 4 3 1 2). I am not able to figure out where the problem is. Please help!!

  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
5 лет назад, # |
Rev. 2   Проголосовать: нравится 0 Проголосовать: не нравится

Line 87 assigning on a negative index (par2) and Line 97 lis.size()-2 might go unsigned underflow