Help with error

prob: https://hack.codingblocks.com/app/contests/2022/505/problem

sol: https://ide.codingblocks.com/s/409556

I did dry run it and it looks to be correct I think there is some minor mistake

check now =>


Passing all test cases.

why was it not working ??

Line number 86, just issue with that.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.