Print pair with a target sum

https://ide.codingblocks.com/#/s/19102
no output.
i don’t wanna use that loop method,it’s working though i know.
please help.