About pythagoras triplet

my code for pythagoras triplet gives the same output as given in the question but when i submit my code it says that test cases failed ,how is it possible??

Please save your code on ide.codingblocks.com and then share its link.