criyle/codenet-compile-errors huggingface dataset:
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.Exception;
import java.lang.Integer;
import java.lang.System;
import java.util.Arrays;
import java.util.StringTokenizer;

public class Main {
    public static void main(String[] a){
        try {
            BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
            int n = Integer.parseInt(r.readLine());
            StringTokenizer st;

            int length[] = new length[3];
            for(int i = 0; i < n; i++) {
                st = new StringTokenizer(r.readLine());
                for(int j = 0; j < 3; j++)  length[j] = Integer.parseInt(st.nextToken());

                Arrays.sort(side);
                if((length[0]*length[0] + length[1]*length[1]) == length[2]*length[2]) System.out.println("YES");
                 else System.out.println("NO");
            }
        } catch (Exception ex) {System.exit(0)};
    }
}

Compiler output:
Main.java:25: error: ';' expected
        } catch (Exception ex) {System.exit(0)};
                                              ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.Exception;
import java.lang.Integer;
import java.lang.System;
import java.util.Arrays;
import java.util.StringTokenizer;

public class Main {
    public static void main(String[] a){
        try {
            BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
            int n = Integer.parseInt(r.readLine());
            StringTokenizer st;

            int length[] = new length[3];
            for(int i = 0; i < n; i++) {
                st = new StringTokenizer(r.readLine());
                for(int j = 0; j < 3; j++)  length[j] = Integer.parseInt(st.nextToken());

                Arrays.sort(side);
                if((length[0]*length[0] + length[1]*length[1]) == length[2]*length[2]) System.out.println("YES");
                 else System.out.println("NO");
            }
        } catch (Exception ex) {System.exit(0)}
    }
}

Compiler output:
Main.java:25: error: ';' expected
        } catch (Exception ex) {System.exit(0)}
                                              ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.Exception;
import java.lang.Integer;
import java.lang.System;
import java.util.Arrays;
import java.util.StringTokenizer;

public class Main {
    public static void main(String[] a){
        try {
            BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
            int n = Integer.parseInt(r.readLine());
            StringTokenizer st;

            int length[] = new length[3];
            for(int i = 0; i < n; i++) {
                st = new StringTokenizer(r.readLine());
                for(int j = 0; j < 3; j++)  length[j] = Integer.parseInt(st.nextToken());

                Arrays.sort(side);
                if((length[0]*length[0] + length[1]*length[1]) == length[2]*length[2]) System.out.println("YES");
                 else System.out.println("NO");
            }
        } catch (Exception ex) {System.exit(0);}
    }
}

Compiler output:
Main.java:16: error: cannot find symbol
            int length[] = new length[3];
                               ^
  symbol:   class length
  location: class Main
Main.java:21: error: cannot find symbol
                Arrays.sort(side);
                            ^
  symbol:   variable side
  location: class Main
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.Exception;
import java.lang.Integer;
import java.lang.System;
import java.util.Arrays;
import java.util.StringTokenizer;

public class Main {
    public static void main(String[] a){
        try {
            BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
            int n = Integer.parseInt(r.readLine());
            StringTokenizer st;

            int length[] = new length[3];
            for(int i = 0; i < n; i++) {
                st = new StringTokenizer(r.readLine());
                for(int j = 0; j < 3; j++)  length[j] = Integer.parseInt(st.nextToken());

                Arrays.sort(length);
                if((length[0]*length[0] + length[1]*length[1]) == length[2]*length[2]) System.out.println("YES");
                 else System.out.println("NO");
            }
        } catch (Exception ex) {System.exit(0);}
    }
}

Compiler output:
Main.java:16: error: cannot find symbol
            int length[] = new length[3];
                               ^
  symbol:   class length
  location: class Main
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.Exception;
import java.lang.Integer;
import java.lang.System;
import java.util.Arrays;
import java.util.StringTokenizer;

public class Main {
    public static void main(String[] a){
        try {
            BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
            int n = Integer.parseInt(r.readLine());
            StringTokenizer st;

            int[] length = new length[3];
            for(int i = 0; i < n; i++) {
                st = new StringTokenizer(r.readLine());
                for(int j = 0; j < 3; j++)  length[j] = Integer.parseInt(st.nextToken());

                Arrays.sort(length);
                if((length[0]*length[0] + length[1]*length[1]) == length[2]*length[2]) System.out.println("YES");
                 else System.out.println("NO");
            }
        } catch (Exception ex) {System.exit(0);}
    }
}

Compiler output:
Main.java:16: error: cannot find symbol
            int[] length = new length[3];
                               ^
  symbol:   class length
  location: class Main
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.Exception;
import java.lang.Integer;
import java.lang.System;
import java.util.Arrays;
import java.util.StringTokenizer;

public class Main {
    public static void main(String[] a){
        try {
            BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
            int n = Integer.parseInt(r.readLine());
            StringTokenizer st;

            int side[] = new side[3];
            for(int i = 0; i < n; i++) {
                st = new StringTokenizer(r.readLine());
                for(int j = 0; j < 3; j++)  side[j] = Integer.parseInt(st.nextToken());

                Arrays.sort(length);
                if((side[0]*side[0] + side[1]*side[1]) == side[2]*side[2]) System.out.println("YES");
                 else System.out.println("NO");
            }
        } catch (Exception ex) {System.exit(0);}
    }
}

Compiler output:
Main.java:16: error: cannot find symbol
            int side[] = new side[3];
                             ^
  symbol:   class side
  location: class Main
Main.java:21: error: cannot find symbol
                Arrays.sort(length);
                            ^
  symbol:   variable length
  location: class Main
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.Exception;
import java.lang.Integer;
import java.lang.System;
import java.util.Arrays;
import java.util.StringTokenizer;

public class Main {
    public static void main(String[] a){
        try {
            BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
            int n = Integer.parseInt(r.readLine());
            StringTokenizer st;

            int side[] = new side[3];
            for(int i = 0; i < n; i++) {
                st = new StringTokenizer(r.readLine());
                for(int j = 0; j < 3; j++)  side[j] = Integer.parseInt(st.nextToken());

                Arrays.sort(side);
                if((side[0]*side[0] + side[1]*side[1]) == side[2]*side[2]) System.out.println("YES");
                 else System.out.println("NO");
            }
        } catch (Exception ex) {System.exit(0);}
    }
}

Compiler output:
Main.java:16: error: cannot find symbol
            int side[] = new side[3];
                             ^
  symbol:   class side
  location: class Main
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class Vol0_0003 {

	public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		int[] tri = new int[3];
		
		int count=Integer.parseInt(br.readLine());
		
		while(count<0){
			System.out.println("????????´???");
			count=Integer.parseInt(br.readLine());
		}
		
		for(int i=0;i<count;i++){
			str=br.readLine();
			tri[0]=getA(str);
			tri[1]=getB(str);
			tri[2]=getC(str);
			sortTri(tri);
			if(tri[0]*tri[0]+tri[1]*tri[1] == tri[2]*tri[2]){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
		

	}
	
	public static int getA(String str){
		int index,num;
		index = str.indexOf(" ");
		num=Integer.parseInt(str.substring(0,index));
		return num;
	}
	
	public static int getB(String str){
		int index,num;
		index = str.indexOf(" ");
		num=Integer.parseInt(str.substring(index+1,str.indexOf(" ",2)));
		return num;
	}
	
	public static int getC(String str){
		int index,num=1;
		index = str.indexOf(" ",2);
		num=Integer.parseInt(str.substring(index+1));
		return num;
	}
	
	public static void sortTri(int[] num){
		int tmp;
		for(int i=0;i<num.length-1;i++){
			for(int j=i+1;j<num.length;j++){
				if(num[i]>num[j]){
					tmp=num[i];
					num[i]=num[j];
					num[j]=tmp;
				}
			}
		}
	}

}

Compiler output:
Main.java:5: error: class Vol0_0003 is public, should be declared in a file named Vol0_0003.java
public class Vol0_0003 {
       ^
1 error
Language: Java

import java.io.*;

public class Main {

	public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str;
		int[] tri = new int[3];
		
		int count=Integer.parseInt(br.readLine());
		
		while(count<0){
			count=Integer.parseInt(br.readLine());
		}
		
		for(int i=0;i<count;i++){
			str=br.readLine();
			tri[0]=getA(str);
			tri[1]=getB(str);
			tri[2]=getC(str);
			sortTri(tri);
			if(tri[0]*tri[0]+tri[1]*tri[1] == tri[2]*tri[2]){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
		
		return 0;

	}
	
	public static int getA(String str){
		int index,num;
		index = str.indexOf(" ");
		num=Integer.parseInt(str.substring(0,index));
		return num;
	}
	
	public static int getB(String str){
		int index,num;
		index = str.indexOf(" ");
		num=Integer.parseInt(str.substring(index+1,str.indexOf(" ",2)));
		return num;
	}
	
	public static int getC(String str){
		int index,num=1;
		index = str.indexOf(" ",2);
		num=Integer.parseInt(str.substring(index+1));
		return num;
	}
	
	public static void sortTri(int[] num){
		int tmp;
		for(int i=0;i<num.length-1;i++){
			for(int j=i+1;j<num.length;j++){
				if(num[i]>num[j]){
					tmp=num[i];
					num[i]=num[j];
					num[j]=tmp;
				}
			}
		}
	}

}

Compiler output:
Main.java:30: error: incompatible types: unexpected return value
		return 0;
		       ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;


public class RightTriangle {
	
    public static void main(String[] a){
    	
    	BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
		String line;
		int numDS = -1;
		int aSide = -1;
		int bSide = -1;
		int cSide = -1;
		
		ArrayList <String> results = new ArrayList<String>();
		
		//get number of data sets
    	try {
			while ((line = stdin.readLine()) != null && 
					line.length()!= 0) {
				
				String[] checker = line.split(" ");
				
				if (checker.length == 1){
					numDS = Integer.parseInt(checker[0]);
				} else if (checker.length == 3){
				
					int temp1 = Integer.parseInt(checker[0]);
					int temp2 = Integer.parseInt(checker[1]);
					int temp3 = Integer.parseInt(checker[2]);
					
					if (temp1 < 1 || temp1 >1000 ||
						temp2 < 1 || temp2 >1000 ||
						temp3 < 1 || temp3 >1000){
						results.add("NO");
					} else {
						//get the highest number and place to cSide
						if (temp1 > temp2 && temp1> temp3){
							cSide = temp1;
							aSide = temp2;
							bSide = temp3;
						} else if (temp2 > temp1 && temp2 > temp3){
							cSide = temp2;
							aSide = temp1;
							bSide = temp3;
						} else {
							cSide = temp3;
							aSide = temp2;
							bSide = temp1;
						}
						
						//Pythagorean
						if ((cSide*cSide) == ((aSide*aSide)+(bSide*bSide))){
							results.add("YES");
						} else {
							results.add("NO");
						}
						
						if (results.size() == numDS){
							break;
						}
					}
				}
			}

			//print result
			for (String s: results){
				System.out.println(s);
			}
		} catch (NumberFormatException e) {
			// TODO Auto-generated catch block
			//e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			//e.printStackTrace();
		}
    }
}

Compiler output:
Main.java:7: error: class RightTriangle is public, should be declared in a file named RightTriangle.java
public class RightTriangle {
       ^
1 error
Language: Java

import java.io.*;

public class Main {
	public static void main(String[] a) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

		// ????§???¢?????°?????\???
		System.out.print("????§???¢?????°:");
		int num = Integer.parseInt(br.readLine());
		int[][] tryangle= new int[num][3];

		// ??\??????????????°???????§???¢???????????????????????\???
		for (int i = 0; i < num; i++) {
			System.out.println((i + 1) + "??????:");
			for (int j = 0; j < tryangle[i].length; j++) {
				System.out.print((j + 1) + "????????????:");
				tryangle[i][j] = Integer.parseInt(br.readLine());
			}
			System.out.println();
		}
		final int adge1=0;
		final int adge2=1;
		final int adge3=2;
		//??´?§?????§???¢?????????
		for(int i=0;i<num;i++){
			int a = tryangle[i][adge1]*tryangle[i][adge1];
			int b = tryangle[i][adge2]*tryangle[i][adge2];
			int c = tryangle[i][adge3]*tryangle[i][adge3];
			if(((a+b)==c)||((b+c)==a)||((a+c)==b)) System.out.println("YES");
			else System.out.println("NO");
		}
	}
}

Compiler output:
Main.java:26: error: variable a is already defined in method main(String[])
			int a = tryangle[i][adge1]*tryangle[i][adge1];
			    ^
1 error
Language: Java

import java.io.*;

public class Main {
	public static void main(String[] a) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int num = Integer.parseInt(br.readLine());
		int[][] tryangle= new int[num][3];

		for (int i = 0; i < num; i++) {
			for (int j = 0; j < tryangle[i].length; j++) {
				tryangle[i][j] = Integer.parseInt(br.readLine());
			}
			System.out.println();
		}
		final int adge1=0;
		final int adge2=1;
		final int adge3=2;
		
		for(int i=0;i<num;i++){
			int a = tryangle[i][adge1]*tryangle[i][adge1];
			int b = tryangle[i][adge2]*tryangle[i][adge2];
			int c = tryangle[i][adge3]*tryangle[i][adge3];
			if(((a+b)==c)||((b+c)==a)||((a+c)==b)) System.out.println("YES");
			else System.out.println("NO");
		}
	}
}

Compiler output:
Main.java:20: error: variable a is already defined in method main(String[])
			int a = tryangle[i][adge1]*tryangle[i][adge1];
			    ^
1 error
Language: Java

import java.io.*;

public class Main {
	
	private static final int adge1=0;
	private static final int adge2=1;
	private static final int adge3=2;
	public static void main(String[] a) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int num = Integer.parseInt(br.readLine());
		int[][] tryangle= new int[num][3];

		for (int i = 0; i < num; i++) {
			for (int j = 0; j < tryangle[i].length; j++) {
				tryangle[i][j] = Integer.parseInt(br.readLine());
			}
			System.out.println();
		}
		
		
		for(int i=0;i<num;i++){
			int a = tryangle[i][adge1]*tryangle[i][adge1];
			int b = tryangle[i][adge2]*tryangle[i][adge2];
			int c = tryangle[i][adge3]*tryangle[i][adge3];
			if(((a+b)==c)||((b+c)==a)||((a+c)==b)) System.out.println("YES");
			else System.out.println("NO");
		}
	}
}

Compiler output:
Main.java:22: error: variable a is already defined in method main(String[])
			int a = tryangle[i][adge1]*tryangle[i][adge1];
			    ^
1 error
Language: Java

import java.io.*;

public class Main {
	
	private static final int adge1=0;
	private static final int adge2=1;
	private static final int adge3=2;
	public static void main(String[] a) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int num = Integer.parseInt(br.readLine());
		int[][] tryangle= new int[num][3];

		for (int i = 0; i < num; i++) {
			for (int j = 0; j < tryangle[i].length; j++) {
				tryangle[i][j] = Integer.parseInt(br.readLine());
			}
			System.out.println();
		}
		
		int a,b,c;
		for(int i=0;i<num;i++){
			a = tryangle[i][adge1]*tryangle[i][adge1];
			b = tryangle[i][adge2]*tryangle[i][adge2];
			c = tryangle[i][adge3]*tryangle[i][adge3];
			if(((a+b)==c)||((b+c)==a)||((a+c)==b)) System.out.println("YES");
			else System.out.println("NO");
		}
	}
}

Compiler output:
Main.java:20: error: variable a is already defined in method main(String[])
		int a,b,c;
		    ^
1 error
Language: Java

public class Main {

	private static final int subNum = 3;
	private static final int adge1 = 0;
	private static final int adge2 = 1;
	private static final int adge3 = 2;

	public static void main(String[] a) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int num = Integer.parseInt(br.readLine());
		int[][] tryangle = new int[num][subNum];

		for (int i = 0; i < num; i++) {

			String str = br.readLine();
			String[] strBuf = str.split(" ");

			for (int j = 0; j < subNum; j++) {
				tryangle[i][j] = Integer.parseInt(strBuf[j]);
			}
		}
		int x, y, z;
		for (int i = 0; i < num; i++) {
			x = tryangle[i][adge1] * tryangle[i][adge1];
			y = tryangle[i][adge2] * tryangle[i][adge2];
			z = tryangle[i][adge3] * tryangle[i][adge3];
			if (((x + y) == z) || ((y + z) == x) || ((x + z) == y))
				System.out.println("YES");
			else
				System.out.println("NO");
		}
	}
}

Compiler output:
Main.java:8: error: cannot find symbol
	public static void main(String[] a) throws IOException {
	                                           ^
  symbol:   class IOException
  location: class Main
Main.java:9: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:9: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:9: error: cannot find symbol
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		                                           ^
  symbol:   class InputStreamReader
  location: class Main
4 errors
Language: Java

import java.io.*;

public static void main(String[] args){
	BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
	String str[]=new String[];
	int N,i;
	int Line[]=new int[3];
	i=1;
	N=int(in.readLine());
	while(i<=N){
		str=in.readLine().split(" ",0);
		for(int j=0;j<=2;j++){
			Line[i]=Integer.parseInt(str[i]);
		}
		if(((Line[0]^2)+(Line[1]^2))==Line[2]^2){
			System.out.println("YES");
		}
		else if(((Line[1]^2)+(Line[2]^2))==Line[0]^2){
			System.out.println("YES");
		}
		else if(((Line[0]^2)+(Line[2]^2))==Line[1]^2){
			System.out.println("YES");
		}
		else{
			System.out.println("NO");
		}
		i++;
	}


}

Compiler output:
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static void main(String[] args){
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:5: error: array dimension missing
	String str[]=new String[];
	                         ^
Main.java:9: error: '.class' expected
	N=int(in.readLine());
	     ^
Main.java:9: error: ';' expected
	N=int(in.readLine());
	                   ^
4 errors
Language: Java

import java.io.*;

class Main{
	public static void main(String[] args){
		BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
		String str[]=new String[];
		int N,i;
		int Line[]=new int[3];
		i=1;
		N=int(in.readLine());
		while(i<=N){
			str=in.readLine().split(" ",0);
			for(int j=0;j<=2;j++){
				Line[i]=Integer.parseInt(str[i]);
			}
			if(((Line[0]^2)+(Line[1]^2))==Line[2]^2){
				System.out.println("YES");
			}
			else if(((Line[1]^2)+(Line[2]^2))==Line[0]^2){
				System.out.println("YES");
			}
			else if(((Line[0]^2)+(Line[2]^2))==Line[1]^2){
				System.out.println("YES");
			}
			else{
				System.out.println("NO");
			}
			i++;
		}
	}
}

Compiler output:
Main.java:6: error: array dimension missing
		String str[]=new String[];
		                         ^
Main.java:10: error: '.class' expected
		N=int(in.readLine());
		     ^
Main.java:10: error: ';' expected
		N=int(in.readLine());
		                   ^
3 errors
Language: Java

import java.io.*;

class Main{
	public static void main(String[] args){
		BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
		String str[]=new String[3];
		int N,i;
		int Line[]=new int[3];
		i=1;
		N=int(in.readLine());
		while(i<=N){
			str=in.readLine().split(" ",0);
			for(int j=0;j<=2;j++){
				Line[i]=Integer.parseInt(str[i]);
			}
			if(((Line[0]^2)+(Line[1]^2))==Line[2]^2){
				System.out.println("YES");
			}
			else if(((Line[1]^2)+(Line[2]^2))==Line[0]^2){
				System.out.println("YES");
			}
			else if(((Line[0]^2)+(Line[2]^2))==Line[1]^2){
				System.out.println("YES");
			}
			else{
				System.out.println("NO");
			}
			i++;
		}
	}
}

Compiler output:
Main.java:10: error: '.class' expected
		N=int(in.readLine());
		     ^
Main.java:10: error: ';' expected
		N=int(in.readLine());
		                   ^
2 errors
Language: Java

import java.io.*;

class Main{
	public static void main(String[] args){
		BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
		String str[]=new String[];
		int N,i;
		int Line[]=new int[3];
		i=1;
		N=in.nextInt();
		while(i<=N){
			str=in.readLine().split(" ",0);
			for(int j=0;j<=2;j++){
				Line[i]=Integer.parseInt(str[i]);
			}
			if(((Line[0]^2)+(Line[1]^2))==Line[2]^2){
				System.out.println("YES");
			}
			else if(((Line[1]^2)+(Line[2]^2))==Line[0]^2){
				System.out.println("YES");
			}
			else if(((Line[0]^2)+(Line[2]^2))==Line[1]^2){
				System.out.println("YES");
			}
			else{
				System.out.println("NO");
			}
			i++;
		}
	}
}

Compiler output:
Main.java:6: error: array dimension missing
		String str[]=new String[];
		                         ^
1 error
Language: Java

import java.io.*;

class Main{
	public static void main(String[] args){
		BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
		String str[]=new String[3];
		int N,i;
		int Line[]=new int[3];
		i=1;
		N=in.nextInt();
		while(i<=N){
			str=in.readLine().split(" ",0);
			for(int j=0;j<=2;j++){
				Line[i]=Integer.parseInt(str[i]);
			}
			if(((Line[0]^2)+(Line[1]^2))==Line[2]^2){
				System.out.println("YES");
			}
			else if(((Line[1]^2)+(Line[2]^2))==Line[0]^2){
				System.out.println("YES");
			}
			else if(((Line[0]^2)+(Line[2]^2))==Line[1]^2){
				System.out.println("YES");
			}
			else{
				System.out.println("NO");
			}
			i++;
		}
	}
}

Compiler output:
Main.java:10: error: cannot find symbol
		N=in.nextInt();
		    ^
  symbol:   method nextInt()
  location: variable in of type BufferedReader
Main.java:16: error: bad operand types for binary operator '^'
			if(((Line[0]^2)+(Line[1]^2))==Line[2]^2){
			                                     ^
  first type:  boolean
  second type: int
Main.java:19: error: bad operand types for binary operator '^'
			else if(((Line[1]^2)+(Line[2]^2))==Line[0]^2){
			                                          ^
  first type:  boolean
  second type: int
Main.java:22: error: bad operand types for binary operator '^'
			else if(((Line[0]^2)+(Line[2]^2))==Line[1]^2){
			                                          ^
  first type:  boolean
  second type: int
4 errors
Language: Java

import java.io.*;

class Main{
	public static void main(String[] args){
		BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
		String str[]=new String[3];
		int N,i;
		int Line[]=new int[3];
		i=1;
		N=Integer.parseInt(in.readLine());
		while(i<=N){
			str=in.readLine().split(" ",0);
			for(int j=0;j<=2;j++){
				Line[i]=Integer.parseInt(str[i]);
			}
			if(((Line[0]^2)+(Line[1]^2))==Line[2]^2){
				System.out.println("YES");
			}
			else if(((Line[1]^2)+(Line[2]^2))==Line[0]^2){
				System.out.println("YES");
			}
			else if(((Line[0]^2)+(Line[2]^2))==Line[1]^2){
				System.out.println("YES");
			}
			else{
				System.out.println("NO");
			}
			i++;
		}
	}
}

Compiler output:
Main.java:16: error: bad operand types for binary operator '^'
			if(((Line[0]^2)+(Line[1]^2))==Line[2]^2){
			                                     ^
  first type:  boolean
  second type: int
Main.java:19: error: bad operand types for binary operator '^'
			else if(((Line[1]^2)+(Line[2]^2))==Line[0]^2){
			                                          ^
  first type:  boolean
  second type: int
Main.java:22: error: bad operand types for binary operator '^'
			else if(((Line[0]^2)+(Line[2]^2))==Line[1]^2){
			                                          ^
  first type:  boolean
  second type: int
3 errors
Language: Java

import java.io.*;

class Main{
	public static void Triangle(int[3] data){
		int a,b,c,d;
		a=Math.pow(data[0],2);
		b=Math.pow(data[1],2);
		c=Math.pow(data[2],2);
		d=Math.sqrt(a+b);
		if(d==data[2]){
			System.out.println("YES");
		}
		d=Math.sqrt(a+c);
		else if(d==data[1]){
			System.out.println("YES");
		}
		d=Math.sqrt(b+c);
		else if(d==data[0]){
			System.out.println("YES");
		}
		else{
			System.out.println("NO");
		}
	}
	
	public static void main(String[] args) throws IOException{
		BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
		String str[]=new String[3];
		int N,i;
		int Line[]=new int[3];
		i=1;
		N=Integer.parseInt(in.readLine());
		while(i<=N){
			str=(in.readLine()).split(" ",0);
			for(int j=0;j<=2;j++){
				Line[j]=Integer.parseInt(str[j]);
			}
			Triangle(Line);
			i++;
		}
	}
}

Compiler output:
Main.java:4: error: ']' expected
	public static void Triangle(int[3] data){
	                                ^
Main.java:14: error: 'else' without 'if'
		else if(d==data[1]){
		^
Main.java:18: error: 'else' without 'if'
		else if(d==data[0]){
		^
3 errors
Language: Java

import java.io.*;

class Main{
	public static void Triangle(int[] data){
		int a,b,c,d;
		a=Math.pow(data[0],2);
		b=Math.pow(data[1],2);
		c=Math.pow(data[2],2);
		d=Math.sqrt(a+b);
		if(d==data[2]){
			System.out.println("YES");
		}
		d=Math.sqrt(a+c);
		else if(d==data[1]){
			System.out.println("YES");
		}
		d=Math.sqrt(b+c);
		else if(d==data[0]){
			System.out.println("YES");
		}
		else{
			System.out.println("NO");
		}
	}
	
	public static void main(String[] args) throws IOException{
		BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
		String str[]=new String[3];
		int N,i;
		int Line[]=new int[3];
		i=1;
		N=Integer.parseInt(in.readLine());
		while(i<=N){
			str=(in.readLine()).split(" ",0);
			for(int j=0;j<=2;j++){
				Line[j]=Integer.parseInt(str[j]);
			}
			Triangle(Line);
			i++;
		}
	}
}

Compiler output:
Main.java:14: error: 'else' without 'if'
		else if(d==data[1]){
		^
Main.java:18: error: 'else' without 'if'
		else if(d==data[0]){
		^
2 errors
Language: Java

import java.io.*;

class Main{
	public static void Triangle(int[] data){
		int a,b,c,d;
		a=Math.pow(data[0],2);
		b=Math.pow(data[1],2);
		c=Math.pow(data[2],2);
		d=Math.sqrt(a+b);
		if(d==data[2]){
			System.out.println("YES");
		}
		d=Math.sqrt(a+c);
		elseif(d==data[1]){
			System.out.println("YES");
		}
		d=Math.sqrt(b+c);
		elseif(d==data[0]){
			System.out.println("YES");
		}
		else{
			System.out.println("NO");
		}
	}
	
	public static void main(String[] args) throws IOException{
		BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
		String str[]=new String[3];
		int N,i;
		int Line[]=new int[3];
		i=1;
		N=Integer.parseInt(in.readLine());
		while(i<=N){
			str=(in.readLine()).split(" ",0);
			for(int j=0;j<=2;j++){
				Line[j]=Integer.parseInt(str[j]);
			}
			Triangle(Line);
			i++;
		}
	}
}

Compiler output:
Main.java:14: error: ';' expected
		elseif(d==data[1]){
		                  ^
Main.java:18: error: ';' expected
		elseif(d==data[0]){
		                  ^
Main.java:21: error: 'else' without 'if'
		else{
		^
3 errors
Language: Java

import java.io.*;

class Main{
	public static void Triangle(int[] data){
		int a,b,c,d;
		a=Math.pow(data[0],2);
		b=Math.pow(data[1],2);
		c=Math.pow(data[2],2);
		d=(int)Math.sqrt(a+b);
		if(d==data[2]){
			System.out.println("YES");
		}
		else if((d=(int)Math.sqrt(a+c))==data[1]){
			System.out.println("YES");
		}
		else if((d=(int)Math.sqrt(b+c))==data[0]){
			System.out.println("YES");
		}
		else{
			System.out.println("NO");
		}
	}
	
	public static void main(String[] args) throws IOException{
		BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
		String str[]=new String[3];
		int N,i;
		int Line[]=new int[3];
		i=1;
		N=Integer.parseInt(in.readLine());
		while(i<=N){
			str=(in.readLine()).split(" ",0);
			for(int j=0;j<=2;j++){
				Line[j]=Integer.parseInt(str[j]);
			}
			Triangle(Line);
			i++;
		}
	}
}

Compiler output:
Main.java:6: error: incompatible types: possible lossy conversion from double to int
		a=Math.pow(data[0],2);
		          ^
Main.java:7: error: incompatible types: possible lossy conversion from double to int
		b=Math.pow(data[1],2);
		          ^
Main.java:8: error: incompatible types: possible lossy conversion from double to int
		c=Math.pow(data[2],2);
		          ^
3 errors
Language: Java

import java.io.*;

class Main{
	public static void Triangle(int[] data){
		int a,b,c,d,e,f;
		a=(int)Math.pow(data[0],2);
		b=(int)Math.pow(data[1],2);
		c=(int)Math.pow(data[2],2);
		d=(int)Math.sqrt(a+b);
		e=(int)Math.sqrt(a+c);
		f=(int)Math.sqrt(b+c);
		if(d==data[2]){
			System.out.printf("YES\n");
		}
		else if(e==data[1]){
			System.out.printf("YES\n");
		}
		else if(f==data[0]){
			System.out.printf("YES\n");
		}
		else{
			System.out.printf("NO\n");
		}
	}
	
	public static void main(String[] args) throws IOException{
		BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
		String str[]=new String[3];
		int N,i;
		int Line[]=new int[3];
		i=1;
		N=Integer.parseInt(in.readLine());
		String inputstr;
		while(i<=N){
			inputstr=in.readLine();
			str=stra.split(" ",0);
			for(int j=0;j<=2;j++){
				Line[j]=Integer.parseInt(str[j]);
			}
			Triangle(Line);
			i++;
		}
	}
}

Compiler output:
Main.java:36: error: cannot find symbol
			str=stra.split(" ",0);
			    ^
  symbol:   variable stra
  location: class Main
1 error
Language: Java

class Main {
	public static void main(String[] a){
		Scanner scan = new Scanner(System.in);

		int x, y, z;

		while(scan.hasNext()){
			x = scan.nextInt();
			y = scan.nextInt();
			z = scan.nextInt();

			if(x*x + y*y == z*z ||
			   x*x + z*z == y*y ||
			   z*z + y*y == x*x) System.out.println("YES");
			else System.out.println("NO");
		}
	}
}

Compiler output:
Main.java:3: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		                   ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class RightTriangle {
	private static int[] datasetint;
	public static void main(String[]arg)throws IOException{
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		String str=br.readLine();
		int count=Integer.parseInt(str);
		for (int i=0;i<=count;i++){
			String[] datasetstr=str.split(" ",3);

			for (int j=0;j<=2;j++){
				datasetint[j]=Integer.parseInt(datasetstr[j]);
			}
			Sort(datasetint);
			Boolean isRight=datasetint[0]==(datasetint[1]^2+datasetint[2]^2);
			if (isRight){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
		
		
	}
	private static void Sort(int[] datasetint){
		for (int k=0;k<=1;k++){
			for (int l=k+1;l<=2;l++){
				if(datasetint[k]<datasetint[l]){
					int temporary=datasetint[k];
					datasetint[k]=datasetint[l];
					datasetint[l]=temporary;
				}
			}
		}
	}
}

Compiler output:
Main.java:4: error: class RightTriangle is public, should be declared in a file named RightTriangle.java
public class RightTriangle {
       ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;

public class Main{
  public static void main(String[] args)throws IOException{
    BufferedReader buffer = new BufferedReader(new InputStreamReader(System.in));
    int numCases = Integer.parseInt(buffer.readLine());
    String[] line;
    int[] lineInt;
    int A, B, C;

    for(int i = 0;i < numCases;i++){
      line = buffer.readLine().split();
      A = Integer.parseInt(line[0]);
      B = Integer.parseInt(line[1]);
      C = Integer.parseInt(line[2]);

      if( ((A * A) + (B * B)) ==  (C * C))
        System.out.println("YES");
      else
        System.out.println("NO");
    }
  }
}

Compiler output:
Main.java:14: error: no suitable method found for split(no arguments)
      line = buffer.readLine().split();
                              ^
    method String.split(String,int) is not applicable
      (actual and formal argument lists differ in length)
    method String.split(String,int,boolean) is not applicable
      (actual and formal argument lists differ in length)
    method String.split(char,int,boolean) is not applicable
      (actual and formal argument lists differ in length)
    method String.split(String) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		List<String> list = new ArrayList<String>();
		boolean flag = false;
		int[] tri = new int[3];
		int N = scan.nextInt();
		for(int i = 0; i < N; i++){
			for(int j = 0; j < 3; j++){
				tri[j] = scan.nextInt();
			}
			for(int j = 0; j < 3 - 1; j++){
				for(int k = 3 - 1; k > j; k++){
					if(tri[j] < tri[k]){
						int big = tri[k];
						tri[k] = tri[j];
						tri[j] = big:
					}
				}
			}
			if(Math.pow(tri[0], 2) == Math.pow(tri[1], 2)
							+ Math.pow(tri[2], 2)){
				flag = true;
			} else{
				flag = false;
			}
			list.add(flag? "YES" : "NO");
		}
		for(String s : list){
			System.out.println(s);
		}
	}
}

Compiler output:
Main.java:20: error: ';' expected
						tri[j] = big:
						            ^
1 error
Language: Java

import java.util.*;

public class Main{
	private static final Scanner scan = new Scanner(System.in);

	public static void main(String[] args){
		List<String> list = new ArrayList<String>();
		int[] tri = new int[3];
		boolean flag = false;
		int N = scan.nextInt();
		for(int i = 0; i < N; i++){
			for(int j = 0; j < 3; j++){
				tri[j] = scan.nextInt();
			}
			for(int j = 0; j < tri.length - 1; j++){
				for(int k = tri.lengt - 1; k > j; k--){
					if(tri[j] < tri[k]){
						int big = tri[k];
						tri[k] = tri[j];
						tri[j] = big;
					}
				}
			}
			if(Math.pow(tri[0], 2) == Math.pow(tri[1], 2) + Math.pow(tri[2], 2)){
				flag = true;
			} else{
				flag = false;
			}
			list.add(flag? "YES" : "NO");
		}
		for(String s : list){
			System.out.printf("%s\n", s);
		}
	}
}

Compiler output:
Main.java:16: error: cannot find symbol
				for(int k = tri.lengt - 1; k > j; k--){
				               ^
  symbol:   variable lengt
  location: variable tri of type int[]
1 error
Language: Java

import java.util.Scanner;
public class RigthAngle {
	
	
	public static int Func(int a,int b,int c){
		
		if(a*a==b*b+c*c){
			return 1;
		}
		
		return 0;
	}

	public static void main(String[] args) {
		

		
		Scanner sc=new Scanner(System.in);
		
		int TestCase=sc.nextInt();
		
		for (int i = 1; i <= TestCase; i++) {
			
			int ans=0;
			
			int a=sc.nextInt();
			int b=sc.nextInt();
			int c=sc.nextInt();
			
			if(a>b && a>c) {
				ans=Func(a,b,c);
			}
			else if(b>c && b>a) {
				ans=Func(b,a,c);
			}
			else if(c>b && c>a) {
				ans=Func(c,a,b);
			}
			
			if(ans==1) System.out.println("YES");
			
			else System.out.println("NO");
		}

	}
    

}

Compiler output:
Main.java:2: error: class RigthAngle is public, should be declared in a file named RigthAngle.java
public class RigthAngle {
       ^
1 error
Language: Java

import java.util.Scanner;

public static int Func(int a,int b,int c){
	
	if(a*a==b*b+c*c){
		return 1;
	}
	
	return 0;
}

public class Main {



	
		

		
		Scanner sc=new Scanner(System.in);
		
		int TestCase=sc.nextInt();
		
		for (int i = 1; i <= TestCase; i++) {
			
			int ans=0;
			
			int a=sc.nextInt();
			int b=sc.nextInt();
			int c=sc.nextInt();
			
			if(a>b && a>c) {
				ans=Func(a,b,c);
			}
			else if(b>c && b>a) {
				ans=Func(b,a,c);
			}
			else if(c>b && c>a) {
				ans=Func(c,a,b);
			}
			
			if(ans==1) System.out.println("YES");
			
			else System.out.println("NO");
		}

	
    


}

Compiler output:
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
public static int Func(int a,int b,int c){
              ^
  (use --enable-preview to enable unnamed classes)
Main.java:24: error: illegal start of type
		for (int i = 1; i <= TestCase; i++) {
		^
Main.java:24: error: <identifier> expected
		for (int i = 1; i <= TestCase; i++) {
		                 ^
Main.java:24: error: <identifier> expected
		for (int i = 1; i <= TestCase; i++) {
		                             ^
Main.java:24: error: <identifier> expected
		for (int i = 1; i <= TestCase; i++) {
		                                ^
5 errors
Language: Java

public class Main {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		
		while(scan.hasNext()){
			int a = scan.nextInt();
			int b = scan.nextInt();
			int c = scan.nextInt();
			
			if(a*a == b*b + c*c || b*b == a*a + c*c || c*c == b*b + a*a){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
			
		}
		scan.close();
	}
}

Compiler output:
Main.java:3: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		                   ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

public class Main {
	public static void main(String args[] ) throws Exception {
		Scanner scanner = new Scanner(System.in);
		while(scanner.hasNext()){	
			int count = scanner.nextInt();//??????????????°??????????????????
			for(int i = 0;i<count;i++){
				double a = scanner.nextInt();//??????????????°??????????????????
				double b = scanner.nextInt();//????????????????????????????????°??????????????????
				double c = scanner.nextInt();//??????????????????3???????????°??????????????????
				double d = a*a;
				double f = b*b;
				double g = c*c;
				if(d == f+g || f== d+g || g==d+f){
					System.out.println("YES\n");
			    }else{
			    	System.out.println("NO\n");
			    }
			}
		}
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
		Scanner scanner = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner scanner = new Scanner(System.in);
		                      ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main0003{
    public static void main(String[] args) throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

        int n = Integer.parseInt(br.readLine());

        for(int i= 0; i < n; i++){
            String[] input = br.readLine().split(" ");
            int a = Integer.parseInt(input[0]);
            int b = Integer.parseInt(input[1]);
            int c = Integer.parseInt(input[2]);
            
            boolean isRight = false;
            if(a>=c && a>=b)        isRight = (a*a == b*b + c*c);
            else if(b>=c && b>=a)   isRight = (b*b == c*c + a*a);
            else if(c>=a && c>=b)   isRight = (c*c == a*a + b*b);

            if(isRight) System.out.println("YES");
            else        System.out.println("NO");
        }
    }
}

Compiler output:
Main.java:5: error: class Main0003 is public, should be declared in a file named Main0003.java
public class Main0003{
       ^
1 error
Language: Java

public class Main {
	public static void main(String[] args) {
		try (Scanner sc = new Scanner(System.in)) {
			final int n = sc.nextInt();
			while (sc.hasNext()) {
				int[] x = new int[3];
				x[0] = sc.nextInt();
				x[1] = sc.nextInt();
				x[2] = sc.nextInt();
				Arrays.sort(x);
				boolean isTriangle = (x[0] * x[0]) + (x[1] * x[1]) == (x[2] * x[2]);
				System.out.println(isTriangle ? "YES" : "NO");
			}
		}
	}
}

Compiler output:
Main.java:3: error: cannot find symbol
		try (Scanner sc = new Scanner(System.in)) {
		     ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		try (Scanner sc = new Scanner(System.in)) {
		                      ^
  symbol:   class Scanner
  location: class Main
Main.java:10: error: cannot find symbol
				Arrays.sort(x);
				^
  symbol:   variable Arrays
  location: class Main
3 errors
Language: Java

Class Tenmou{
    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:
Main.java:1: error: class, interface, enum, or record expected
Class Tenmou{
^
Main.java:10: error: not a statement
	str[]=new str[n];
	   ^
Main.java:10: error: not a statement
	str[]=new str[n];
	      ^
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
    public static void main (String[] args) {
                  ^
  (use --enable-preview to enable unnamed classes)
Main.java:6: error: ']' expected
	int a[3];
	      ^
Main.java:10: error: ';' expected
	str[]=new str[n];
	     ^
Main.java:21: error: ';' expected
	}elseif(a[0]==b){
	                ^
Main.java:24: error: ';' expected
	}elseif(a[0]==c){
	                ^
Main.java:39: error: class, interface, enum, or record expected
}
^
9 errors
Language: Java

class Tenmou{
    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
	if(a[0]^2==a[1]^2+a[2]^2){
		str[i]="YES";
	}else{
		str[i]="NO";
	}//if
	}//for

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

Compiler output:
Main.java:6: error: ']' expected
	int a[3];
	      ^
Main.java:10: error: not a statement
	str[]=new str[n];
	   ^
Main.java:10: error: ';' expected
	str[]=new str[n];
	     ^
Main.java:10: error: not a statement
	str[]=new str[n];
	      ^
Main.java:21: error: ';' expected
	}elseif(a[0]==b){
	                ^
Main.java:24: error: ';' expected
	}elseif(a[0]==c){
	                ^
6 errors
Language: Java

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

	int n;
	int a,b,c;
	int x[];
	x= new int[3];
	string str[];
	
	n = Integer.parseInt(br.readLine());

	str[]=new char[n];

	for(int i=0;i<n;i++){

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

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

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

Compiler output:
Main.java:12: error: not a statement
	str[]=new char[n];
	   ^
Main.java:12: error: ';' expected
	str[]=new char[n];
	     ^
Main.java:12: error: not a statement
	str[]=new char[n];
	      ^
Main.java:24: error: ';' expected
	}elseif(x[0]==b){
	                ^
Main.java:27: error: ';' expected
	}elseif(x[0]==c){
	                ^
5 errors
Language: Java

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

	int n;
	int a,b,c;
	int x[];
	x= new int[3];

	n = Integer.parseInt(br.readLine());
	string str[];
	str[]=new char[n];

	for(int i=0;i<n;i++){

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

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

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

Compiler output:
Main.java:11: error: not a statement
	str[]=new char[n];
	   ^
Main.java:11: error: ';' expected
	str[]=new char[n];
	     ^
Main.java:11: error: not a statement
	str[]=new char[n];
	      ^
Main.java:23: error: ';' expected
	}elseif(x[0]==b){
	                ^
Main.java:26: error: 'else' without 'if'
	}else{
	 ^
5 errors
Language: Java

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

	int n;
	int a,b,c;
	int x[];
	x= new int[3];

	n = Integer.parseInt(br.readLine());
	string str[];
	str[]=new string[n];

	for(int i=0;i<n;i++){

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

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

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

Compiler output:
Main.java:11: error: not a statement
	str[]=new string[n];
	   ^
Main.java:11: error: ';' expected
	str[]=new string[n];
	     ^
Main.java:11: error: not a statement
	str[]=new string[n];
	      ^
Main.java:23: error: ';' expected
	}elseif(x[0]==b){
	                ^
Main.java:26: error: 'else' without 'if'
	}else{
	 ^
5 errors
Language: Java

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

	int n;
	int a,b,c;
	int x[];
	x= new int[3];
	
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

	n = Integer.parseInt(br.readLine());
	string str[];
	str[]=new string[n];

	for(int i=0;i<n;i++){

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

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

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

Compiler output:
Main.java:13: error: not a statement
	str[]=new string[n];
	   ^
Main.java:13: error: ';' expected
	str[]=new string[n];
	     ^
Main.java:13: error: not a statement
	str[]=new string[n];
	      ^
Main.java:25: error: ';' expected
	}elseif(x[0]==b){
	                ^
Main.java:28: error: 'else' without 'if'
	}else{
	 ^
5 errors