Target sum problem

please check my code this is not passing test case 0 but rest are accepted …
i m not able to debug .

Please save your code on ide.codingblocks.com and share its link.

https://ide.codingblocks.com/s/191707 pl. check

Consider a case:
5
5
2
3
4
1
6

Your o/p:
1 and 5
2 and 4
3 and 3

Exp o/p:
1 and 5
2 and 4

thanks i got my small mistake