All seems fine to me , but still testcase 1 and testcase 2 are failing.
My Code: https://ide.codingblocks.com/s/168000
Question : Given a number N (denoting one of the legs of the triangle), Print its Pythagoras pair in increasing order if they exist. Otherwise, print β-1β.