Getting WA in CFINASUM

I matched my output by generating random testcase with someones code in AC. But still cant find the test case in which my output is wrong. Can someone please help me in finding fault in my code.
problem : https://www.codechef.com/problems/CFINASUM
code : https://www.codechef.com/viewsolution/29135026

According to the setter’s solution, the answer to the testcase:

1
11
66 18 -33 -30 77 -17 84 -84 5 -26 24

is 2.

3 Likes

oh! thankyou I got my mistake.

1 Like