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


public class hillsHight {
	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????

		//Sample Input 1

		int[] mountain = {
				1819,
				2003,
				876,
				2840,
				1723,
				1673,
				3776,
				2848,
				1592,
				922,
		};

		//Sample Input 2
		/*
		int[] mountain = {
				100,
				200,
				300,
				400,
				500,
				600,
				700,
				800,
				900,
				900,
		};

	*/
		//?????????
		int max1 = mountain[0]; //1???
		int max2 = mountain[0]; //2???
		int max3 = mountain[0]; //3???
		int temp = 0; 					//??\???????????¨TEMP?????°

		//for???????????§?????????????????§?????°?????°??????
		for (int i=0; i<mountain.length; i++) {

			//3????????\?????????
			if (max3 < mountain[i]) {
				max3 = mountain[i];

				//3????????°??????2???????¶?????????´???
				if(max3 > max2){
					//TEMP????????¨???2????????\??????
					temp = max2;
					//2?????¨3????????\????????????
					max2 = max3;
					//3????????????2???(TEMP)?????°????????\??????
					max3 = temp;

					//1?????????????????????
					if(max2 > max1){
						temp = max1;
						max1 = max2;
						max2 = temp;
					}
				}
			}
		}

		System.out.println("1????????????????±±?????????" + max1);
		System.out.println("2????????????????±±?????????" + max2);
		System.out.println("3????????????????±±?????????" + max3);

	}

}

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


public class hillsHight {
	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????

		//Sample Input 1

		int[] mountain = {
				1819,
				2003,
				876,
				2840,
				1723,
				1673,
				3776,
				2848,
				1592,
				922,
		};

		//Sample Input 2
		/*
		int[] mountain = {
				100,
				200,
				300,
				400,
				500,
				600,
				700,
				800,
				900,
				900,
		};

	*/
		//?????????
		int max1 = mountain[0]; //1???
		int max2 = mountain[0]; //2???
		int max3 = mountain[0]; //3???
		int temp = 0; 					//??\???????????¨TEMP?????°

		//for???????????§?????????????????§?????°?????°??????
		for (int i=0; i<mountain.length; i++) {

			//3????????\?????????
			if (max3 < mountain[i]) {
				max3 = mountain[i];

				//3????????°??????2???????¶?????????´???
				if(max3 > max2){
					//TEMP????????¨???2????????\??????
					temp = max2;
					//2?????¨3????????\????????????
					max2 = max3;
					//3????????????2???(TEMP)?????°????????\??????
					max3 = temp;

					//1?????????????????????
					if(max2 > max1){
						temp = max1;
						max1 = max2;
						max2 = temp;
					}
				}
			}
		}

		System.out.println(max1);
		System.out.println(max2);
		System.out.println(max3);

	}

}

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


public class hillsHight {
	public static void main(String[] a) {
		// TODO ?????????????????????????????????????????????

		//Sample Input 1
		int[] mountain = {
				1819,
				2003,
				876,
				2840,
				1723,
				1673,
				3776,
				2848,
				1592,
				922,
		};

		//Sample Input 2
		/*
		int[] mountain = {
				100,
				200,
				300,
				400,
				500,
				600,
				700,
				800,
				900,
				900,
		};

	*/
		//?????????
		int max1 = mountain[0]; //1???
		int max2 = mountain[0]; //2???
		int max3 = mountain[0]; //3???
		int temp = 0; 					//??\???????????¨TEMP?????°

		//for???????????§?????????????????§?????°?????°??????
		for (int i=0; i<mountain.length; i++) {

			//3????????\?????????
			if (max3 < mountain[i]) {
				max3 = mountain[i];

				//3????????°??????2???????¶?????????´???
				if(max3 > max2){
					//TEMP????????¨???2????????\??????
					temp = max2;
					//2?????¨3????????\????????????
					max2 = max3;
					//3????????????2???(TEMP)?????°????????\??????
					max3 = temp;

					//1?????????????????????
					if(max2 > max1){
						temp = max1;
						max1 = max2;
						max2 = temp;
					}
				}
			}
		}

		System.out.println("1????????????????±±?????????" + max1);
		System.out.println("2????????????????±±?????????" + max2);
		System.out.println("3????????????????±±?????????" + max3);

	}

}

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

import java.util.Scanner;

public class tes3 {
	public static void main(String[] a) {
		// TODO ?????????????????????????????????????????????

		//Sample Input 1
		int[] mountain;
		mountain = new int[10];

		//????????¶?????\??????????????????
		Scanner scan = new Scanner(System.in);

		// TODO ?????????????????????????????????????????????
		//????????¶???????????????????????°??????????????????
		for(int i =0; i<10; i++){
			String nyu = scan.next();
			int intnyu = Integer.parseInt(nyu);
			 mountain[i] = intnyu;
		}

		//????????????
		scan.close();


		//?????????
		int max1 = mountain[0]; //1???
		int max2 = mountain[0]; //2???
		int max3 = mountain[0]; //3???
		int temp = 0; 					//??\???????????¨TEMP?????°

		//for???????????§?????????????????§?????°?????°??????
		for (int i=0; i<mountain.length; i++) {

			//3????????\?????????
			if (max3 < mountain[i]) {
				max3 = mountain[i];

				//3????????°??????2???????¶?????????´???
				if(max3 > max2){
					//TEMP????????¨???2????????\??????
					temp = max2;
					//2?????¨3????????\????????????
					max2 = max3;
					//3????????????2???(TEMP)?????°????????\??????
					max3 = temp;

					//1?????????????????????
					if(max2 > max1){
						temp = max1;
						max1 = max2;
						max2 = temp;
					}
				}
			}
		}

		System.out.println(max1);
		System.out.println(max2);
		System.out.println(max3);

	}

}

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

import java.io.*;

class Main{
	public static void main(String[] args)throws IOException{
		int[] height=new int[10];
		BufferedReader[] br=new BufferedReader[10];
		String[] st=new String[10];

		for(int i=0; i<10; i++){
			br[i]=new BufferedReader(new InputStreamReader(System.in));
			st[i]="";
			st[i]=br[i].readLine();
			height[i]=0;
			height[i]=Integer.parseInt(st[i]);
			if(height[i]<0){
				height[i]=Math.abs(height[i]);
			}
		}

		int a=0;		//a uses bubble sort


		/*for(int j=0; j<9; j++){
			for(int k=9; k>j; k--){
				if(height[k]<height[k-1]){
					a=height[k];
					height[k]=height[k-1];
					height[k-1]=a;
				}
			}
		}*/Arrays.sort(height);

		for(int l=0; l<3; l++){
			System.out.println(height[9-l]);
		}
	}
}

Compiler output:
Main.java:31: error: cannot find symbol
		}*/Arrays.sort(height);
		   ^
  symbol:   variable Arrays
  location: class Main
1 error
Language: Java

import java.io.*;



class Main{
	public static void main(String[] args)throws IOException{
		int[] height=new int[10];
		BufferedReader[] br=new BufferedReader[10];
		String[] st=new String[10];

		for(int i=0; i<10; i++){
			br[i]=new BufferedReader(new InputStreamReader(System.in));
			st[i]="";
			st[i]=br[i].readLine();
			height[i]=0;
			height[i]=Integer.parseInt(st[i]);
			if(height[i]<0){
				height[i]=Math.abs(height[i]);
			}
		}

		int a=0;

		Arrays.sort(height);

		for(int l=0; l<3; l++){
			System.out.println(height[9-l]);
		}
	}
}

Compiler output:
Main.java:24: error: cannot find symbol
		Arrays.sort(height);
		^
  symbol:   variable Arrays
  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);
		Calc calc = new Calc();
		int[] height = {2, 1, 0};
		int newh;
		for(int cnt = 1;cnt<10;cnt++){
			newh = sc.nextInt();
			height = Calc.calc(newh, height);
		};
		System.out.println(height[0]);
		System.out.println(height[1]);
		System.out.println(height[2]);
	}
}

Compiler output:
Main.java:6: error: cannot find symbol
		Calc calc = new Calc();
		^
  symbol:   class Calc
  location: class Main
Main.java:6: error: cannot find symbol
		Calc calc = new Calc();
		                ^
  symbol:   class Calc
  location: class Main
Main.java:11: error: cannot find symbol
			height = Calc.calc(newh, height);
			         ^
  symbol:   variable Calc
  location: class Main
3 errors
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		Calc calc = new Calc();
		int[] height = {0,0,0};
		int newh;
		;
		for(int cnt = 0;cnt<10;cnt++){
			newh = sc.nextInt();
			height = Calc.calc(newh, height);
		};
		System.out.println(height[0]);
		System.out.println(height[1]);
		System.out.println(height[2]);
	}
}

class Calc{
	//private static final int imax = 110;
	public static int[] calc(int h, int[] Pastheight){
		int Newheight[] = (int[])Pastheight.clone();
		if( (h > Pastheight[2]) && (h =< Pastheight[1])){
			Newheight[2] = h;
		}else if((h > Pastheight[1]) && (h =< Pastheight[0])){
			Newheight[1] = h;
			Newheight[2] = Pastheight[1];
		}else if(h > Pastheight[0]){
			Newheight[0] = h;
			Newheight[1] = Pastheight[0];
			Newheight[2] = Pastheight[1];
		}
	return Newheight;
	}
}

Compiler output:
Main.java:24: error: ']' expected
		if( (h > Pastheight[2]) && (h =< Pastheight[1])){
		                                            ^
Main.java:24: error: ';' expected
		if( (h > Pastheight[2]) && (h =< Pastheight[1])){
		                                             ^
Main.java:26: error: ']' expected
		}else if((h > Pastheight[1]) && (h =< Pastheight[0])){
		                                                 ^
Main.java:26: error: ';' expected
		}else if((h > Pastheight[1]) && (h =< Pastheight[0])){
		                                                  ^
Main.java:26: error: 'else' without 'if'
		}else if((h > Pastheight[1]) && (h =< Pastheight[0])){
		 ^
Main.java:29: error: 'else' without 'if'
		}else if(h > Pastheight[0]){
		 ^
6 errors
Language: Java

package aoj;

import java.util.*;

public class Volume000001{
    
    static int[] height={1245,7756,5657,676,4546,567,23435,465656,4546,2130};
    
    public static void main(String[] args){

        for(int i=0;i<=9;i++){
            height[i]=new Scanner(System.in).nextInt();
        }
        
        //sort
        int key;
        int obj;
        
        for(key=9;key>=0;key--){
            
            for(int i=0;i<=key-1;i++){
                if(height[i]>height[i+1]){
                    swap(i,i+1);
                }
            }
            
        }
        
        for(int j=0;j<=9;j++){
            
            System.out.println(height[j]);
            
        }
        
        
        
    }
    
    public static void swap(int a,int b){
        int i;
        i=height[a];height[a]=height[b];height[b]=i;
    }
}

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

public class Main{
    
    static int[] height={1245,7756,5657,676,4546,567,23435,465656,4546,2130};
    
    public static void main(String[] args){

        for(int i=0;i<=9;i++){
            height[i]=new Scanner(System.in).nextInt();
        }
        
        //sort
        int key;
        int obj;
        
        for(key=9;key>=0;key--){
            
            for(int i=0;i<=key-1;i++){
                if(height[i]>height[i+1]){
                    swap(i,i+1);
                }
            }
            
        }
        
        System.out.println(height[9]);
        System.out.println(height[8]);
        System.out.println(height[7]);
        
        
        
    }
    
    public static void swap(int a,int b){
        int i;
        i=height[a];height[a]=height[b];height[b]=i;
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
            height[i]=new Scanner(System.in).nextInt();
                          ^
  symbol:   class Scanner
  location: class Main
1 error
Language: Java

import java.util.*;

public class Volume000001{
    
    static int[] height={1245,7756,5657,676,4546,567,23435,465656,4546,2130};
    
    public static void main(String[] args){
        
        int[] hill={1245,7756,5657,676,4546,567,23435,465656,4546,2130};
        
        for(int i=0;i<=9;i++){
            hill[i]=new Scanner(System.in).nextInt();
        }
        
        //sort
        int key;
        int obj;
        int flag;
        
        for(key=9;key>=0;key--){
            
            for(int i=0;i<=key-1;i++){
                if(hill[i]>hill[i+1]){

                    flag=hill[i];hill[i]=hill[i+1];hill[i+1]=flag;
                }
            }
            
        }
        
        System.out.println(hill[9]);
        System.out.println(hill[8]);
        System.out.println(hill[7]);
        
        
        
    }
    
}

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

import java.util.*;

public class Volume000001{
    
    public static void main(String[] args){
        
        int[] hill={1245,7756,5657,676,4546,567,23435,465656,4546,2130};
        
        for(int i=0;i<=9;i++){
            hill[i]=new Scanner(System.in).nextInt();
        }
        
        //sort
        int key;
        int obj;
        int flag;
        
        for(key=9;key>=0;key--){
            
            for(int i=0;i<=key-1;i++){
                if(hill[i]>hill[i+1]){

                    flag=hill[i];hill[i]=hill[i+1];hill[i+1]=flag;
                }
            }
            
        }
        
        System.out.println(hill[9]);
        System.out.println(hill[8]);
        System.out.println(hill[7]);
        
        
        
    }
    
}

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

public class Main{
    
    public static void main(String[] args){
        
        int[] hill={0,0,0,0,0,0,0,0,0,0};
        
        for(int j=0;j<=9;j++){
            hill[j]=new Scanner(System.in).nextInt();
        }
        
        int key;
        int flag;
        
        for(key=9;key>=0;key--){
            
            for(int i=0;i<=key-1;i++){
                if(hill[i]>hill[i+1]){
                    flag=hill[i];hill[i]=hill[i+1];hill[i+1]=flag;
                }
            }
            
        }
        
        System.out.println(hill[9]);
        System.out.println(hill[8]);
        System.out.println(hill[7]);
        
        
        
    }
    
}

Compiler output:
Main.java:8: error: cannot find symbol
            hill[j]=new Scanner(System.in).nextInt();
                        ^
  symbol:   class Scanner
  location: class Main
1 error
Language: Java

public class Main{
    
    public static int main(String[] args){
        
        int[] hill={0,0,0,0,0,0,0,0,0,0};
        
        for(int j=0;j<=9;j++){
            hill[j]=new Scanner(System.in).nextInt();
        }
        
        int key;
        int flag;
        
        for(key=9;key>=0;key--){
            
            for(int i=0;i<=key-1;i++){
                if(hill[i]>hill[i+1]){
                    flag=hill[i];hill[i]=hill[i+1];hill[i+1]=flag;
                }
            }
            
        }
        
        System.out.println(hill[9]);
        System.out.println(hill[8]);
        System.out.println(hill[7]);
        
        return 0;
        
    }
    
}

Compiler output:
Main.java:8: error: cannot find symbol
            hill[j]=new Scanner(System.in).nextInt();
                        ^
  symbol:   class Scanner
  location: class Main
1 error
Language: Java

public class Main{
    
    public static void main(String[] args){
        
        int[] hill;
        
        for(int j=0;j<=9;j++){
            hill[j]=new Scanner(System.in).nextInt();
        }
        
        int key;
        int flag;
        
        for(key=9;key>=0;key--){
            
            for(int i=0;i<=key-1;i++){
                if(hill[i]>hill[i+1]){
                    flag=hill[i];hill[i]=hill[i+1];hill[i+1]=flag;
                }
            }
            
        }
        
        System.out.println(hill[9]);
        System.out.println(hill[8]);
        System.out.println(hill[7]);
        
        return;
        
    }
    
}

Compiler output:
Main.java:8: error: cannot find symbol
            hill[j]=new Scanner(System.in).nextInt();
                        ^
  symbol:   class Scanner
  location: class Main
1 error
Language: Java

import java.util.*;

public class Main{
    
    public static void main(String[] args){
        
        int[] hill;
        
        for(int j=0;j<=9;j++){
            hill[j]=new Scanner(System.in).nextInt();
        }
        
        int key;
        int flag;
        
        for(key=9;key>=0;key--){
            
            for(int i=0;i<=key-1;i++){
                if(hill[i]>hill[i+1]){
                    flag=hill[i];hill[i]=hill[i+1];hill[i+1]=flag;
                }
            }
            
        }
        
        System.out.println(hill[9]);
        System.out.println(hill[8]);
        System.out.println(hill[7]);
        
        return;
        
    }
    
}

Compiler output:
Main.java:10: error: variable hill might not have been initialized
            hill[j]=new Scanner(System.in).nextInt();
            ^
Main.java:19: error: variable hill might not have been initialized
                if(hill[i]>hill[i+1]){
                   ^
Main.java:26: error: variable hill might not have been initialized
        System.out.println(hill[9]);
                           ^
3 errors
Language: Java

public class Aizu1_1 {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        // TODO code application logic here
       Scanner stdIn = new Scanner(System.in);
        int[] mountain_height = new int[10];
        
        for(int j = 0; j<mountain_height.length; j++){
           mountain_height[j] = stdIn.nextInt();
        }
        Arrays.sort(mountain_height);
        
        for(int i=mountain_height.length-1; i>=mountain_height.length-3; i--){
            System.out.println(mountain_height[i]);
        }
     }
    
}

Compiler output:
Main.java:1: error: class Aizu1_1 is public, should be declared in a file named Aizu1_1.java
public class Aizu1_1 {
       ^
Main.java:8: error: cannot find symbol
       Scanner stdIn = new Scanner(System.in);
       ^
  symbol:   class Scanner
  location: class Aizu1_1
Main.java:8: error: cannot find symbol
       Scanner stdIn = new Scanner(System.in);
                           ^
  symbol:   class Scanner
  location: class Aizu1_1
Main.java:14: error: cannot find symbol
        Arrays.sort(mountain_height);
        ^
  symbol:   variable Arrays
  location: class Aizu1_1
4 errors
Language: Java

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


???public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int[] mountains = new int[10];
		for(int i = 0; i < 10; i++){
		???mountains[i] = sc.nextInt();
		}
		Arrays.sort(mountains);
		System.out.println("1????????????????±±???" + mountains[9] + "m");
		System.out.println("2????????????????±±???" + mountains[8] + "m");
		System.out.println("3????????????????±±???" + mountains[7] + "m");	
	}
}

Compiler output:
Main.java:5: error: class, interface, enum, or record expected
???public class Main {
^
Main.java:11: error: illegal start of expression
		???mountains[i] = sc.nextInt();
		^
Main.java:11: error: illegal start of expression
		???mountains[i] = sc.nextInt();
		 ^
Main.java:11: error: illegal start of expression
		???mountains[i] = sc.nextInt();
		  ^
Main.java:11: error: : expected
		???mountains[i] = sc.nextInt();
		                              ^
5 errors
Language: Java

public class Main {
	public static void main(String args[] ) throws Exception {
        Scanner sc = new Scanner(System.in);
        Integer array[] = {1, 1, 1, 1, 1,1, 1, 1, 1, 1}; 
        for(int i = 0; i < 10; ++i){
        	array[i] = sc.nextInt();
        }
        Arrays.sort(array, Comparator.reverseOrder());
        for(int i = 0; i < 3; ++i){
            System.out.println(array[i]);
        }
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
Main.java:8: error: cannot find symbol
        Arrays.sort(array, Comparator.reverseOrder());
        ^
  symbol:   variable Arrays
  location: class Main
Main.java:8: error: cannot find symbol
        Arrays.sort(array, Comparator.reverseOrder());
                           ^
  symbol:   variable Comparator
  location: class Main
4 errors
Language: Java

import java.util.Comparator;
import java.util.Scanner;

public class Main {
	public static void main(String args[] ) throws Exception {
        Scanner sc = new Scanner(System.in);
        Integer array[] = {1, 1, 1, 1, 1,1, 1, 1, 1, 1}; 
        for(int i = 0; i < 10; ++i){
        	array[i] = sc.nextInt();
        }
        Arrays.sort(array, Comparator.reverseOrder());
        for(int i = 0; i < 3; ++i){
            System.out.println(array[i]);
        }
    }
}

Compiler output:
Main.java:11: error: cannot find symbol
        Arrays.sort(array, Comparator.reverseOrder());
        ^
  symbol:   variable Arrays
  location: class Main
1 error
Language: Java

import java.util.Collections;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String[] args){
		
		Scanner sc = new Scanner(System.in);
		ArrayList<Integer> list = new ArrayList<>();
		for(int i=0 ; i<10 ;i++){
			int a = sc.nextInt();
			list.add(a);
		}
		
		Collections.sort(list);
		
		System.out.println("1????????????????±±?????????" + list.get(9));
		System.out.println("2????????????????±±?????????" + list.get(8));
		System.out.println("2????????????????±±?????????" + list.get(7));
		
		
	}

}

Compiler output:
Main.java:9: error: cannot find symbol
		ArrayList<Integer> list = new ArrayList<>();
		^
  symbol:   class ArrayList
  location: class Main
Main.java:9: error: cannot find symbol
		ArrayList<Integer> list = new ArrayList<>();
		                              ^
  symbol:   class ArrayList
  location: class Main
2 errors
Language: Java

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

class AOJ0001 {
  public static void main(String[] args){
    int[] m = new int[10];
    input(m, 10);
    Arrays.sort(m);
    reverse(m);
    output(m, 3);
  }

  private static void reverse(int[] m){
    int n = m.length;
    for (int i = 0; i < n / 2; i++){
      int tmp = m[i];
      m[i] = m[n - i - 1];
      m[n - i - 1] = tmp;
    }
  }

  private static void output(int[] m, int n){
    for (int i = 0; i < n; i++){
      System.out.println(m[i]);
    }
  }

  private static final input(int[] m, int n){
    Scanner cin = new Scanner(System.in);
    for (int i = 0; i < n; i++){
      m[i] = cin.nextInt();
    }
  }
}

Compiler output:
Main.java:28: error: invalid method declaration; return type required
  private static final input(int[] m, int n){
                       ^
1 error
Language: Java

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

class Main {
  public static void main(String[] args){
    int[] m = new int[10];
    input(m, 10);
    Arrays.sort(m);
    reverse(m);
    output(m, 3);
  }

  private static void reverse(int[] m){
    int n = m.length;
    for (int i = 0; i < n / 2; i++){
      int tmp = m[i];
      m[i] = m[n - i - 1];
      m[n - i - 1] = tmp;
    }
  }

  private static void output(int[] m, int n){
    for (int i = 0; i < n; i++){
      System.out.println(m[i]);
    }
  }

  private static final input(int[] m, int n){
    Scanner cin = new Scanner(System.in);
    for (int i = 0; i < n; i++){
      m[i] = cin.nextInt();
    }
  }
}

Compiler output:
Main.java:28: error: invalid method declaration; return type required
  private static final input(int[] m, int n){
                       ^
1 error
Language: Java

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

public class Main0_2 {

    public static void main(String[] a) throws IOException{
    	;
    	String strLine ="";
    	BufferedReader stdReader =
            new BufferedReader(new InputStreamReader(System.in));

    	Integer[] hill = new Integer[10];
    	int i = 0;

    	while((strLine = stdReader.readLine()) != null){
    		hill[i] = Integer.parseInt(strLine);
    		i++;
    	}

    	Arrays.sort(hill);

    	for(i = 9; i >= 7; i--){
    		System.out.println(hill[i]);
    	}
    }

}

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

class Main{
	public static void main(String[] args){
		Scanner sc =new Scanner(System.in);
		int[] highests={0,0,0};
		for(int i=0;i<10;i++){
			int height=Integer.parseInt(sc.nextLine());

			if(highests[0]<=height){
				highests[2]=highests[1];
				highests[1]=highests[0];
				highests[0]=height;

			}else if(highests[1]<=height){
				highests[2]=highests[1];
				highests[1]=height;
			}else if(highests[2]<=height){
				highests[2]=height;
			}
		}

		System.out.println(highests[0]);
		System.out.println(highests[1]);
		System.out.println(highests[2]);

	}
}

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

import java.util.*;
public class main {
	public static void main(String[] args){
		int a[]=new int[10];
		Scanner x=new Scanner(System.in);
		for(int i=0;i<10;i++){
			a[i]=x.nextInt();
		}
		Arrays.sort(a);
		x.close();
		for(int j=9;j>=7;j--)
			System.out.println(a[j]);
	}
	

}

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.util.*;
public class JP {
	public static void main(String[] args){
		int a[]=new int[10];
		Scanner x=new Scanner(System.in);
		for(int i=0;i<10;i++){
			a[i]=x.nextInt();
		}
		Arrays.sort(a);
		x.close();
		for(int j=9;j>=7;j--)
			System.out.println(a[j]);
	}
	

}

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

import java.util.*;
import java.util.stream.*;
import java.io.*;
class Main {
  public static void main(String[] args) {
    try {
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      int[] mt = new int(10);
      for (int i = 0; i < 10; i++) {
        mt[i] = Integer.parseInt(br.readLine());
      }
      Arrays.stream(mt)
        .sorted((e1, e2) -> e1.compareTo(e2))
        .limit(3)
        .forEach(System.out::println);
    }
  }
}

Compiler output:
Main.java:8: error: '[' expected
      int[] mt = new int(10);
                        ^
Main.java:8: error: ']' expected
      int[] mt = new int(10);
                            ^
Main.java:6: error: 'try' without 'catch', 'finally' or resource declarations
    try {
    ^
3 errors
Language: Java

import java.util.*;
import java.util.stream.*;
import java.io.*;
class Main {
  public static void main(String[] args) {
    try {
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      int[] mt = new int[](10);
      for (int i = 0; i < 10; i++) {
        mt[i] = Integer.parseInt(br.readLine());
      }
      Arrays.stream(mt)
        .sorted((e1, e2) -> e1.compareTo(e2))
        .limit(3)
        .forEach(System.out::println);
    }
  }
}

Compiler output:
Main.java:8: error: array dimension missing
      int[] mt = new int[](10);
                          ^
Main.java:6: error: 'try' without 'catch', 'finally' or resource declarations
    try {
    ^
2 errors
Language: Java

import java.util.*;
import java.util.stream.*;
import java.io.*;
class Main {
  public static void main(String[] args) {
    try {
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      int[] mt = new int[10];
      for (int i = 0; i < 10; i++) {
        mt[i] = Integer.parseInt(br.readLine());
      }
      Arrays.stream(mt)
        .sorted((e1, e2) -> e1.compareTo(e2))
        .limit(3)
        .forEach(System.out::println);
    }
  }
}

Compiler output:
Main.java:6: error: 'try' without 'catch', 'finally' or resource declarations
    try {
    ^
1 error
Language: Java

import java.util.*;
import java.util.stream.*;
import java.io.*;
class Main {
  public static void main(String[] args) {
    try {
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      int[] mt = new int[10];
      for (int i = 0; i < 10; i++) {
        mt[i] = Integer.parseInt(br.readLine());
      }
      Arrays.stream(mt)
        .sorted((e1, e2) -> e1.compareTo(e2))
        .limit(3)
        .forEach(System.out::println);
    } catch (IOException e) {
      
    }
  }
}

Compiler output:
Main.java:13: error: method sorted in interface IntStream cannot be applied to given types;
        .sorted((e1, e2) -> e1.compareTo(e2))
        ^
  required: no arguments
  found:    (e1,e2)->e[...]o(e2)
  reason: actual and formal argument lists differ in length
1 error
Language: Java

import java.util.*;
import java.util.stream.*;
import java.io.*;
class Main {
  public static void main(String[] args) {
    try {
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      int[] mt = new int[10];
      for (int i = 0; i < 10; i++) {
        mt[i] = Integer.parseInt(br.readLine());
      }
      Arrays.stream(mt)
        .boxed()
        .sorted(Compareator.reverseOrder())
        .limit(3)
        .forEach(System.out::println);
    } catch (IOException e) {

    }
  }
}

Compiler output:
Main.java:14: error: cannot find symbol
        .sorted(Compareator.reverseOrder())
                ^
  symbol:   variable Compareator
  location: class Main
1 error
Language: Java

import java.util.*;
import java.util.stream.*;
import java.io.*;
class Main {
  public static void main(String[] args) {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    br.lines()
      .parallel()
      .map(Integer::parseInt)
      .boxed()
      .sorted(Comparator.reverseOrder())
      .limit(3)
      .forEach(System.out::println);
  }
}

Compiler output:
Main.java:10: error: cannot find symbol
      .boxed()
      ^
  symbol:   method boxed()
  location: interface Stream<Integer>
1 error
Language: Java

import java.util.Scanner;

public class Main{
 public static void main(String[] args){
  Scanner sc =new Scanner(System.in);
  int height[100000]=-1;
  int h_first=-1;
  int h_second=-1;
  int h_third=-1;
  
  for(int i=0;i<100000;i++){
   height[i]=nsc.nextInt();
   if(h_first<=height)
    h_first=height[i];
   else if(h_second<=height[i])
    h_second=height[i];
   else if(h_third<=height[i])
    h_third=height[i];
  }
 
  System.out.println(height_first);
  System.out.println(height_second);
  System.out.println(height_ third);
 }
} 
  

Compiler output:
Main.java:6: error: ']' expected
  int height[100000]=-1;
             ^
Main.java:23: error: ')' or ',' expected
  System.out.println(height_ third);
                            ^
Main.java:23: error: not a statement
  System.out.println(height_ third);
                             ^
Main.java:23: error: ';' expected
  System.out.println(height_ third);
                                  ^
4 errors
Language: Java

import java.util.Scanner;

public class Main{
 public static void main(String[] args){
  Scanner sc =new Scanner(System.in);
  int[] height=new int[100000];
  int h_first=-1;
  int h_second=-1;
  int h_third=-1;
  
  for(int k=0;k<100000;k++){
   height[k]=-1;
  }
  
  for(int i=0;i<100000;i++){
   height[i]=nsc.nextInt();
   if(h_first<=height)
    h_first=height[i];
   else if(h_second<=height[i])
    h_second=height[i];
   else if(h_third<=height[i])
    h_third=height[i];
  }
 
  System.out.println(height_first);
  System.out.println(height_second);
  System.out.println(height_ third);
 }
} 
  

Compiler output:
Main.java:27: error: ')' or ',' expected
  System.out.println(height_ third);
                            ^
Main.java:27: error: not a statement
  System.out.println(height_ third);
                             ^
Main.java:27: error: ';' expected
  System.out.println(height_ third);
                                  ^
3 errors
Language: Java

import java.util.Scanner;

public class Main{
 public static void main(String[] args){
  Scanner sc =new Scanner(System.in);
  int[] height=new int[100000];
  int h_first=-1;
  int h_second=-1;
  int h_third=-1;
  
  for(int k=0;k<100000;k++){
   height[k]=-1;
  }
  
  for(int i=0;i<100000;i++){
   height[i]=nsc.nextInt();
   if(h_first<=height)
    h_first=height[i];
   else if(h_second<=height[i])
    h_second=height[i];
   else if(h_third<=height[i])
    h_third=height[i];
  }
 
  System.out.println(height_first);
  System.out.println(height_second);
  System.out.println(height_third);
 }
} 
  

Compiler output:
Main.java:16: error: cannot find symbol
   height[i]=nsc.nextInt();
             ^
  symbol:   variable nsc
  location: class Main
Main.java:17: error: bad operand types for binary operator '<='
   if(h_first<=height)
             ^
  first type:  int
  second type: int[]
Main.java:25: error: cannot find symbol
  System.out.println(height_first);
                     ^
  symbol:   variable height_first
  location: class Main
Main.java:26: error: cannot find symbol
  System.out.println(height_second);
                     ^
  symbol:   variable height_second
  location: class Main
Main.java:27: error: cannot find symbol
  System.out.println(height_third);
                     ^
  symbol:   variable height_third
  location: class Main
5 errors
Language: Java

import java.util.Scanner;

public class Main{
 public static void main(String[] args){
  Scanner sc =new Scanner(System.in);
  int[] height=new int[100000];
  int h_first=-1;
  int h_second=-1;
  int h_third=-1;
  
  for(int k=0;k<100000;k++){
   height[k]=-1;
  }
  
  for(int i=0;i<100000;i++){
   height[i]=sc.nextInt();
   if(h_first<=height)
    h_first=height[i];
   else if(h_second<=height[i])
    h_second=height[i];
   else if(h_third<=height[i])
    h_third=height[i];
  }
 
  System.out.println(height_first);
  System.out.println(height_second);
  System.out.println(height_third);
 }
} 
  

Compiler output:
Main.java:17: error: bad operand types for binary operator '<='
   if(h_first<=height)
             ^
  first type:  int
  second type: int[]
Main.java:25: error: cannot find symbol
  System.out.println(height_first);
                     ^
  symbol:   variable height_first
  location: class Main
Main.java:26: error: cannot find symbol
  System.out.println(height_second);
                     ^
  symbol:   variable height_second
  location: class Main
Main.java:27: error: cannot find symbol
  System.out.println(height_third);
                     ^
  symbol:   variable height_third
  location: class Main
4 errors
Language: Java

import java.util.Scanner;

public class Main{
 public static void main(String[] args){
  Scanner sc =new Scanner(System.in);
  int[] height=new int[100000];
  int h_first=-1;
  int h_second=-1;
  int h_third=-1;
  
  for(int k=0;k<100000;k++){
   height[k]=-1;
  }
  
  for(int i=0;i<100000;i++){
   height[i]=sc.nextInt();
   if(h_first<=height)
    h_first=height[i];
   else if(h_second<=height[i])
    h_second=height[i];
   else if(h_third<=height[i])
    h_third=height[i];
  }
 
  System.out.println(h_first);
  System.out.println(h_second);
  System.out.println(h_third);
 }
} 
  

Compiler output:
Main.java:17: error: bad operand types for binary operator '<='
   if(h_first<=height)
             ^
  first type:  int
  second type: int[]
1 error
Language: Java

import java.util.Scanner;

public class LT3H{
 public static void main(String[] args){
  Scanner sc =new Scanner(System.in);
  int[] height=new int[100000];
  int h_first=-1;
  int h_second=-1;
  int h_third=-1;
  
  for(int k=0;k<100000;k++){
   height[k]=-1;
  }
  
  (int i=0;sc.nextInt()!=EOF;i++){
   height[i]=sc.nextInt();
   if(h_first<=height[i])
    h_first=height[i];
   else if(h_second<=height[i])
    h_second=height[i];
   else if(h_third<=height[i])
    h_third=height[i];
  }
 
  System.out.println(h_first);
  System.out.println(h_second);
  System.out.println(h_third);
 }
} 

Compiler output:
Main.java:15: error: ',', ')', or '[' expected
  (int i=0;sc.nextInt()!=EOF;i++){
        ^
Main.java:15: error: not a statement
  (int i=0;sc.nextInt()!=EOF;i++){
  ^
Main.java:15: error: not a statement
  (int i=0;sc.nextInt()!=EOF;i++){
                       ^
Main.java:15: error: ';' expected
  (int i=0;sc.nextInt()!=EOF;i++){
                                ^
4 errors
Language: Java

import java.util.Scanner;

public class LT3H{
 public static void main(String[] args){
  Scanner sc =new Scanner(System.in);
  int[] height=new int[100000];
  int h_first=-1;
  int h_second=-1;
  int h_third=-1;
  
  for(int k=0;k<100000;k++){
   height[k]=-1;
  }
  
  (int i=0;sc.nextInt()!=null;i++){
   height[i]=sc.nextInt();
   if(h_first<=height[i])
    h_first=height[i];
   else if(h_second<=height[i])
    h_second=height[i];
   else if(h_third<=height[i])
    h_third=height[i];
  }
 
  System.out.println(h_first);
  System.out.println(h_second);
  System.out.println(h_third);
 }
} 

Compiler output:
Main.java:15: error: ',', ')', or '[' expected
  (int i=0;sc.nextInt()!=null;i++){
        ^
Main.java:15: error: not a statement
  (int i=0;sc.nextInt()!=null;i++){
  ^
Main.java:15: error: not a statement
  (int i=0;sc.nextInt()!=null;i++){
                       ^
Main.java:15: error: ';' expected
  (int i=0;sc.nextInt()!=null;i++){
                                 ^
4 errors
Language: Java

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

public class Hello {
	static Scanner scan = new Scanner(System.in);
	static int hills[] = new int[10];
	
	public static void main(String[] args){
		for(int i=0;i<10;i++){
			hills[i] = scan.nextInt();
		}
		Arrays.sort(hills);
		
		System.out.println(hills[9]);
		System.out.println(hills[8]);
		System.out.println(hills[7]);
	}
}

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

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

public class TopThreeHills {

	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int nums[] = new int[10];
		for(byte i = 0; i < 10; i++) 
			nums[i] = in.nextInt();
		Arrays.sort(nums);	
		System.out.println(nums[9]);
		System.out.println(nums[8]);
		System.out.println(nums[7]);
		in.close();
	}
}

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

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

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int[] heights = new int[10];
		for(int i = 0; i < 10; i++){
			heights[i] = scan.nextInt();
		}

		Arrays.sort(heights);
		for(int i = 9; i >= 7; i--){
			System.out.ptintln(height[i]);
		}
	}
}

Compiler output:
Main.java:14: error: cannot find symbol
			System.out.ptintln(height[i]);
			                   ^
  symbol:   variable height
  location: class Main
1 error
Language: Java

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

public class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int[] heights = new int[10];
		for(int i = 0; i < 10; i++){
			heights[i] = scan.nextInt();
		}

		Arrays.sort(heights);
		for(int i = 9; i >= 7; i--){
			System.out.println(height[i]);
		}
	}
}

Compiler output:
Main.java:14: error: cannot find symbol
			System.out.println(height[i]);
			                   ^
  symbol:   variable height
  location: class Main
1 error
Language: Java

import java.util.*;
public class sample1 {
       public static void main(String[] args){
              int nui[] = new int[10];
              Scanner docaonui = new Scanner(System.in);
              for (int i = 0; i < 10; i++){
            	  nui[i] = docaonui.nextInt();
              }
              Arrays.sort(nui);
              System.out.println(nui[9]);
              System.out.println(nui[8]);
              System.out.println(nui[7]);        
       }
}

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

class Main{
    public static void main(String[] a){
              int nui[] = new int[10];
              Scanner docaonui = new Scanner(System.in);
              for (int i = 0; i < 10; i++){
            	  nui[i] = docaonui.nextInt();
              }
              Arrays.sort(nui);
              System.out.println(nui[9]);
              System.out.println(nui[8]);
              System.out.println(nui[7]);        
       }

    }
}

Compiler output:
Main.java:15: error: class, interface, enum, or record expected
}
^
1 error
Language: Java

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<Integer>();
		for(int i=0; i<10; i++) {
			list.add(Integer.parseInt(sc.nextLine()));
		}
		Collections.sort(list, new Comparator<Integer>() {
			@Override
			public int compare(Integer first, Integer second) {
				int f = first;
				int s = second;
				return second - first;
			}
		});
				
		for(int i=0; i<3; i++) {
			System.out.println(list.get(i));
		}
	}
}

Compiler output:
Main.java:3: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner sc = 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:8: error: cannot find symbol
		Collections.sort(list, new Comparator<Integer>() {
		                           ^
  symbol:   class Comparator
  location: class Main
Main.java:9: error: method does not override or implement a method from a supertype
			@Override
			^
Main.java:8: error: cannot find symbol
		Collections.sort(list, new Comparator<Integer>() {
		^
  symbol:   variable Collections
  location: class Main
7 errors
Language: Java

import java.util.*;

public class Test {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<Integer>();
		for(int i=0; i<10; i++) {
			list.add(Integer.parseInt(sc.nextLine()));
		}
		Collections.sort(list, new Comparator<Integer>() {
			@Override
			public int compare(Integer first, Integer second) {
				int f = first;
				int s = second;
				return s-f;
			}
		});
		for(int i=0; i<3; i++) {
			System.out.println(list.get(i));
		}
	}
}

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

public class Main{
       public static void main(String[] args){
       int i;
    	int[] height = new int[10];
        Scanner scan = new Scanner(System.in);
        for(i = 0;i < 10;i++){
        height[i] = scan.nextInt();
        }
        
        int st = 0,nd = 0 ,rd = 0;
        
        
        	for(i = 0;i < 10;i++){
        		if(height[i]>=st){
        		rd = nd;
        		nd = st;
        		st = height[i];
        		}else if(height[i]>=nd){
        		rd = nd ;
        		nd = height[i];
        		}else if(height[i]>=rd){
        		rd = height[i];
        		
        		}
        	}
        	System.out.println(st);
        	System.out.println(nd);
        	System.out.println(rd);
       		}
}

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

public class ListOfTop3Hills {

	public static void main(int[] args) {
		int heights[] = { -1, -1, -1 };
		for (int arg : args) {
			if (heights[0] == -1) {
				heights[0] = arg;
			} else if (heights[1] == -1) {
				if (heights[0]< arg){
					heights[1] = heights[0];
					heights[0] = arg;
				}else{
					heights[1] = arg;
				}
			} else if (heights[2] == -1) {
				if (heights[1]< arg){
					if (heights[0]< arg){
						heights[2] = heights[1];
						heights[1] = heights[0];
						heights[0] = arg;
					}else{
						heights[2] = heights[1];
						heights[1] = arg;
					}
				}else{
					heights[2] = arg;
				}
			} else if (heights[2] < arg) {
				if (heights[1] < arg) {
					if (heights[0] < arg) {
						heights[2] = heights[1];
						heights[1] = heights[0];
						heights[0] = arg;
					}else{
						heights[2] = heights[1];
						heights[1] = arg;
					}
				}else{
					heights[2] = arg;
				}
			}
		}

		for(int height : heights){
			System.out.println(height);
		}
	}
}

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

import java.util.Scanner;

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

        int i;
        int[] height = new int[10];
        int[] h = new int[](0, 0, 0);
        for(i = 0; i < 10; i++){
            height[i] = nextInt();

            if(1h <= height[i]){
                h[2] = h[1];
                h[1] = h[0];
                h[0] = height[i];
            } else if(2h <= height[i]) {
                h[2] = h[1];
                h[1] = height[i];
            } else if(3h <= height[i])
                h[2] = height[i];
        }

        for(int j = 0; j < 3; j++)
            System.out.println(h[j]);
    }
}

Compiler output:
Main.java:9: error: array dimension missing
        int[] h = new int[](0, 0, 0);
                           ^
Main.java:13: error: ')' expected
            if(1h <= height[i]){
                ^
Main.java:13: error: not a statement
            if(1h <= height[i]){
                  ^
Main.java:13: error: ';' expected
            if(1h <= height[i]){
                              ^
Main.java:17: error: ')' expected
            } else if(2h <= height[i]) {
                       ^
Main.java:17: error: not a statement
            } else if(2h <= height[i]) {
                         ^
Main.java:17: error: ';' expected
            } else if(2h <= height[i]) {
                                     ^
Main.java:17: error: 'else' without 'if'
            } else if(2h <= height[i]) {
              ^
Main.java:20: error: ')' expected
            } else if(3h <= height[i])
                       ^
Main.java:20: error: not a statement
            } else if(3h <= height[i])
                         ^
Main.java:20: error: ';' expected
            } else if(3h <= height[i])
                                     ^
Main.java:20: error: 'else' without 'if'
            } else if(3h <= height[i])
              ^
12 errors