Getting wrong testcases

my code is working fine with al the numbers but still i am getting the wrong testcases
my code: https://ide.codingblocks.com/s/100298
i know my code doesnt look a conventional one as i have just wrote it without thinking twice whatever the idea came i just wrote, so please also guide me the other way of thinking

Problem statement is pretty clear, We just need to find such pairs who satisfies the pythagoras theorem upto that number.

The idea is to put two nested loops and print those numbers whose squared sum is equal to the given number.

So you can basically use a nested loop inside the while loop ,
for i loop runs from 0,n till i * i<n inside this loop you can use another loop j which runs from i to n till j*j<n
Inside this j loop check for i * i + j * j == n if it is true then print (i,j)

thanks and whats wrong with my code

@manit123 hey manit I am so confused in loops could you please me out.I am not getting what you trying to say whenever I am design a loop It says syntax error.

@jaiskid share the code and i will look into it