Phythagoras tripplet

11).sir [ 9 12 and 15] is also a tripplet so how to get them .
2). my programme is compiling for input =1 and giving correct result but on submission it is showing wrong .

Use long long int instead of int.