[Help] C++ Run time error for pointers based solution;
Разница между en1 и en2, 97 символ(ов) изменены
Hi Codeforces community, can you help me to find the root of run time error in my solution for this problem [problem:1428C]↵

Error is status_access_violation, google says it's something about pointers;↵

Submission link: [submission:180179520]↵



The approach is -> transform string to linked list of chars and when deleting two characters fix the "prev" for "next";↵
I generated "AB" strings up to 2^7, but it fails somewhere in 2^8, I'm not sure how to debug it; May be it's a memory leak issue?, I'm creating new pointers without deleting them, I tried using "delete pointer" but it did not help;




**UPD**↵

This was the solution https://codeforces.com/blog/entry/108880?#comment-971099

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский Zealotrahl 2022-11-09 14:59:03 97
en1 Английский Zealotrahl 2022-11-09 13:07:50 660 Initial revision (published)