I have written my code according to the hint video provided, but still one of my test case is giving wrong answer. And i guess it is so because I may be not detecting the non existence of Pythagoras triplet. Kindly give me some direction to think.
Detection of non existence of Pythagoras Triplet
@7nishit If you think its because of that then you need to add this line.
If( N<3) cout<<"-1"<<endl;