Pythagoras Triplet (Interview Preparation Course)

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”.

@rk_city hey ravi do one thing use long long int cause input may be large if it will not the evaluation then I will give formula’s for the this problem.