While trying to solve 2108D - Needle in a Numstack, I encountered a bug I could not understand. Here is the submission 329129022. Codeforces says it's an out of bound error on line 32, but I suspect that this is coming from errors that were accumulated earlier. Can someone help me identify the error? Thanks in advance.




