For this Question: Given three numbers tell whether they form a pythagorus triplet or not. 
Given A , B and C. 
Three integers form pythagorus triplet if sum of square of two is equal to square of third.The first line of the input contains three space separated integers A, B and C.

Constraints
1 <= A,B,C <= 100The output should contain "YES" if they form a triplet else you should print "NO" without quotes.Sample Input
4 3 5

Sample Output
YES

Sample Input
4 6 5

Sample Output
NO, I have written this Solution Code: #include<bits/stdc++.h>
using namespace std;

int main()
{
int a[3];
cin>>a[0]>>a[1]>>a[2];
sort(a,a+3);
if((a[0]*a[0]+a[1]*a[1])==a[2]*a[2]){cout<<"YES";}
else{cout<<"NO";}
}
, In this Programming Language: C++, Now tell me if this Code is compilable or not?