Array-Target Sum pair problem

I have applied bruth force approach and i’m getting correct output in my ide but when i try to submit in coding blocks ide i’m getting a wrong answer.Can you please help me in my code…This is my link of the code https://ide.codingblocks.com/s/81374