Testcase # 3 Failure In Arrays-Target Sum Pairs Problem

I have written the function to print all the pair whose sum is equal to the target, but its showing Testcase 3 wrong answer. I couldn’t find the error in my code. Link to the solution is: https://ide.codingblocks.com/s/79799