1 / 3
Sep 2021

I can’t help with your problem, but don’t assume you’ve got test cases 1-14 correct. SPOJ doesn’t stop processing on the first WA, and will process all test cases before giving a WA verdict.

I found the mistake! I didn’t update cnt after erase function.
:frowning: Sorry for bothering and 10x for the advise though.