criyle/codenet-compile-errors huggingface dataset:
Language: C++

import java.util.Scanner;

class Main{

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        for (int i = 0; i < 200; i++) {
            int sum;
            int[] n = new int[2];
            n[0] = sc.nextInt();
            n[1] = sc.nextInt();
            sum = n[0] + n[1];
            String s;
            s = String.valueOf(sum);
            System.out.println(s.length());
        }

    }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:5:11: error: expected ':' before 'static'
    5 |     public static void main(String[] args) {
      |           ^~~~~~~
      |           :
a.cc:5:29: error: 'String' has not been declared
    5 |     public static void main(String[] args) {
      |                             ^~~~~~
a.cc:5:38: error: expected ',' or '...' before 'args'
    5 |     public static void main(String[] args) {
      |                                      ^~~~
a.cc:19:2: error: expected ';' after class definition
   19 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:6:9: error: 'Scanner' was not declared in this scope
    6 |         Scanner sc = new Scanner(System.in);
      |         ^~~~~~~
a.cc:9:16: error: structured binding declaration cannot have type 'int'
    9 |             int[] n = new int[2];
      |                ^~
a.cc:9:16: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:9:16: error: empty structured binding declaration
a.cc:9:19: error: expected initializer before 'n'
    9 |             int[] n = new int[2];
      |                   ^
a.cc:10:13: error: 'n' was not declared in this scope
   10 |             n[0] = sc.nextInt();
      |             ^
a.cc:10:20: error: 'sc' was not declared in this scope
   10 |             n[0] = sc.nextInt();
      |                    ^~
a.cc:13:13: error: 'String' was not declared in this scope
   13 |             String s;
      |             ^~~~~~
a.cc:14:13: error: 's' was not declared in this scope
   14 |             s = String.valueOf(sum);
      |             ^
a.cc:15:13: error: 'System' was not declared in this scope
   15 |             System.out.println(s.length());
      |             ^~~~~~
Language: C++

#include<iostream>

int main(){
int a, b, c = 0, d = 0;
std::cin >> a >> b;
for(){
        if(a < 10){
                a = a % 10;
                c++;
                }else
                break;
        }
for(){
        if(b < 10){
                b = b % 10;
                d++;
                }else
                break;
        }
std::cout << c + d;
}

 
                 

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected primary-expression before ')' token
    6 | for(){
      |     ^
a.cc:13:1: error: expected primary-expression before 'for'
   13 | for(){
      | ^~~
a.cc:12:10: error: expected ';' before 'for'
   12 |         }
      |          ^
      |          ;
   13 | for(){
      | ~~~       
a.cc:13:1: error: expected primary-expression before 'for'
   13 | for(){
      | ^~~
a.cc:12:10: error: expected ')' before 'for'
   12 |         }
      |          ^
      |          )
   13 | for(){
      | ~~~       
a.cc:6:4: note: to match this '('
    6 | for(){
      |    ^
a.cc:13:5: error: expected primary-expression before ')' token
   13 | for(){
      |     ^
a.cc:21:1: error: expected primary-expression before '}' token
   21 | }
      | ^
a.cc:20:20: error: expected ')' before '}' token
   20 | std::cout << c + d;
      |                    ^
      |                    )
   21 | }
      | ~                   
a.cc:13:4: note: to match this '('
   13 | for(){
      |    ^
a.cc:21:1: error: expected primary-expression before '}' token
   21 | }
      | ^
Language: C++

#include<iostream>
#include<sstream>
#include<string>
#include<list>
using namespace std;

int main(){
	int a, b;
	list<int> digit;
	
	while((cin>>a>>b).eof()){
		if((a+b)>0){
			string stream c << a+b;
			digit.push_back(c.str().size());
		}
		
	}
	list<int>::iterator it = digit.begin();
	while(it != digit.end()){
		cout << *it << endl;
		it++;		
	}
	
 	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:39: error: expected initializer before 'c'
   13 |                         string stream c << a+b;
      |                                       ^
a.cc:14:41: error: 'c' was not declared in this scope
   14 |                         digit.push_back(c.str().size());
      |                                         ^
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String a[]){
		Scanner sc = new Scanner();
		
		int N = sc.nextInt();
		
		for(int i=0;i<N;i++){
			int b = sc.nextInt();
			int c = sc.nextInt();
			int d = sc.nextInt();
			System.out.println(isRightTriangle(b,c,d));
		}
		
	}
	
	public static String isRightTriangle(int a, int b ,int c){
		if(a + b  < c)
			return "No";
		else if(b + c < a)
			return "No";
		else if(c + a < b)
			return "No";
		else
			return "Yes";
	}

}


Compiler output:
Main.java:5: error: no suitable constructor found for Scanner(no arguments)
		Scanner sc = new Scanner();
		             ^
    constructor Scanner.Scanner(Readable,Pattern) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Readable) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String a[]){
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		
		for(int i=0;i<N;i++){
			int b = sc.nextInt();
			int c = sc.nextInt();
			int d = sc.nextInt();
			System.out.println(isRightTriangle(b,c,d));
		}
		
	}
	
	public static String isRightTriangle(int a, int b ,int c){
		if(a + b  < c)
			return "No";
		else if(b + c < a)
			return "No";
		else if(c + a < b)
			return "No";
		else
			return "Yes";
	}

}
			return "No";
		else
			return "Yes";
	}

}


Compiler output:
Main.java:30: error: class, interface, enum, or record expected
			return "No";
			^
Main.java:31: error: class, interface, enum, or record expected
		else
		^
Main.java:33: error: class, interface, enum, or record expected
	}
	^
3 errors
Language: Java

import java.util.Scanner;

public class A {
	public static void main(String a[]){
		Scanner sc = new Scanner(System.in);
		
		int N = sc.nextInt();
		
		for(int i=0;i<N;i++){
			int b = sc.nextInt();
			int c = sc.nextInt();
			int d = sc.nextInt();
			System.out.println(isRightTriangle(b,c,d));
		}
		sc.close();
	}
	
	public static String isRightTriangle(int a, int b ,int c){
		if(a>b){
			int k = a;
			a = b;
			b = k;
		}
		if(b>c){
			int k = b;
			b = c;
			c= k;
		}
		
		if(c*c == a*a+b*b)
			return "YES";
		else
			return "NO";
	}

}


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

package volume00.pck2003;

/**
 * Created by nakataninaoki on 2014/08/07.
 */

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
//import java.util.Arrays;
import java.util.StringTokenizer;

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

        while ((line = br.readLine()) != null && !line.isEmpty()) {

            int N = Integer.parseInt(line);

            next:
            for (int i = 0; i < N; i++) {
                int[] num = new int[3];
                StringTokenizer st = new StringTokenizer(br.readLine());
                num[0] = Integer.parseInt(st.nextToken()));
                num[1] = Integer.parseInt(st.nextToken());
                num[2] = Integer.parseInt(st.nextToken());
                num[0] *= num[0];
                num[1] *= num[1];
                num[2] *= num[2];

                for (int j = 0; j < 3; j++) {
                    if (num[j % 3] == num[(j + 1) % 3] + num[(j + 2) % 3]) {
                        System.out.println("YES");
                        continue next;
                    }
                }
                System.out.println("NO");
            }
        }
    }
}

Compiler output:
Main.java:26: error: ';' expected
                num[0] = Integer.parseInt(st.nextToken()));
                                                         ^
1 error
Language: Java

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

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

        while ((line = br.readLine()) != null && !line.isEmpty()) {

            int N = Integer.parseInt(line);

            next:
            for (int i = 0; i < N; i++) {
                int[] num = new int[3];
                StringTokenizer st = new StringTokenizer(br.readLine());
                num[0] = Integer.parseInt(st.nextToken()));
                num[1] = Integer.parseInt(st.nextToken());
                num[2] = Integer.parseInt(st.nextToken());
                num[0] *= num[0];
                num[1] *= num[1];
                num[2] *= num[2];

                for (int j = 0; j < 3; j++) {
                    if (num[j % 3] == num[(j + 1) % 3] + num[(j + 2) % 3]) {
                        System.out.println("YES");
                        continue next;
                    }
                }
                System.out.println("NO");
            }
        }
    }
}

Compiler output:
Main.java:19: error: ';' expected
                num[0] = Integer.parseInt(st.nextToken()));
                                                         ^
1 error
Language: Java

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

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

        while ((line = br.readLine()) != null && !line.isEmpty()) {

            int N = Integer.parseInt(line);

            next:
            for (int i = 0; i < N; i++) {
                int[] num = new int[3];
                StringTokenizer st = new StringTokenizer(br.readLine());
                num[0] = Integer.parseInt(st.nextToken()));
                num[1] = Integer.parseInt(st.nextToken());
                num[2] = Integer.parseInt(st.nextToken());
                num[0] *= num[0];
                num[1] *= num[1];
                num[2] *= num[2];

                for (int j = 0; j < 3; j++) {
                    if (num[j % 3] == num[(j + 1) % 3] + num[(j + 2) % 3]) {
                        System.out.println("YES");
                        continue next;
                    }
                }
                System.out.println("NO");
            }
        }
    }
}

Compiler output:
Main.java:19: error: ';' expected
                num[0] = Integer.parseInt(st.nextToken()));
                                                         ^
1 error
Language: Java

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

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

        try {
            int count = Integer.parseInt(r.readLine());
            String[] ans = new String[count];

            for(int i = 0; i < count; i++) {
                String s = r.readLine();
                StringTokenizer st = new StringTokenizer(s);
                int num[] = new int[4];
                for(int j = 0; j < 3;j++) {
                    num[j] = Integer.parseInt(st.nextToken());
                    if(num[0] < num[j]) {
                        int tmp = num[0];
                        num[0] = num[j];
                        num[j] = tmp;
                    }
                }
                if ( num[0] * num[0] == num[1] * num[1] + num[2] * num[2]) {
                    ans[i] = "YES";
                } else {
                    ans[i] = "NO";
                }
            }

            for(int i = 0; i < count; i++) {
                System.out.println(ans[i]);
            }
        } catch {
            System.exit(0);
        }
    }
}

Compiler output:
Main.java:38: error: '(' expected
        } catch {
               ^
Main.java:38: error: illegal start of type
        } catch {
                ^
2 errors
Language: Java

package aoj0003;

import java.util.Arrays;
import java.util.Scanner;

public class aoj0003 {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        for(int i=0;i<n;i++){
            int [] es = new int[3];
            for(int j=0;j<3;j++) es[j] = in.nextInt();
            Arrays.sort(es);
            if(sq(es[0]) + sq(es[1]) == sq(es[2])){
                System.out.println("YES");
            }else{
                System.out.println("NO");
            }
        }
    }
    static int sq(int x){ return x*x; };

}

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

import java.util.Arrays;
import java.util.Scanner;

public class aoj0003 {

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        for(int i=0;i<n;i++){
            int [] es = new int[3];
            for(int j=0;j<3;j++) es[j] = in.nextInt();
            Arrays.sort(es);
            if(sq(es[0]) + sq(es[1]) == sq(es[2])){
                System.out.println("YES");
            }else{
                System.out.println("NO");
            }
        }
    }
    static int sq(int x){ return x*x; };

}

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

public class Main {

    public static void main(String[] args) {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));

        try {
            Integer dataNum = Integer.valueOf(in.readLine());

            for (int i = 0; i < dataNum.intValue(); i++) {

                String[] problemData = in.readLine().split("\\s");

                int max = 0;

                int other1 = 0;

                int other2 = 0;

                for (String data : problemData) {

                    int dataInt = Integer.valueOf(data);

                    other2 = other1;

                    if (dataInt > max) {
                        other1 = max;
                        max = dataInt;
                    } else {
                        other1 = dataInt;
                    }
                }

                if ((max * max) == (other1 * other1 + other2 * other2)) {
                    System.out.println("YES");
                } else {
                    System.out.println("NO");
                }
            }
        } catch (IOException e) {
            e.printStackTrace();
        } finally {
            try {
                in.close();
            } catch (IOException e) {
                e.printStackTrace();
            }
        }
    }
}

Compiler output:
Main.java:4: error: cannot find symbol
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: error: cannot find symbol
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
                                ^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: error: cannot find symbol
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
                                                   ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:39: error: cannot find symbol
        } catch (IOException e) {
                 ^
  symbol:   class IOException
  location: class Main
Main.java:44: error: cannot find symbol
            } catch (IOException e) {
                     ^
  symbol:   class IOException
  location: class Main
5 errors
Language: Java

/* package whatever; // don't place package name! */

import java.util.*;
import java.lang.*;
import java.io.*;

/* Name of the class has to be "Main" only if the class is public. */
class Main
{
	public static int main (String[] args) throws java.lang.Exception
	{
		
		Scanner sc = new Scanner(System.in);
		
		int arr[];
		double ans[];
		while( sc.hasNext() ){
			arr = new int[3];
			ans = new double[3];
			
			String line[] = sc.nextLine().split(" ");
			arr[0] = Integer.parseInt(line[0]);
			arr[1] = Integer.parseInt(line[1]);
			arr[2] = Integer.parseInt(line[2]);
			
			//int arr[] = {3,4,5};
			
			Arrays.sort(arr);
			
			int i;
			for (i = 0;i < 3; i++){
				ans[i] = arr[i] * arr[i];
			}
			
			if (ans[0] + ans[1] == ans[2]){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	}
}

Compiler output:
Main.java:41: error: missing return statement
	}
	^
1 error
Language: Java

import java.io.*;


public class Test {
	public static void main(String[] args)  throws IOException
	{
	    BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
	    int N = Integer.parseInt(buf.readLine());
	    String[] list;
	    String[] check = new String[N];
	    int i,j,l;
	    for(int k=0; k<N; k++){
	        list = buf.readLine().split(" ");
	        i = Integer.parseInt(list[0]);
	        j = Integer.parseInt(list[1]);
	        l = Integer.parseInt(list[2]);
	        check[k] = Check(i,j,l);
	    }
	    for(int k = 0; k<N-1; k++){
	    	System.out.println(check[k]);
	    }
	    int n = N-1;
	    System.out.print(check[n]);
	    
	}
	
	public static String Check(int a,int b,int c){
		if(a-b >0 && a-c>0){
			if(a*a == b*b + c*c){
				return"Yes";
			}else{
				return "No";
			}
		}else if(b-a >0 && b-c>0){
			if(b*b == a*a + c*c){
				return "Yes";
			}else{
				return "No";
			}
		}else{
			if(c*c == b*b + a*a){
				return "Yes";
			}else{
				return "No";
			}
		}
	}
		
}

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

import java.io.IOException
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.util.Arrays;

public class Main {
    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String line = br.readLine();
        int N = Integer.parseInt(line);
        for (int i=0; i<N; i++){
            String l = br.readLine();
            Scanner sc = new Scanner(l);
            
            int a[];
            a = new int[3];
            for (int j=0; j<3; j++){
                a[j] = sc.nextInt();
            }
            Arrays.sort(a);
            if ((a[0]*a[0] + a[1]*a[1]) == a[2]*a[2]){
                System.out.println("YES");
            }else{
                System.out.println("NO");
            }
        }
    }
}

Compiler output:
Main.java:1: error: ';' expected
import java.io.IOException
                          ^
1 error
Language: Java

package byakko;

import java.util.Scanner;

 public class a{
	 public static void main(String[] args){
		 Scanner s = new Scanner(System.in);
		 int b,x,max,SH;
		 x = s.nextInt();
		 int[][] a = new int[x][3];
		 for(b = 0; b < x; b++){
			 a[b][0] = s.nextInt();
			 a[b][1] = s.nextInt();
			 a[b][2] = s.nextInt();
		 }
		 for(b = 0; b < x; b++){
			 max = a[b][0];
			 if(a[b][1] > max) max = a[b][0];
			 if(a[b][2] > max) max = a[b][2];
			 SH = a[b][0]*a[b][0] + a[b][1]*a[b][1];
			 max = max*max;
			 if(SH == max){
				 System.out.println("YES");
			 }else{
				 System.out.println("NO");
			 }
		 }
	 }
 }

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

import java.util.Scanner;

 public class a{
	 public static void main(String[] args){
		 Scanner s = new Scanner(System.in);
		 int b,x,max,SH;
		 while(s.hasNextInt()){
		 x = s.nextInt();
		 int[][] a = new int[x][3];
		 for(b = 0; b < x; b++){
			 a[b][0] = s.nextInt();
			 a[b][1] = s.nextInt();
			 a[b][2] = s.nextInt();
		 }
		 for(b = 0; b < x; b++){
			 max = a[b][0];
			 if(a[b][1] > max) max = a[b][0];
			 if(a[b][2] > max) max = a[b][2];
			 SH = a[b][0]*a[b][0] + a[b][1]*a[b][1];
			 max = max*max;
			 if(SH == max){
				 System.out.println("YES");
			 }else{
				 System.out.println("NO");
			 }
		 }
		 }
	 }
 }

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

import java.util.*;

class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt;
int t=new int[n][3];
for(int i=0;i<n;i++){
for(int j=0;j<3;j++){
t[i][j]=sc.nextInt();
}
if(triangle(i,t)){System.out.println("YES");}
else{System.out.println("NO");}
}
}
public static boolean triangle(int i,int[][] t){
int total=t[i][0]+t[i][1]+t[i][2];
int max=Math.max(t[i][0],t[i][1],t[i][2]);
int res=total-max;
if(res>total){return true;}
else{return false;}
}
}

Compiler output:
Main.java:6: error: cannot find symbol
int n=sc.nextInt;
        ^
  symbol:   variable nextInt
  location: variable sc of type Scanner
Main.java:7: error: incompatible types: int[][] cannot be converted to int
int t=new int[n][3];
      ^
Main.java:10: error: array required, but int found
t[i][j]=sc.nextInt();
 ^
Main.java:12: error: incompatible types: int cannot be converted to int[][]
if(triangle(i,t)){System.out.println("YES");}
              ^
Main.java:18: error: no suitable method found for max(int,int,int)
int max=Math.max(t[i][0],t[i][1],t[i][2]);
            ^
    method Math.max(int,int) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(long,long) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(float,float) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(double,double) is not applicable
      (actual and formal argument lists differ in length)
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
5 errors
Language: Java

import java.util.*;

class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt;
int[][] t=new int[n][3];
for(int i=0;i<n;i++){
for(int j=0;j<3;j++){
t[i][j]=sc.nextInt();
}
if(triangle(i,t)){System.out.println("YES");}
else{System.out.println("NO");}
}
}
public static boolean triangle(int i,int[][] t){
int total=t[i][0]+t[i][1]+t[i][2];
int max=Math.max(t[i][0],t[i][1],t[i][2]);
int res=total-max;
if(res>total){return true;}
else{return false;}
}
}

Compiler output:
Main.java:6: error: cannot find symbol
int n=sc.nextInt;
        ^
  symbol:   variable nextInt
  location: variable sc of type Scanner
Main.java:18: error: no suitable method found for max(int,int,int)
int max=Math.max(t[i][0],t[i][1],t[i][2]);
            ^
    method Math.max(int,int) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(long,long) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(float,float) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(double,double) is not applicable
      (actual and formal argument lists differ in length)
2 errors
Language: Java

import java.util.*;

class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int[][] t=new int[n][3];
for(int i=0;i<n;i++){
for(int j=0;j<3;j++){
t[i][j]=sc.nextInt();
}
if(triangle(i,t)){System.out.println("YES");}
else{System.out.println("NO");}
}
}
public static boolean triangle(int i,int[][] t){
int total=t[i][0]+t[i][1]+t[i][2];
int max=Math.max(t[i][0],t[i][1],t[i][2]);
int res=total-max;
if(res>total){return true;}
else{return false;}
}
}

Compiler output:
Main.java:18: error: no suitable method found for max(int,int,int)
int max=Math.max(t[i][0],t[i][1],t[i][2]);
            ^
    method Math.max(int,int) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(long,long) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(float,float) is not applicable
      (actual and formal argument lists differ in length)
    method Math.max(double,double) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.*;

class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int[][] t=new int[n][3];
for(int i=0;i<n;i++){
for(int j=0;j<3;j++){
t[i][j]=sc.nextInt();
}
if(triangle(i,t)){System.out.println("YES");}
else{System.out.println("NO");}
}
}
public static boolean triangle(int i,int[][] t){
int max=Math.max(Math.max(t[i][0],t[i][1]),t[i][2]);
int res=Math.min(Math.min(Math.hypot(t[i][0],t[i][1]),Math.hypot(t[i][0],t[i][2])),Math.hypot(t[i][2],t[i][1]))
if(res==max){return true;}
else{return false;}
}
}

Compiler output:
Main.java:18: error: ';' expected
int res=Math.min(Math.min(Math.hypot(t[i][0],t[i][1]),Math.hypot(t[i][0],t[i][2])),Math.hypot(t[i][2],t[i][1]))
                                                                                                               ^
1 error
Language: Java

import java.util.*;

class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
int[][] t=new int[n][3];
for(int i=0;i<n;i++){
for(int j=0;j<3;j++){
t[i][j]=sc.nextInt();
}
if(triangle(i,t)){System.out.println("YES");}
else{System.out.println("NO");}
}
}
public static boolean triangle(int i,int[][] t){
int max=Math.max(Math.max(t[i][0],t[i][1]),t[i][2]);
int res=Math.min(Math.min(Math.hypot(t[i][0],t[i][1]),Math.hypot(t[i][0],t[i][2])),Math.hypot(t[i][2],t[i][1]));
if(res==max){return true;}
else{return false;}
}
}

Compiler output:
Main.java:18: error: incompatible types: possible lossy conversion from double to int
int res=Math.min(Math.min(Math.hypot(t[i][0],t[i][1]),Math.hypot(t[i][0],t[i][2])),Math.hypot(t[i][2],t[i][1]));
                ^
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.StringTokenizer;

public class Main5 {
	private final static String NEGATIVE = "NO\n";
	private final static String AFFIRMATIVE = "YES\n";

	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 512);
		int number = Integer.parseInt(br.readLine());//行数
		int sides[] = new int[3];
		int productAB;//辺abの積
		StringTokenizer tknz;
		StringBuilder builder = new StringBuilder();

		for (; 0 < number; number--) {
			tknz = new StringTokenizer(br.readLine());
			for (int i = 0; i < 3; i++) {
				sides[i] = Integer.parseInt(tknz.nextToken());
			}
			Arrays.sort(sides);
			if (((productAB = sides[0] * sides[1]) % 12) != 0) {
				builder.append(NEGATIVE);
			} else if (productAB * sides[2] % 60 != 0) {
				builder.append(NEGATIVE);
			} else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {
				builder.append(NEGATIVE);
			} else {
				builder.append(AFFIRMATIVE);
			}
		}
		System.out.print(builder);
	}
}

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

import java.io.*;
import java.util.*;
public class Math{
 public static void main(String args[]){
  BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
  try{
   String str=br.readLine();
   StringTokenizer st=new StringTokenizer(str);
   int n[]=new int[Integer.parseInt(st.nextToken())];
   while((str=br.readLine())!=null){
    st=new StringTokenizer(str);
    for(int i=0;i<=2;i++){
     n[i]=Integer.parseInt(st.nextToken());
    }
    Arrays.sort(n);
    int a=(int)Math.pow(n[0],2);
    int b=(int)Math.pow(n[1],2);
    int c=(int)Math.pow(n[2],2);
    if(a+b==c){
     System.out.println("YES");
    }else{
     System.out.println("NO");
    }
   }
  }catch(Exception ex){
  }
 }
}

Compiler output:
Main.java:3: error: class Math is public, should be declared in a file named Math.java
public class Math{
       ^
Main.java:16: error: cannot find symbol
    int a=(int)Math.pow(n[0],2);
                   ^
  symbol:   method pow(int,int)
  location: class Math
Main.java:17: error: cannot find symbol
    int b=(int)Math.pow(n[1],2);
                   ^
  symbol:   method pow(int,int)
  location: class Math
Main.java:18: error: cannot find symbol
    int c=(int)Math.pow(n[2],2);
                   ^
  symbol:   method pow(int,int)
  location: class Math
4 errors
Language: Java

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        List<Integer> list = new ArrayList<Integer>();
        int limit = Integer.parseInt(scanner.next());
        for (int i = 0; i < limit; i++) {
            for (int j = 0; j < 3; j++) {
                list.add(Integer.parseInt(scanner.next()));
            }
            Collections.sort(list);
            Collections.reverse(list);
            int a = list.get(0);
            int b = list.get(1);
            int c = list.get(2);
            double cosA = getCosA(a, b, c);
            if (cosA == 0.0) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
            list.clear();
        }
    }

    private static double getCosA(int a, int b, int c) {
        return (Math.pow(b, 2) + Math.pow(c, 2) - Math.pow(a, 2)) / (2 * b * c);
    }
}

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
Main.java:4: error: cannot find symbol
        List<Integer> list = new ArrayList<Integer>();
        ^
  symbol:   class List
  location: class Main
Main.java:4: error: cannot find symbol
        List<Integer> list = new ArrayList<Integer>();
                                 ^
  symbol:   class ArrayList
  location: class Main
Main.java:10: error: cannot find symbol
            Collections.sort(list);
            ^
  symbol:   variable Collections
  location: class Main
Main.java:11: error: cannot find symbol
            Collections.reverse(list);
            ^
  symbol:   variable Collections
  location: class Main
6 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Isitsarighttriangle {

	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String f = br.readLine();
		int[][] a = new int[Integer.parseInt(f)][3];
		for(int i = 0 ; i < Integer.parseInt(f) ; i++){
			String str = br.readLine();
			String[] stra = str.split(" ");
			a[i][0] = Integer.parseInt(stra[0]);
			a[i][1] = Integer.parseInt(stra[1]);
			a[i][2] = Integer.parseInt(stra[2]);
			if(a[i][0]*a[i][0]+a[i][1]*a[i][1]==a[i][2]*a[i][2]){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}

	}

}

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

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Isitsarighttriangle {

	public static void main(String[] args) throws IOException{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String f = br.readLine();
		int[][] a = new int[Integer.parseInt(f)][3];
		for(int i = 0 ; i < Integer.parseInt(f) ; i++){
			String str = br.readLine();
			String[] stra = str.split(" ");
			a[i][0] = Integer.parseInt(stra[0]);
			a[i][1] = Integer.parseInt(stra[1]);
			a[i][2] = Integer.parseInt(stra[2]);
			if(a[i][0]*a[i][0]+a[i][1]*a[i][1]==a[i][2]*a[i][2]){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	}

}

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

import java.util.Arrays;
import java.util.Scanner;

public class IsitaRightTriangle {

	/**
	 * 1 ??\??? 1000 ??\?????????????????£?????´??°?????\?????????????????????????????????????????¨??????????§???¢?????´?§?????§???¢??§????????´????????? YES ??????????????´????????? NO ??¨????????????????????????????????°?????????????????????????????????
	 * @param args
	 * @throws IOException
	 */
	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		Scanner sc = new Scanner(System.in);
		// ???????????????????????°
		int num = sc.nextInt();

		for (int i = 0; i < num; i++) {
			int[] inputNumList = new int[3];
			inputNumList[0] = sc.nextInt();
			inputNumList[1] = sc.nextInt();
			inputNumList[2] = sc.nextInt();

			// ?????????????????????inputNumList[2]?????§?????????????????£?????????
			Arrays.sort(inputNumList);
			if (inputNumList[0] * inputNumList[0] + inputNumList[1]
					* inputNumList[1] == inputNumList[2] * inputNumList[2]) {
				System.out.println("YES");

			} else {
				System.out.println("NO");
			}
		}

	}

}

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

import java.util.*;
public class Program2
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		for(int i = 0; i<n; i++){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			a*=a;
			b*=b;
			c*=c;
			if(a + b == c || a + c == b || b + c == a){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	}
}

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

import java.util.*;
public class Program2
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		for(int i = 0; i<n; i++){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			a*=a;
			b*=b;
			c*=c;
			if(a + b == c || c - a == b || c - b == a){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	}
}

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

import java.util.*;
public class Program2
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		for(int i = 0; i < n; ++i ){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			a*=a;
			b*=b;
			c*=c;
			if(a + b == c || c - a == b || c - b == a){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	}
}

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

import java.util.*;

public class Program2{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		for(int i = 0; i < n; ++i ){
			int a = sc.nextInt();
			int b = sc.nextInt();
			int c = sc.nextInt();
			a*=a;
			b*=b;
			c*=c;
			if(a + b == c || a + c == b || b + c == a){
				System.out.println("YES");
			}else{
				System.out.println("NO");
			}
		}
	}
}

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

import java.util.Arrays;
import java.util.Scanner;

public class vol3 {
	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int i[] = new int[3];
		for (int j = 0; j < i.length; j++) {
			i[j] = scan.nextInt();
		}
		Arrays.sort(i);
		if((i[2]*i[2]) == (i[1]*i[1])+(i[0]*i[0])){
			System.out.println("YES");
		}else{
			System.out.println("NO");
		}
	}
}

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


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

public class main {

	public static void main(String[] args) throws IOException {
		
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int count = Integer.parseInt(br.readLine());
		
		String ans[] = new String[count];
		
		for (int i = 0; i < count; i++) {
			String s = br.readLine();
			
			StringTokenizer st = new StringTokenizer(s);
			
			int num[] = new int[4];
			for (int j = 0; j < 3; j++) {
				num[j] = Integer.parseInt(st.nextToken());
				if (num[0] < num[j]) {
					int tmp = num[0];
					num[0] = num[j];
					num[j] = tmp;
				}
			}
			if (num[0] * num[0] == num[1] * num[1] + num[2] * num[2]){
                ans[i] = "YES";
            }else{
                ans[i] = "NO";
            }
		}	
		for(int i=0;i<count;i++){
			System.out.println(ans[i]);
        }
	}
}

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

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

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

		// ????§???¢??????????????°
		int x;
		int y;
		int z;

		// ????????\??????????????????????????§2????????????????????????
		String line = br.readLine();
		line = br.readLine();
		while (line != null) {
			String strArray[] = line.split(" ");
			x = Integer.valueOf(strArray[0]);
			y = Integer.valueOf(strArray[1]);
			z = Integer.valueOf(strArray[2]);

			// ?????????????????????
			// ??´?§?????§???¢???????????¬????????? 3:4:5????????????????????????????????????
			// Yes???????????¨?????????

			// ????????????:?????????3??§??????????????? ?????? ???????????????4??¨5??§???????????????(?????????)
			// ?????????????????????????????????3????????????
			String Anser = "NO";
			if (x % 3 == 0 && (y % 4 ==0 && z % 5 == 0) || (y % 5 == 0 && z % 4 ==0)) {
				Anser = "YES";
			} else if (x % 4 == 0 && (y % 3 ==0 && z % 5 == 0) || (y % 5 == 0 && z % 3 ==0)) {
				Anser = "YES";
			} else if (x % 5 == 0 && (y % 4 ==0 && z % 3 == 0) || (y % 3 == 0 && z % 4 ==0)) {
				Anser = "YES";
			} else if (x % 5 == 0 && (y % 12 ==0 && z % 13 == 0) || (y % 13 == 0 && z % 12 ==0)) {
				Anser = "YES";
			} else if (x % 12 == 0 && (y % 5 ==0 && z % 13 == 0) || (y % 13 == 0 && z % 5 ==0)) {
				Anser = "YES";
			} else if (x % 13 == 0 && (y % 5 ==0 && z % 12 == 0) || (y % 12 == 0 && z % 5 ==0)) {
				Anser = "YES";
			}
			System.out.println(Anser);
			line = br.readLine();
		}
}

Compiler output:
Main.java:46: error: reached end of file while parsing
}
 ^
1 error
Language: Java

class Main{
    public static void main(String[] a) throws NumberFormatException, IOException{
        int arr[]={0,0,0};
		
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			
			int no = Integer.parseInt(br.readLine());
			if(no < 1000) {
				for(int j=0;j<no;j++) {
					StringTokenizer tkn = new StringTokenizer(br.readLine());
					for(int i=0;i<3;i++) {
						arr[i] = Integer.parseInt(tkn.nextToken());
					}
					Arrays.sort(arr);
					isRightTriangle(arr);
				}
			}
    }

    public static void isRightTriangle(int a[]) {
			int hyp = a[2];
			if(hyp !=0 && a[0] != 0 && a[1] != 0) {
				if(((a[0]*a[0]) + (a[1]*a[1])) == (hyp*hyp)) {
					System.out.println("YES");
				} else {
					System.out.println("NO");
				}
			}
	}

}

Compiler output:
Main.java:2: error: cannot find symbol
    public static void main(String[] a) throws NumberFormatException, IOException{
                                                                      ^
  symbol:   class IOException
  location: class Main
Main.java:5: error: cannot find symbol
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
			BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
			                                           ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:10: error: cannot find symbol
					StringTokenizer tkn = new StringTokenizer(br.readLine());
					^
  symbol:   class StringTokenizer
  location: class Main
Main.java:10: error: cannot find symbol
					StringTokenizer tkn = new StringTokenizer(br.readLine());
					                          ^
  symbol:   class StringTokenizer
  location: class Main
Main.java:14: error: cannot find symbol
					Arrays.sort(arr);
					^
  symbol:   variable Arrays
  location: class Main
7 errors
Language: Java

import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;

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

        int nDataSets = sc.nextInt();

        for (int i = 0; i < noDataSet; i++) {
            ArrayList<Integer> nums = new ArrayList<Integer>();
            nums.add(sc.nextInt());
            nums.add(sc.nextInt());
            nums.add(sc.nextInt());
            Collections.sort(nums);

            int a = nums.get(0);
            int b = nums.get(1);
            int c = nums.get(2);

            if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {
                System.out.println("YES");
            } else {
                System.out.println("NO");
            }
        }
    }
}

Compiler output:
Main.java:11: error: cannot find symbol
        for (int i = 0; i < noDataSet; i++) {
                            ^
  symbol:   variable noDataSet
  location: class Main
1 error
Language: Java

import java.util.Scanner;
public class main {
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), m = 0;
		int a[] = new int[n], b[] = new int[n],c[] = new int[n];
		for(int i = 0; i < n; i++){
			a[i] = sc.nextInt();
			b[i] = sc.nextInt();
			c[i] = sc.nextInt();			
		}
		for(int i = 0; i < n; i++){
			if(a[i]<b[i]){
				m = a[i];
				a[i] = b[i];
				b[i] = m;
			} else {
				if(a[i]<c[i]){
					m = a[i];
					a[i] = c[i];
					c[i] = m;
				}
			}
		if(a[i]*a[i] == b[i]*b[i] + c[i]*c[i]){
			System.out.println("Yes");
		} else {
			System.out.println("No");
			}
		}
	}
}

Compiler output:
Main.java:2: error: class main is public, should be declared in a file named main.java
public 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(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(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);
                              ^
Main.java:27: error: reached end of file while parsing
}
 ^
2 errors