Language: C++

include <iostream>
using namespace std;

int main()
{
	int a, b, c, d, e;
	int ans;
	
	cin >> d;
		for(int i = 0; i < d; i++)
		{
			cin >> a >> b >> c;
			
			if(a > b && a > c)
			{
					e = c;
					c = a ;
					
					ans = c * c - e * e - b * b;
				if(ans == 0)
				{
					cout << "YES" << endl;
				}
				else
				{
					cout << "NO" << endl;
				}
			}
	
			else if (b > c && b > a)
			{
				e = c;
				c = b;
			
					ans = c * c - e * e - a * a;
					if(ans == 0)
					{
						cout << "YES" << endl;
					}
					else
					{
						cout << "NO" << endl;
					}
			}
			else 
			{
				ans = c * c - a * a - b * b;
				if(ans == 0)
				{
					cout << "YES" << endl;
				}
				else
				{
					cout << "NO" << endl;
				}
			}
		}
			
	return 0;
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:9:9: error: 'cin' was not declared in this scope
    9 |         cin >> d;
      |         ^~~
a.cc:22:41: error: 'cout' was not declared in this scope
   22 |                                         cout << "YES" << endl;
      |                                         ^~~~
a.cc:22:58: error: 'endl' was not declared in this scope
   22 |                                         cout << "YES" << endl;
      |                                                          ^~~~
a.cc:26:41: error: 'cout' was not declared in this scope
   26 |                                         cout << "NO" << endl;
      |                                         ^~~~
a.cc:26:57: error: 'endl' was not declared in this scope
   26 |                                         cout << "NO" << endl;
      |                                                         ^~~~
a.cc:38:49: error: 'cout' was not declared in this scope
   38 |                                                 cout << "YES" << endl;
      |                                                 ^~~~
a.cc:38:66: error: 'endl' was not declared in this scope
   38 |                                                 cout << "YES" << endl;
      |                                                                  ^~~~
a.cc:42:49: error: 'cout' was not declared in this scope
   42 |                                                 cout << "NO" << endl;
      |                                                 ^~~~
a.cc:42:65: error: 'endl' was not declared in this scope
   42 |                                                 cout << "NO" << endl;
      |                                                                 ^~~~
a.cc:50:41: error: 'cout' was not declared in this scope
   50 |                                         cout << "YES" << endl;
      |                                         ^~~~
a.cc:50:58: error: 'endl' was not declared in this scope
   50 |                                         cout << "YES" << endl;
      |                                                          ^~~~
a.cc:54:41: error: 'cout' was not declared in this scope
   54 |                                         cout << "NO" << endl;
      |                                         ^~~~
a.cc:54:57: error: 'endl' was not declared in this scope
   54 |                                         cout << "NO" << endl;
      |                                                         ^~~~