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.








you're simply missing a return in line 71 after giving your answer
oh yeah... thanks a lot