Test case error "Pythagorean Triplet"


This is the link to the code.
It is not passing test case 0 and 1 but is passing the rest of them. I am not able to fond a problem in the code.

Use long data type everywhere.