Pythagoras triplet code error

My code has partial correct answer.I got 40/100.
My code id is https://ide.codingblocks.com/s/69137

@Subham2107 hey shubham use long long int instead of double and int and also include when n=1 you ans should be -1 your ans is printing 0 1 but it should be -1

1 Like

Hey Shubham,
As you are not responding to this thread, I am marking your doubt as Resolved for now. Re-open it if required.

Please mark your doubts as resolved in your course’s “ Ask Doubt ” section, when your doubt is resolved.