Getting wrong answer for PAIRSUM2

Can anyone please give the test cases where i am getting wrong answer…please!!!

question->CodeChef: Practical coding for everyone
my code->VvTKJv - Online C++0x Compiler & Debugging Tool - Ideone.com

It is summation why you put subtraction ?

1 Like