Getting wrong answer for PAIRSUM2

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

question->https://www.codechef.com/LTIME76B/problems/PAIRSUM2/
my code->https://ideone.com/VvTKJv

It is summation why you put subtraction ?

1 Like