How to avoid heap-buffer-overflow

Правка en1, от rahulb, 2018-08-15 17:37:26

https://codeforces.me/contest/762/submission/41625289 This is the link to my solution to problem 762C. I am getting a runtime error on test 25 saying heap-buffer overflow. From what I got through googling I think it occurs when we try to use too much memory, but I am pretty sure I am not doing that here as I have just made 2 strings with maximum length 10^5.

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en1 Английский rahulb 2018-08-15 17:37:26 395 Initial revision (published)