Language: C++

class Tenmou{
public class HelloWorld {
    public static void main (String[] args) {

	int n;
	int a,b,c;
	int a[3];
	string str[];
	
	n = Integer.parseInt(br.readLine());
	str[]=new str[n];
	for(int i=0;i<n;i++){

	a = Integer.parseInt(br.readLine());
	b = Integer.parseInt(br.readLine());
	c = Integer.parseInt(br.readLine());

	a[0]=max(a,b,c);
	if(a[0]==a){
		a[1]=b;
		a[2]=c;
	}elseif(a[0]==b){
		a[1]=a;
		a[2]=c;
	}elseif(a[0]==c){
		a[1]=b;
		a[2]=a;
	}
	if(a[0]^2==a[1]^2+a[2]^2){
		str[i]="YES";
	}else{
		str[i]="NO";
	}
	}

	for(int i=0;i<n;i++){
				System.out.println(str[i]);
	}
    }
}
}

Compiler output:
a.cc:2:7: error: expected ':' before 'class'
    2 | public class HelloWorld {
      |       ^~~~~~
      |       :
a.cc:3:11: error: expected ':' before 'static'
    3 |     public static void main (String[] args) {
      |           ^~~~~~~
      |           :
a.cc:3:30: error: 'String' has not been declared
    3 |     public static void main (String[] args) {
      |                              ^~~~~~
a.cc:3:39: error: expected ',' or '...' before 'args'
    3 |     public static void main (String[] args) {
      |                                       ^~~~
a.cc:40:2: error: expected ';' after class definition
   40 | }
      |  ^
      |  ;
a.cc:41:2: error: expected ';' after class definition
   41 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Tenmou::HelloWorld::main(int*)':
a.cc:7:13: error: conflicting declaration 'int a [3]'
    7 |         int a[3];
      |             ^
a.cc:6:13: note: previous declaration as 'int a'
    6 |         int a,b,c;
      |             ^
a.cc:8:9: error: 'string' was not declared in this scope
    8 |         string str[];
      |         ^~~~~~
a.cc:10:13: error: 'Integer' was not declared in this scope
   10 |         n = Integer.parseInt(br.readLine());
      |             ^~~~~~~
a.cc:10:30: error: 'br' was not declared in this scope; did you mean 'b'?
   10 |         n = Integer.parseInt(br.readLine());
      |                              ^~
      |                              b
a.cc:11:9: error: 'str' was not declared in this scope; did you mean 'std'?
   11 |         str[]=new str[n];
      |         ^~~
      |         std
a.cc:11:13: error: expected primary-expression before ']' token
   11 |         str[]=new str[n];
      |             ^
a.cc:11:19: error: 'str' does not name a type
   11 |         str[]=new str[n];
      |                   ^~~
a.cc:18:10: error: invalid types 'int[int]' for array subscript
   18 |         a[0]=max(a,b,c);
      |          ^
a.cc:18:14: error: 'max' was not declared in this scope
   18 |         a[0]=max(a,b,c);
      |              ^~~
a.cc:19:13: error: invalid types 'int[int]' for array subscript
   19 |         if(a[0]==a){
      |             ^
a.cc:20:18: error: invalid types 'int[int]' for array subscript
   20 |                 a[1]=b;
      |                  ^
a.cc:21:18: error: invalid types 'int[int]' for array subscript
   21 |                 a[2]=c;
      |                  ^
a.cc:22:18: error: invalid types 'int[int]' for array subscript
   22 |         }elseif(a[0]==b){
      |                  ^
a.cc:22:10: error: 'elseif' was not declared in this scope
   22 |         }elseif(a[0]==b){
      |          ^~~~~~
a.cc:25:18: error: invalid types 'int[int]' for array subscript
   25 |         }elseif(a[0]==c){
      |                  ^
a.cc:29:13: error: invalid types 'int[int]' for array subscript
   29 |         if(a[0]^2==a[1]^2+a[2]^2){
      |             ^
a.cc:29:21: error: invalid types 'int[int]' for array subscript
   29 |         if(a[0]^2==a[1]^2+a[2]^2){
      |                     ^
a.cc:29:28: error: invalid types 'int[int]' for array subscript
   29 |         if(a[0]^2==a[1]^2+a[2]^2){
      |                            ^
a.cc:37:33: error: 'System' was not declared in this scope
   37 |                                 System.out.println(str[i]);
      |                                 ^~~~~~