Munmap_chunk() : invalid pointer Error

Revision en1, by TheNoOne, 2019-03-14 01:04:15

https://codeforces.net/contest/1097/submission/51276480 : This is the link to my submission for the problem https://codeforces.net/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!!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English TheNoOne 2019-03-14 01:04:15 466 Initial revision (published)