Here’s a link to my code - https://ide.codingblocks.com/s/392425
Code runs and gives correct output on my computer but doesn't work on codingblocks, just shows wrong answer
for test case :
1
3
10 -12 11
the correct answer will be21
debug for this