Language: C++

#include"bits/stdc++.h"

#define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++)
#define RFOR(i,a,b) for (ll i=(b)-1,__last_##i=(a);i>=__last_##i;i--)
#define REP(i,n) FOR(i,0,n)
#define RREP(i,n) RFOR(i,0,n)
#define __GET_MACRO3(_1, _2, _3, NAME, ...) NAME
#define rep(...) __GET_MACRO3(__VA_ARGS__, FOR, REP)(__VA_ARGS__)
#define rrep(...) __GET_MACRO3(__VA_ARGS__, RFOR, RREP)(__VA_ARGS__)
template<typename T> ostream& operator<<(ostream& os, const vector<T>& v) {
   REP(i, v.size()) { if (i)os << " "; os << v[i]; }return os;
}
template<typename T> ostream& operator<<(ostream& os, const vector<vector<T>>& v) {
   REP(i, v.size()) { if (i)os << endl; os << v[i]; }return os;
}

using namespace std;


void solve();

int main() {

   solve();
   return 0;

}

void solve() {

	vector<ll> v(3);
	ll n;

	cin >> n;

	REP(i, n) {
		cin >> v[0] >> v[1] >> v[2];
		cout << (v[0]*v[0]+v[1]*v[1]==v[2]*v[2] || v[0]*v[0]+v[2]*v[2]==v[1]*v[1] || v[1]*v[1]+v[2]*v[2]==v[0]*v[0]? "YES": "NO") << endl;
	}

}

Compiler output:
a.cc:10:22: error: 'ostream' does not name a type
   10 | template<typename T> ostream& operator<<(ostream& os, const vector<T>& v) {
      |                      ^~~~~~~
a.cc:13:22: error: 'ostream' does not name a type
   13 | template<typename T> ostream& operator<<(ostream& os, const vector<vector<T>>& v) {
      |                      ^~~~~~~
a.cc: In function 'void solve()':
a.cc:31:16: error: 'll' was not declared in this scope
   31 |         vector<ll> v(3);
      |                ^~
a.cc:31:18: error: template argument 1 is invalid
   31 |         vector<ll> v(3);
      |                  ^
a.cc:31:18: error: template argument 2 is invalid
a.cc:32:11: error: expected ';' before 'n'
   32 |         ll n;
      |           ^~
      |           ;
a.cc:34:16: error: 'n' was not declared in this scope
   34 |         cin >> n;
      |                ^
a.cc:36:13: error: expected ';' before 'i'
   36 |         REP(i, n) {
      |             ^
a.cc:3:28: note: in definition of macro 'FOR'
    3 | #define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++)
      |                            ^
a.cc:36:9: note: in expansion of macro 'REP'
   36 |         REP(i, n) {
      |         ^~~
a.cc:36:13: error: 'i' was not declared in this scope
   36 |         REP(i, n) {
      |             ^
a.cc:3:49: note: in definition of macro 'FOR'
    3 | #define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++)
      |                                                 ^
a.cc:36:9: note: in expansion of macro 'REP'
   36 |         REP(i, n) {
      |         ^~~
a.cc:3:51: error: '__last_i' was not declared in this scope
    3 | #define FOR(i,a,b) for (ll i=(a),__last_##i=(b);i<__last_##i;i++)
      |                                                   ^~~~~~~
a.cc:5:18: note: in expansion of macro 'FOR'
    5 | #define REP(i,n) FOR(i,0,n)
      |                  ^~~
a.cc:36:9: note: in expansion of macro 'REP'
   36 |         REP(i, n) {
      |         ^~~
a.cc:37:25: error: invalid types 'int[int]' for array subscript
   37 |                 cin >> v[0] >> v[1] >> v[2];
      |                         ^
a.cc:37:33: error: invalid types 'int[int]' for array subscript
   37 |                 cin >> v[0] >> v[1] >> v[2];
      |                                 ^
a.cc:37:41: error: invalid types 'int[int]' for array subscript
   37 |                 cin >> v[0] >> v[1] >> v[2];
      |                                         ^
a.cc:38:27: error: invalid types 'int[int]' for array subscript
   38 |                 cout << (v[0]*v[0]+v[1]*v[1]==v[2]*v[2] || v[0]*v[0]+v[2]*v[2]==v[1]*v[1] || v[1]*v[1]+v[2]*v[2]==v[0]*v[0]? "YES": "NO") << endl;
      |                           ^
a.cc:38:32: error: invalid types 'int[int]' for array subscript
   38 |                 cout << (v[0]*v[0]+v[1]*v[1]==v[2]*v[2] || v[0]*v[0]+v[2]*v[2]==v[1]*v[1] || v[1]*v[1]+v[2]*v[2]==v[0]*v[0]? "YES": "NO") << endl;
      |                                ^
a.cc:38:37: error: invalid types 'int[int]' for array subscript
   38 |                 cout << (v[0]*v[0]+v[1]*v[1]==v[2]*v[2] || v[0]*v[0]+v[2]*v[2]==v[1]*v[1] || v[1]*v[1]+v[2]*v[2]==v[0]*v[0]? "YES": "NO") << endl;
      |                                     ^
a.cc:38:42: error: invalid types 'int[int]' for array subscript
   38 |                 cout << (v[0]*v[0]+v[1]*v[1]==v[2]*v[2] || v[0]*v[0]+v[2]*v[2]==v[1]*v[1] || v[1]*v[1]+v[2]*v[2]==v[0]*v[0]? "YES": "NO") << endl;
      |                                          ^
a.cc:38:48: error: invalid types 'int[int]' for array subscript
   38 |                 cout << (v[0]*v[0]+v[1]*v[1]==v[2]*v[2] || v[0]*v[0]+v[2]*v[2]==v[1]*v[1] || v[1]*v[1]+v[2]*v[2]==v[0]*v[0]? "YES": "NO") << endl;
      |                                                ^
a.cc:38:53: error: invalid types 'int[int]' for array subscript
   38 |                 cout << (v[0]*v[0]+v[1]*v[1]==v[2]*v[2] || v[0]*v[0]+v[2]*v[2]==v[1]*v[1] || v[1]*v[1]+v[2]*v[2]==v[0]*v[0]? "YES": "NO") << endl;
      |                                                     ^
a.cc:38:61: error: invalid types 'int[int]' for array subscript
   38 |                 cout << (v[0]*v[0]+v[1]*v[1]==v[2]*v[2] || v[0]*v[0]+v[2]*v[2]==v[1]*v[1] || v[1]*v[1]+v[2]*v[2]==v[0]*v[0]? "YES": "NO") << endl;
      |                                                             ^
a.cc:38:66: error: invalid types 'int[int]' for array subscript
   38 |                 cout << (v[0]*v[0]+v[1]*v[1]==v[2]*v[2] || v[0]*v[0]+v[2]*v[2]==v[1]*v[1] || v[1]*v[1]+v[2]*v[2]==v[0]*v[0]? "YES": "NO") << endl;
      |                                                                  ^
a.cc:38:71: error: invalid types 'int[int]' for array subscript
   38 |                 cout << (v[0]*v[0]+v[1]*v[1]==v[2]*v[2] || v[0]*v[0]+v[2]*v[2]==v[1]*v[1] || v[1]*v[1]+v[2]*v[2]==v[0]*v[0]? "YES": "NO") << endl;
      |                                                                       ^
a.cc:38:76: error: invalid types 'int[int]' for array subscript
   38 |                 cout << (v[0]*v[0]+v[1]*v[1]==v[2]*v[2] || v[0]*v[0]+v[2]*v[2]==v[1]*v[1] || v[1]*v[1]+v[2]*v[2]==v[0]*v[0]? "YES": "NO") << endl;
      |                                                                            ^
a.cc:38:82: error: invalid types 'int[int]' for array subscript
   38 |                 cout << (v[0]*v[0]+v[1]*v[1]==v[2]*v[2] || v[0]*v[0]+v[2]*v[2]==v[1]*v[1] || v[1]*v[1]+v[2]*v[2]==v[0]*v[0]? "YES": "NO") << endl;
      |                                                                                  ^
a.cc:38:87: error: invalid types 'int[int]' for array subscript
   38 |                 cout << (v[0]*v[0]+v[1]*v[1]==v[2]*v[2] || v[0]*v[0]+v[2]*v[2]==v[1]*v[1] || v[1]*v[1]+v[2]*v[2]==v[0]*v[0]? "YES": "NO") << endl;
      |                                                                                       ^
a.cc:38:95: error: invalid types 'int[int]' for array subscript
   38 |                 cout << (v[0]*v[0]+v[1]*v[1]==v[2]*v[2] || v[0]*v[0]+v[2]*v[2]==v[1]*v[1] || v[1]*v[1]+v[2]*v[2]==v[0]*v[0]? "YES": "NO") << endl;
      |                                                                                               ^
a.cc:38:100: error: invalid types 'int[int]' for array subscript
   38 |                 cout << (v[0]*v[0]+v[1]*v[1]==v[2]*v[2] || v[0]*v[0]+v[2]*v[2]==v[1]*v[1] || v[1]*v[1]+v[2]*v[2]==v[0]*v[0]? "YES": "NO") << endl;
      |                                                                                                    ^
a.cc:38:105: error: invalid types 'int[int]' for array subscript
   38 |                 cout << (v[0]*v[0]+v[1]*v[1]==v[2]*v[2] || v[0]*v[0]+v[2]*v[2]==v[1]*v[1] || v[1]*v[1]+v[2]*v[2]==v[0]*v[0]? "YES": "NO") << endl;
      |                                                                                                         ^
a.cc:38:110: error: invalid types 'int[int]' for array subscript
   38 |                 cout << (v[0]*v[0]+v[1]*v[1]==v[2]*v[2] || v[0]*v[0]+v[2]*v[2]==v[1]*v[1] || v[1]*v[1]+v[2]*v[2]==v[0]*v[0]? "YES": "NO") << endl;
      |                                                                                                              ^
a.cc:38:116: error: invalid types 'int[int]' for array subscript
   38 |                 cout << (v[0]*v[0]+v[1]*v[1]==v[2]*v[2] || v[0]*v[0]+v[2]*v[2]==v[1]*v[1] || v[1]*v[1]+v[2]*v[2]==v[0]*v[0]? "YES": "NO") << endl;
      |                                                                                                                    ^
a.cc:38:121: error: invalid types 'int[int]' for array subscript
   38 |                 cout << (v[0]*v[0]+v[1]*v[1]==v[2]*v[2] || v[0]*v[0]+v[2]*v[2]==v[1]*v[1] || v[1]*v[1]+v[2]*v[2]==v[0]*v[0]? "YES": "NO") << endl;
      |                                                                                                                         ^