Pythagoras triplet

i am getting 4 out of 5 test case right can you help me finding out the problem with the fifth one

@Learning_bunny hey piyush there is only problem in your code is that your code give the garbage value on the given value of 1 but it should give -1

so should i write if(n==1|| n==2)

so should i write if(n==1|| n==2) cout<<"-1"

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.