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

public class Main {
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner	stdin   = new Scanner(System.in);
		int		arrIn[] = new int[10];

		for(int nLoop = 0; nLoop < arrIn.length; nLoop++) {
			arrIn[nLoop] = stdin.nextInt();
		}

		Arrays.sort(arrIn);

		for(int nLoop = 0; nLoop < 3; nLoop++) {
			System.out.println(arrIn[arrIn.length - nLoop - 1]);
		}
	}
}

Compiler output:
Main.java:7: error: cannot find symbol
		Scanner	stdin   = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
		Scanner	stdin   = new Scanner(System.in);
		       	              ^
  symbol:   class Scanner
  location: class Main
Main.java:14: error: cannot find symbol
		Arrays.sort(arrIn);
		^
  symbol:   variable Arrays
  location: class Main
3 errors
Language: Java

import java.io.*;

class Main{
	public static void main(String[] args)throws IOException{
	
		int[] data =new int[10];
		
		BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
		
		for(int=0;i<10;i++){
			String str= buf.readLine();
			data[i]=Integer.parseInt(str);
		}
		
		
		for(int i=0;i<data.length-1;i++){
			int min=i;
			for(int j=0;j<data.length;j++){
				if(data[min]>data[j]){
					min=j
				}
			}
			if(min != i){
					int tmp=data[min];
					data[min]=data[i];
					data[i]=tmp;
		}
	}
}

Compiler output:
Main.java:10: error: not a statement
		for(int=0;i<10;i++){
		    ^
Main.java:10: error: ';' expected
		for(int=0;i<10;i++){
		       ^
Main.java:10: error: not a statement
		for(int=0;i<10;i++){
		           ^
Main.java:10: error: ')' expected
		for(int=0;i<10;i++){
		              ^
Main.java:10: error: ';' expected
		for(int=0;i<10;i++){
		                  ^
Main.java:20: error: ';' expected
					min=j
					     ^
Main.java:29: error: reached end of file while parsing
}
 ^
7 errors
Language: Java

public class SelectSort2{
	public static void main(String[] args){
	
	
		int[] data=new int[]{1,3,2,0,9,7,8,6,4,5};
		
		for(int i=0;i<data.length-1;i++){
			int min=i;
			for(int j=i+1;j<data.length;j++){
				if(data[min]>data[j]){
					min=j;
				}
			}
			if(min!=i){
				int tmp=data[min];
				data[min]=data[i];
				data[i]=tmp;
			}
		}
		System.out.println("並べ替え後");
		for(int d: data){
			System.out.print(d+" ");
		}
	}

}

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

public class Main {
    public static void main(String[] args) {
        Scanner s = new Scanner(System.in);
        ArrayList<Integer> h = new ArrayList<Integer>();
        for (int i = 0; i < 10; ++i) {
            h.add(s.nextInt());
        }
        Collections.sort(h);
        Collections.reverse(h);
        for (int i = 0; i < 3; ++i) {
            System.out.println(h.get(i));
        }
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
        Scanner s = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner s = new Scanner(System.in);
                        ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
        ArrayList<Integer> h = new ArrayList<Integer>();
        ^
  symbol:   class ArrayList
  location: class Main
Main.java:4: error: cannot find symbol
        ArrayList<Integer> h = new ArrayList<Integer>();
                                   ^
  symbol:   class ArrayList
  location: class Main
Main.java:8: error: cannot find symbol
        Collections.sort(h);
        ^
  symbol:   variable Collections
  location: class Main
Main.java:9: error: cannot find symbol
        Collections.reverse(h);
        ^
  symbol:   variable Collections
  location: class Main
6 errors
Language: Java

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

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

import java.util.*;

public class List_of_Top_3_Hills {
	private static Scanner in;
	public static void main(String[] args) {
		int hight[] = new int[10];
		
		in = new Scanner(System.in);
		for(int i = 0; i < 10; i++){
			hight[i] = in.nextInt();
		}
		Arrays.sort(hight);
		
		for(int i = 9 ; i > 6; i--){
			System.out.println(hight[i]);
		}
	}
}

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

import java.util.*;

public class List_of_Top_3_Hills {
	public static void main(String[] args) {
		int hight[] = new int[10];
		
		Scanner sc = new Scanner(System.in);
		for(int i = 0; i < 10; i++)
			hight[i] = sc.nextInt();
		Arrays.sort(hight);
		
		for(int i = 9 ; i > 6; i--)
			System.out.println(hight[i]);
	}
}

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

import java.util.*;

public class List_of_Top_3_Hills {
	public static void main(String[] args) {
		int[] hight = new int[10];
		
		Scanner sc = new Scanner(System.in);
		for(int i = 0; i < 10; i++)
			hight[i] = sc.nextInt();
		Arrays.sort(hight);
		
		for(int i = 9 ; i > 6; i--)
			System.out.println(hight[i]);
	}
}

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

import java.util.*;

public class List_of_Top_3_Hills {
	private static Scanner sc;
	public static void main(String[] args) {
		int[] hight = new int[10];
		
		sc = new Scanner(System.in);
		for(int i = 0; i < 10; i++){
			hight[i] = sc.nextInt();
		}
		Arrays.sort(hight);
		
		for(int i = 9 ; i > 6; i--){
			System.out.println(hight[i]);
		}
	}
}

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

public class Sample01{
public static void main(String args[]) throws IOException{
	int [] a=new int[10];
	for(int i=0;i<10;i++){
	BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
	String str=br.readLine();
	a[i]=Integer.parseInt(str);
	
	
	}
	for(int i=0;i<10;i++){
		for(int j=0,k=1;k<10;j++,k++){
			if(a[j]<a[k]){
				int tmp =a[j];
				a[j]=a[k];
				a[k]=tmp;
			}
		}
	}
	for(int i=0;i<3;i++){
	System.out.println(a[i]);
	}
	
}}

Compiler output:
Main.java:1: error: class Sample01 is public, should be declared in a file named Sample01.java
public class Sample01{
       ^
Main.java:2: error: cannot find symbol
public static void main(String args[]) throws IOException{
                                              ^
  symbol:   class IOException
  location: class Sample01
Main.java:5: error: cannot find symbol
	BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
	^
  symbol:   class BufferedReader
  location: class Sample01
Main.java:5: error: cannot find symbol
	BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
	                       ^
  symbol:   class BufferedReader
  location: class Sample01
Main.java:5: error: cannot find symbol
	BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
	                                          ^
  symbol:   class InputStreamReader
  location: class Sample01
5 errors
Language: Java

import java.io.*;
public class Main{
public static void main(String [] a) throws IOException{
	int [] a=new int[10];
	for(int i=0;i<10;i++){
	BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
	String str=br.readLine();
	a[i]=Integer.parseInt(str);
	
	
	}
	for(int i=0;i<10;i++){
		for(int j=0,k=1;k<10;j++,k++){
			if(a[j]<a[k]){
				int tmp =a[j];
				a[j]=a[k];
				a[k]=tmp;
			}
		}
	}
	for(int i=0;i<3;i++){
	System.out.println(a[i]);
	}
	
}}

Compiler output:
Main.java:4: error: variable a is already defined in method main(String[])
	int [] a=new int[10];
	       ^
1 error
Language: Java

class Main{
public static void main(String args[]) throws IOException{
	int [] a=new int[10];
	for(int i=0;i<10;i++){
	BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
	String str=br.readLine();
	a[i]=Integer.parseInt(str);
	
	
	}
	for(int i=0;i<10;i++){
		for(int j=0,k=1;k<10;j++,k++){
			if(a[j]<a[k]){
				int tmp =a[j];
				a[j]=a[k];
				a[k]=tmp;
			}
		}
	}
	for(int i=0;i<3;i++){
	System.out.println(a[i]);
	}
	
}}

Compiler output:
Main.java:2: error: cannot find symbol
public static void main(String args[]) throws 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
4 errors
Language: Java

public class Main{
public static void main(String args[]) throws IOException{
	int [] a=new int[10];
	for(int i=0;i<10;i++){
	BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
	String str=br.readLine();
	a[i]=Integer.parseInt(str);
	
	
	}
	for(int i=0;i<10;i++){
		for(int j=0,k=1;k<10;j++,k++){
			if(a[j]<a[k]){
				int tmp =a[j];
				a[j]=a[k];
				a[k]=tmp;
			}
		}
	}
	if(a[0]<=10000&&a[1]<=10000&&a[2]<=10000){
	for(int i=0;i<3;i++){
	System.out.println(a[i]);
	}
	}
}}

Compiler output:
Main.java:2: error: cannot find symbol
public static void main(String args[]) throws 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
4 errors
Language: Java

public class Main{
public static void main(String args) throws IOException{
	int [] a=new int[10];
	for(int i=0;i<10;i++){
	BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
	String str=br.readLine();
	a[i]=Integer.parseInt(str);
	
	
	}
	for(int i=0;i<10;i++){
		for(int j=0,k=1;k<10;j++,k++){
			if(a[j]<a[k]){
				int tmp =a[j];
				a[j]=a[k];
				a[k]=tmp;
			}
		}
	}
	
	for(int i=0;i<3;i++){
	System.out.println(a[i]);
	}
}

}

Compiler output:
Main.java:2: error: cannot find symbol
public static void main(String args) throws 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
4 errors
Language: Java

public class Main {
	private static BufferedReader input =
			new BufferedReader (new InputStreamReader (System.in));
	private static List<Integer> list = new ArrayList<Integer>();
	public static void main(String[] a) throws IOException {
		Integer num = 0;
		for (int i = 0; i < 10; ++i) {
			try {
				num = Integer.parseInt(input.readLine());
			} catch (NumberFormatException e) {
				System.exit(0);
			}
			if (num < 0 || 10000 < num) {
				System.exit(0);
			}
			list.add(num);
		}
		Collections.sort(list);
		System.out.println(list.get(9) + "\n" + list.get(8) + "\n" + list.get(7));
	}
}

Compiler output:
Main.java:2: error: cannot find symbol
	private static BufferedReader input =
	               ^
  symbol:   class BufferedReader
  location: class Main
Main.java:4: error: cannot find symbol
	private static List<Integer> list = new ArrayList<Integer>();
	               ^
  symbol:   class List
  location: class Main
Main.java:5: error: cannot find symbol
	public static void main(String[] a) throws IOException {
	                                           ^
  symbol:   class IOException
  location: class Main
Main.java:3: error: cannot find symbol
			new BufferedReader (new InputStreamReader (System.in));
			    ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
			new BufferedReader (new InputStreamReader (System.in));
			                        ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:4: error: cannot find symbol
	private static List<Integer> list = new ArrayList<Integer>();
	                                        ^
  symbol:   class ArrayList
  location: class Main
Main.java:18: error: cannot find symbol
		Collections.sort(list);
		^
  symbol:   variable Collections
  location: class Main
7 errors
Language: Java

public class ListOfTop3Hills {
	public static void main(String[] args) {
		int[] mountains = new int[10];
		Scanner scanner = new Scanner(System.in);
		for (int i = 0; i < mountains.length; i++) {
			int value = scanner.nextInt();
			mountains[i] = value;
		}
		int[] top3 = top3(mountains);
		for (int i = 0; i < 3; i++) {
			System.out.println(top3[i]);
		}
	}
	public static int[] top3(int[] mountains) {
		int[] top3 = new int[3];
		Arrays.sort(mountains);
		int j = 0;
		for (int i = mountains.length - 1; j < 3; i--) {
			top3[j] = mountains[i];
			j++;
		}
		return top3;
	}
}

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

import java.util.*;
class 0001{
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int[] top = new int[10];
		for(int i = 0; i < 10; i++){
			top[i] = scan.nextInt();
		}
		for(int i = 0; i < 9; i++){
			for(int j = 9; j > i; j--){
				if(top[j] > top[j-1]){
					int multi = top[j];
					top[j] = top[j-1];
					top[j-1] = multi;
				}
			}
		}
		System.out.println(top[0]);
		System.out.println(top[1]);
		System.out.println(top[2]);
	}
}

Compiler output:
Main.java:2: error: <identifier> expected
class 0001{
     ^
1 error
Language: Java

public class A {
	
	public static int Greatest(int[] mtnHeights){
		int currMax=mtnHeights[0];
		int maxIndex = 0;
		int mtn=0;
		while(mtn < mtnHeights.length){
			for(int mtnS = mtn + 1;mtnS < mtnHeights.length; mtnS++){
				if(mtnHeights[mtnS] > currMax){
					currMax = mtnHeights[mtnS];
					mtn = mtnS;
					maxIndex = mtnS;
				}
			}
			mtn++;
		}
		mtnHeights[maxIndex] = 0;
		
		return currMax;
	}

	public static void main(String[] args) {
		java.util.Scanner in = new java.util.Scanner(System.in);
		
		System.out.println("Input 10 mountain heights: ");
		
		int[] mtnHeights = new int[10];
		
		for(int mtn = 0; mtn < mtnHeights.length; mtn++){
			mtnHeights[mtn] = in.nextInt();
		}
		
		int first = Greatest(mtnHeights);
		int second = Greatest(mtnHeights);
		int third = Greatest(mtnHeights);
		
		System.out.print(first + " " + second + " " + third);
		
		in.close();
	}

}

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

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

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


        
        System.out.println(Arrays.toString(a));

      
        Arrays.sort(a);


        
        System.out.println(Arrays.toString(a));

    }
}

Compiler output:
Main.java:9: error: cannot find symbol
        System.out.println(Arrays.toString(a));
                           ^
  symbol:   variable Arrays
  location: class Main
Main.java:12: error: cannot find symbol
        Arrays.sort(a);
        ^
  symbol:   variable Arrays
  location: class Main
Main.java:16: error: cannot find symbol
        System.out.println(Arrays.toString(a));
                           ^
  symbol:   variable Arrays
  location: class Main
3 errors
Language: Java

class Main
{
  public static void main(String[] args) {
    java.io.BufferedReader reader = null;
    try {
      reader = new java.io.BufferdRreader(
         new InputStreamReader(System.in)
      );
      int rank1 = 0;
      int rank2 = 0;
      int rank3 = 0;
      for (int i = 0; i < 10; i++) {
         int x = Integer.parseInt(reader.readLine());
         if (x > rank1) {
           rank3 = rank2;
           rank2 = rank1;
           rank1 = x;
         } else if (x > rank2) {
           rank3 = rank2;
           rank2 = x;
         } else if (x > rank3) {
           rank3 = x;
         }
      }
      System.out.println(rank1);
      System.out.println(rank2);
      System.out.println(rank3);
    } catch (java.io.IOException e) {
      e.printStackTrace();
    } finally {
      if (reader != null) {
        try {
          reader.close();
        } catch (java.io.IOException e) {
          e.printStackTrace();
        }
      }
    }
  }
}

Compiler output:
Main.java:6: error: cannot find symbol
      reader = new java.io.BufferdRreader(
                          ^
  symbol:   class BufferdRreader
  location: package java.io
Main.java:7: error: cannot find symbol
         new InputStreamReader(System.in)
             ^
  symbol:   class InputStreamReader
  location: class Main
2 errors
Language: Java

class Main
{
  public static void main(String[] args) {
    java.io.BufferedReader reader = null;
    try {
      reader = new java.io.BufferdReader(
         new InputStreamReader(System.in)
      );
      int rank1 = 0;
      int rank2 = 0;
      int rank3 = 0;
      for (int i = 0; i < 10; i++) {
         int x = Integer.parseInt(reader.readLine());
         if (x > rank1) {
           rank3 = rank2;
           rank2 = rank1;
           rank1 = x;
         } else if (x > rank2) {
           rank3 = rank2;
           rank2 = x;
         } else if (x > rank3) {
           rank3 = x;
         }
      }
      System.out.println(rank1);
      System.out.println(rank2);
      System.out.println(rank3);
    } catch (java.io.IOException e) {
      e.printStackTrace();
    } finally {
      if (reader != null) {
        try {
          reader.close();
        } catch (java.io.IOException e) {
          e.printStackTrace();
        }
      }
    }
  }
}

Compiler output:
Main.java:6: error: cannot find symbol
      reader = new java.io.BufferdReader(
                          ^
  symbol:   class BufferdReader
  location: package java.io
Main.java:7: error: cannot find symbol
         new InputStreamReader(System.in)
             ^
  symbol:   class InputStreamReader
  location: class Main
2 errors
Language: Java

class Main
{
  public static void main(String[] args) {
    java.io.BufferedReader reader = null;
    try {
      reader = new java.io.BufferedReader(
         new InputStreamReader(System.in)
      );
      int rank1 = 0;
      int rank2 = 0;
      int rank3 = 0;
      for (int i = 0; i < 10; i++) {
         int x = Integer.parseInt(reader.readLine());
         if (x > rank1) {
           rank3 = rank2;
           rank2 = rank1;
           rank1 = x;
         } else if (x > rank2) {
           rank3 = rank2;
           rank2 = x;
         } else if (x > rank3) {
           rank3 = x;
         }
      }
      System.out.println(rank1);
      System.out.println(rank2);
      System.out.println(rank3);
    } catch (java.io.IOException e) {
      e.printStackTrace();
    } finally {
      if (reader != null) {
        try {
          reader.close();
        } catch (java.io.IOException e) {
          e.printStackTrace();
        }
      }
    }
  }
}

Compiler output:
Main.java:7: error: cannot find symbol
         new InputStreamReader(System.in)
             ^
  symbol:   class InputStreamReader
  location: class Main
1 error
Language: Java

import java.util.*;

public class yama
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);
        int[] mt = new int[10];
            for(int i=0; i<10; i++)
            {
                mt[i] = sc.nextInt();
            }
                Arrays.sort(mt);
                    for(int i=0; i<3; i++)
                    {
                        System.out.println(mt[9-i]);
                    }
    }
}

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

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

	int in;
	int[] max = new int[3];

	for(int i=0;i<3;i++){
	    max[i]=0;
	}

	for(int i=0;i<10;i++){
	    in=Integer.parseInt( br.readLine() );
	    if(max[0]<in){
		max[2]=max[1];
		max[1]=max[0];
		max[0]=in;
	    }
	    else if(max[0]==in){
		max[2]=max[1];
		max[1]=in;
	    }
	    else if(max[1]<in){
		max[2]=max[1];
		max[1]=in;
	    }
	    else if(max[1]==in){
		max[2]=max[1];
		max[1]=in;
	    }
	    else if(max[2]<in){
		max[2]=in;
	    }
	}

	System.out.println("======");

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

    }
}

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

import java.util.*;

class Main{
    public static void main(String[] args)throws IOException{
	int in;
	int[] max = new int[3];
	Scanner s = new Scanner(System.in);

	for(int i=0;i<3;i++){
	    max[i]=0;
	}

	for(int i=0;i<10;i++){
	    in=s.nextInt();

	    if(max[0]<in){
		max[2]=max[1];
		max[1]=max[0];
		max[0]=in;
	    }
	    else if(max[0]==in){
		max[2]=max[1];
		max[1]=in;
	    }
	    else if(max[1]<in){
		max[2]=max[1];
		max[1]=in;
	    }
	    else if(max[1]==in){
		max[2]=max[1];
		max[1]=in;
	    }
	    else if(max[2]<in){
		max[2]=in;
	    }
	}

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

    }
}

Compiler output:
Main.java:4: error: cannot find symbol
    public static void main(String[] args)throws IOException{
                                                 ^
  symbol:   class IOException
  location: class Main
1 error
Language: Java

class Main{
    public static void main(String[] a){
    int a[] = {1819, 2003, 876, 2840, 1723, 1673, 3776, 2848, 1592, 922};
    int b = a.length;
    int i, j, k;
    

    for(i = 0; i < b; i++)
    
    for(j = 0;j < b-1;j++) {
    	for(i = j+1;i < b;i++) {
    		if(a[j] < a[i]) {
    			k = a[j];
    			a[j] = a[i];
    			a[i] = k;
    		}
    	}
    }
    for(i = 0; i <= 2 ; i++)
    	System.out.println(a[i] + " ");
    System.out.println();
}
}

Compiler output:
Main.java:3: error: variable a is already defined in method main(String[])
    int a[] = {1819, 2003, 876, 2840, 1723, 1673, 3776, 2848, 1592, 922};
        ^
1 error
Language: Java

import java.util.scanner;
class Main{
    public static void main(String[] a){
        Scanner in = new Scanner(System.in);
        int[] arr = new int[10];
        int[] top3 = new int[3];
        for(int i=0;i<10;i++)
            arr[i] = in.nextInt();
        for(int i=0;i<10;i++){
            for(int j=0;j<3;j++)
                 if(arr[i]>top3[j]){
                     top3[j]=arr[i];
                     break;
                }
            }
        }
        for(int i=0;i<3;i++)
             System.out.println(top3[i]);
    }
}

Compiler output:
Main.java:17: error: illegal start of type
        for(int i=0;i<3;i++)
        ^
Main.java:17: error: illegal start of type
        for(int i=0;i<3;i++)
                      ^
Main.java:17: error: <identifier> expected
        for(int i=0;i<3;i++)
                         ^
Main.java:18: error: <identifier> expected
             System.out.println(top3[i]);
                               ^
Main.java:18: error: ']' expected
             System.out.println(top3[i]);
                                     ^
Main.java:18: error: ',', ')', or '[' expected
             System.out.println(top3[i]);
                                      ^
Main.java:20: error: class, interface, enum, or record expected
}
^
7 errors
Language: Java

import java.util.scanner;
class Main{
    public static void main(String[] a){
        Scanner in = new Scanner(System.in);
        int[] arr = new int[10];
        int[] top3 = new int[3];
        for(int i=0;i<10;i++)
            arr[i] = in.nextInt();
        for(int i=0;i<10;i++){
            for(int j=0;j<3;j++){
                 if(arr[i]>top3[j]){
                     top3[j]=arr[i];
                     break;
                }
            }
        }
        for(int i=0;i<3;i++)
             System.out.println(top3[i]);
    }
}

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

import java.util.Scanner;
class Main{
    public static void main(String[] a){
        Scanner in = new Scanner(System.in);
        int[] arr = new int[10];
        int[] top3 = new int[3];
        for(int i=0;i<10;i++)
            arr[i] = in.nextInt();
        for(int i=0;i<10;i++){
            for(int j=0;j<3;j++)
                 if(arr[i]>top3[j]){
                     top3[j]=arr[i];
                     break;
                }
            }
        }
        for(int i=0;i<3;i++)
             System.out.println(top3[i]);
    }
}

Compiler output:
Main.java:17: error: illegal start of type
        for(int i=0;i<3;i++)
        ^
Main.java:17: error: illegal start of type
        for(int i=0;i<3;i++)
                      ^
Main.java:17: error: <identifier> expected
        for(int i=0;i<3;i++)
                         ^
Main.java:18: error: <identifier> expected
             System.out.println(top3[i]);
                               ^
Main.java:18: error: ']' expected
             System.out.println(top3[i]);
                                     ^
Main.java:18: error: ',', ')', or '[' expected
             System.out.println(top3[i]);
                                      ^
Main.java:20: error: class, interface, enum, or record expected
}
^
7 errors
Language: Java

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


public class Main {
	public static void main(String[] args) {
		int[] data =new int[10];
		BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
		for(int i =0;i<10;i++){
			String str= buf.readLine();
			data[i]=Integer.parseInt(str);
			}
		
		quicSort(data,0,data.length -1);
		
		System.out.println(data[9]);
		System.out.println(data[8]);
		System.out.println(data[7]);
	
	}

	public static void quicSort(int[] array,int farst,int last) {
		int asc = farst+1;					//配列の最初の次の要素
		int desc = last;					//配列の最後
		int temp =0;						//配列交換用
		while (asc < desc) {
			//配列の最初から進み基準値より小さい間ループ
			while (array[asc]<array[farst]) {
				asc++;
			}
			//配列の最後から進み基準値より大きい間ループ
			while (array[desc]>=array[farst] ) {
				desc--;
			}
	
	
			//前半にある小さい要素と後半にある大きい要素を交換
			if (asc < desc) {
				temp = array[asc];
				array[asc] = array[desc];
				array[desc] = temp;
			}
	
		}
			//基準値を真ん中の要素と交換
			temp = array[farst];
			array[farst] = array[desc];
			array[desc] = temp;
	
	
	
		if (farst < desc-1) {
			quicSort(array, farst, desc -1);
		}
		if (desc+1 < last) {
			quicSort(array, desc + 1,last);
		}
	}
}

Compiler output:
Main.java:10: error: unreported exception IOException; must be caught or declared to be thrown
			String str= buf.readLine();
			                        ^
1 error
Language: Java

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


class Main {
	public static void main(String[] args) throws  IOException{
		int[] data =new int[10];
		BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
		for(int i =0;i<10;i++){
			String str= buf.readLine();
			data[i]=Integer.parseInt(str);
			}
		
		quicSort(data,0,data.length -1);
		
		System.out.println(data[9]);
		System.out.println(data[8]);
		System.out.println(data[7]);
	
	}

	public static void quicSort(int[] array,int farst,int last) {
		int asc = farst+1;					//配列の最初の次の要素
		int desc = last;					//配列の最後
		int temp =0;						//配列交換用
		while (asc < desc) {
			//配列の最初から進み基準値より小さい間ループ
			while (array[asc]<array[farst]) {
				asc++;
			}
			//配列の最後から進み基準値より大きい間ループ
			while (array[desc]>=array[farst] ) {
				desc--;
			}
	
	
			//前半にある小さい要素と後半にある大きい要素を交換
			if (asc < desc) {
				temp = array[asc];
				array[asc] = array[desc];
				array[desc] = temp;
			}
	
		}
			//基準値を真ん中の要素と交換
			temp = array[farst];
			array[farst] = array[desc];
			array[desc] = temp;
	
	
	
		if (farst < desc-1) {
			quicSort(array, farst, desc -1);
		}
		if (desc+1 < last) {
			quicSort(array, desc + 1,last);
		}
	}
}

Compiler output:
Main.java:6: error: cannot find symbol
	public static void main(String[] args) throws  IOException{
	                                               ^
  symbol:   class IOException
  location: class Main
1 error
Language: Java

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


public class test {
	public static void main(String[] args) throws IOException{
		int[] data =new int[10];
		BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));
		for(int i =0;i<10;i++){
			String str= buf.readLine();
			data[i]=Integer.parseInt(str);
			}

		quicSort(data,0,data.length -1);

		System.out.println(data[9]);
		System.out.println(data[8]);
		System.out.println(data[7]);

	}

	public static void quicSort(int[] array,int farst,int last) {
		int asc = farst+1;					//配列の最初の次の要素
		int desc = last;					//配列の最後
		int temp =0;						//配列交換用
		while (asc < desc) {
			//配列の最初から進み基準値より小さい間ループ
			while (array[asc]<array[farst] && asc< last) {
				asc++;
			}
			//配列の最後から進み基準値より大きい間ループ
			while (array[desc]>=array[farst] && desc > farst) {
				desc--;
			}


			//前半にある小さい要素と後半にある大きい要素を交換
			if (asc < desc) {
				temp = array[asc];
				array[asc] = array[desc];
				array[desc] = temp;
			}

		}
			//基準値を真ん中の要素と交換
			temp = array[farst];
			array[farst] = array[desc];
			array[desc] = temp;



		if (farst < desc-1) {
			quicSort(array, farst, desc -1);
		}
		if (desc+1 < last) {
			quicSort(array, desc + 1,last);
		}

	}
}

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

class Main{  
 public static void main(String[] a){    
    int f,s,t;
    for (int i: a){
    if a[i] >=0 &$ a[i]<10000
     if f<a[i]
      f = a[i];
     else if s>a[i]
      s = a[i];
     else if t>a[i]
      t = a[i]; 
    }
    System.out.println(f+"\n"+s+"\n"+t);
}

Compiler output:
Main.java:5: error: '(' expected
    if a[i] >=0 &$ a[i]<10000
      ^
Main.java:5: error: ')' expected
    if a[i] >=0 &$ a[i]<10000
                  ^
Main.java:5: error: not a statement
    if a[i] >=0 &$ a[i]<10000
                       ^
Main.java:5: error: ';' expected
    if a[i] >=0 &$ a[i]<10000
                             ^
Main.java:6: error: '(' expected
     if f<a[i]
       ^
Main.java:6: error: ')' expected
     if f<a[i]
              ^
Main.java:8: error: '(' expected
     else if s>a[i]
            ^
Main.java:8: error: ')' expected
     else if s>a[i]
                   ^
Main.java:10: error: '(' expected
     else if t>a[i]
            ^
Main.java:10: error: ')' expected
     else if t>a[i]
                   ^
Main.java:14: error: reached end of file while parsing
}
 ^
11 errors
Language: Java

class Main{  
 public static void main(String[] a){    
    int f,s,t;
    for (int i: a){
    if(a[i] >=0 &$ a[i]<10000)
     if(f<a[i])
      f = a[i];
     else if(s>a[i])
      s = a[i];
     else if(t>a[i])
      t = a[i]; 
    }
    System.out.println(f+"\n"+s+"\n"+t);
}

Compiler output:
Main.java:5: error: ')' expected
    if(a[i] >=0 &$ a[i]<10000)
                  ^
Main.java:5: error: not a statement
    if(a[i] >=0 &$ a[i]<10000)
                       ^
Main.java:5: error: ';' expected
    if(a[i] >=0 &$ a[i]<10000)
                             ^
Main.java:14: error: reached end of file while parsing
}
 ^
4 errors
Language: Java

class Main{  
 public static void main(String[] a){    
    int f,s,t;
    for (int i: a){
    if(a[i] >=0 && a[i]<10000)
     if(f<a[i])
      f = a[i];
     else if(s>a[i])
      s = a[i];
     else if(t>a[i])
      t = a[i]; 
    }
    System.out.println(f+"\n"+s+"\n"+t);
}

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

class Main{  
 public static void main(String[] a){    
    int f,s,t;
    for (int i: a){
    if(a[i] >=0 && a[i]<10000)
     if(f<a[i])
      f = a[i];
     else if(s>a[i])
      s = a[i];
     else if(t>a[i])
      t = a[i]; 
    }
    System.out.println(f+"\n"+s+"\n"+t);
 }
}

Compiler output:
Main.java:4: error: incompatible types: String cannot be converted to int
    for (int i: a){
                ^
Main.java:5: error: bad operand types for binary operator '>='
    if(a[i] >=0 && a[i]<10000)
            ^
  first type:  String
  second type: int
Main.java:5: error: bad operand types for binary operator '<'
    if(a[i] >=0 && a[i]<10000)
                       ^
  first type:  String
  second type: int
Main.java:6: error: bad operand types for binary operator '<'
     if(f<a[i])
         ^
  first type:  int
  second type: String
Main.java:7: error: incompatible types: String cannot be converted to int
      f = a[i];
           ^
Main.java:8: error: bad operand types for binary operator '>'
     else if(s>a[i])
              ^
  first type:  int
  second type: String
Main.java:9: error: incompatible types: String cannot be converted to int
      s = a[i];
           ^
Main.java:10: error: bad operand types for binary operator '>'
     else if(t>a[i])
              ^
  first type:  int
  second type: String
Main.java:11: error: incompatible types: String cannot be converted to int
      t = a[i]; 
           ^
9 errors
Language: Java

class Main{  
 public static void main(String[] a){    
    int f,s,t;
    int[] x = new int[a.length];
    for(int i = 0; i < a.length; i++){
    x[i] = Integer.parseInt(a[i]);
    }
    for (int i: x){
    if(x[i] >=0 && x[i]<10000)
     if(f<x[i])
      f = x[i];
     else if(s>x[i])
      s = x[i];
     else if(t>x[i])
      t = x[i]; 
    }
    System.out.println(f+"\n"+s+"\n"+t);
 }
}

Compiler output:
Main.java:10: error: variable f might not have been initialized
     if(f<x[i])
        ^
Main.java:12: error: variable s might not have been initialized
     else if(s>x[i])
             ^
Main.java:14: error: variable t might not have been initialized
     else if(t>x[i])
             ^
Main.java:17: error: variable f might not have been initialized
    System.out.println(f+"\n"+s+"\n"+t);
                       ^
Main.java:17: error: variable s might not have been initialized
    System.out.println(f+"\n"+s+"\n"+t);
                              ^
Main.java:17: error: variable t might not have been initialized
    System.out.println(f+"\n"+s+"\n"+t);
                                     ^
6 errors
Language: Java

class Main{  
 public static void main(String[] a){    
    int f=0,s=0,t=0;
    int[] x = new int[a.length];
    for(int i = 0; i < a.length; i++){
    x[i] = Integer.parseInt(a[i]);
    }
    for (int i: x){
    if(x[i] >=0 && x[i]=<10000)
     if(f<x[i])
      f = x[i];
     else if(s>x[i])
      s = x[i];
     else if(t>x[i])
      t = x[i]; 
    }
    System.out.println(f);
    System.out.println(s);
    System.out.println(f);
 }
}

Compiler output:
Main.java:9: error: illegal start of type
    if(x[i] >=0 && x[i]=<10000)
                         ^
Main.java:9: error: ';' expected
    if(x[i] >=0 && x[i]=<10000)
                              ^
2 errors
Language: Java

import java.io.*;
class Main{  
 public static void main(String[] a){    
    BufferedReader b = new BufferedReader(new InputStreamReader(System.in));
    int f=0,s=0,t=0;
    int[] x = new int[10];
    for(int i = 0; i < 10;i++){
    x[i] = Integer.parseInt(b.readline());
    }
    for (int i: x){
    if(x[i] >=0 && x[i]<=10000)
     if(f<x[i])
      f = x[i];
     else if(s>x[i])
      s = x[i];
     else if(t>x[i])
      t = x[i]; 
    }
    System.out.println(f);
    System.out.println(s);
    System.out.println(t);
 }
}

Compiler output:
Main.java:8: error: cannot find symbol
    x[i] = Integer.parseInt(b.readline());
                             ^
  symbol:   method readline()
  location: variable b of type BufferedReader
1 error
Language: Java

import java.io.*;
class Main{  
 public static void main(String[] a){    
    BufferedReader b = new BufferedReader(new InputStreamReader(System.in));
    int f=0,s=0,t=0;
    int[] x = new int[10];
    for(int i = 0; i < 10;i++){
    x[i] = Integer.parseInt(b.readLine());
    }
    for (int i: x){
    if(x[i] >=0 && x[i]<=10000)
     if(f<x[i])
      f = x[i];
     else if(s>x[i])
      s = x[i];
     else if(t>x[i])
      t = x[i]; 
    }
    System.out.println(f);
    System.out.println(s);
    System.out.println(t);
 }
}

Compiler output:
Main.java:8: error: unreported exception IOException; must be caught or declared to be thrown
    x[i] = Integer.parseInt(b.readLine());
                                      ^
1 error
Language: Java

class Hills{
	public static void main(String[] args) throws Exception {
		int[] heights = new int[10];
		for (int i = 0; i < 10; i++) {
			BufferedReader height = new BufferedReader(new InputStreamReader(System.in));	
			heights[i] = Integer.parseInt(height.readLine());
			System.out.println(heights[i]);
		}
		Arrays.sort(heights);
		System.out.println(heights[0]);
		System.out.println(heights[1]);
		System.out.println(heights[2]);
	}
}

Compiler output:
Main.java:5: error: cannot find symbol
			BufferedReader height = new BufferedReader(new InputStreamReader(System.in));	
			^
  symbol:   class BufferedReader
  location: class Hills
Main.java:5: error: cannot find symbol
			BufferedReader height = new BufferedReader(new InputStreamReader(System.in));	
			                            ^
  symbol:   class BufferedReader
  location: class Hills
Main.java:5: error: cannot find symbol
			BufferedReader height = new BufferedReader(new InputStreamReader(System.in));	
			                                               ^
  symbol:   class InputStreamReader
  location: class Hills
Main.java:9: error: cannot find symbol
		Arrays.sort(heights);
		^
  symbol:   variable Arrays
  location: class Hills
4 errors
Language: Java

public class Main{
	public static void main(String[] a) throws Exception {
		int[] heights = new int[10];
		for (int i = 0; i < 10; i++) {
			BufferedReader height = new BufferedReader(new InputStreamReader(System.in));	
			heights[i] = Integer.parseInt(height.readLine());
			System.out.println(heights[i]);
		}
		Arrays.sort(heights);
		System.out.println(heights[0]);
		System.out.println(heights[1]);
		System.out.println(heights[2]);
	}
}

Compiler output:
Main.java:5: error: cannot find symbol
			BufferedReader height = new BufferedReader(new InputStreamReader(System.in));	
			^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
			BufferedReader height = new BufferedReader(new InputStreamReader(System.in));	
			                            ^
  symbol:   class BufferedReader
  location: class Main
Main.java:5: error: cannot find symbol
			BufferedReader height = new BufferedReader(new InputStreamReader(System.in));	
			                                               ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:9: error: cannot find symbol
		Arrays.sort(heights);
		^
  symbol:   variable Arrays
  location: class Main
4 errors
Language: Java


class Main{
	public static void main(String[] a) throws Exception {
		int[] heights = new int[10];
		for (int i = 0; i < 10; i++) {
			BufferedReader height = new java.io.BufferedReader(new java.io.InputStreamReader(System.in));	
			heights[i] = Integer.parseInt(height.readLine());
			System.out.println(heights[i]);
		}
		java.util.Arrays.sort(heights);
		System.out.println(heights[0]);
		System.out.println(heights[1]);
		System.out.println(heights[2]);
	}
}

Compiler output:
Main.java:6: error: cannot find symbol
			BufferedReader height = new java.io.BufferedReader(new java.io.InputStreamReader(System.in));	
			^
  symbol:   class BufferedReader
  location: class Main
1 error
Language: Java

class Main{
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = 0, b = 0, c = 0; // a>=b>=c
		while (sc.hasNext()) {
			String line = sc.nextLine();
			Scanner s = new Scanner(line);
			int h = s.nextInt();
			if (a < h) {
				c = b;
				b = a;
				a = h;
			} else if (b < h) {
				c = b;
				b = h;
			} else if (c < h) {
				c = h;
			}
		}
		System.out.println(a);
		System.out.println(b);
		System.out.println(c);
	}
}

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:7: error: cannot find symbol
			Scanner s = new Scanner(line);
			^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
			Scanner s = new Scanner(line);
			                ^
  symbol:   class Scanner
  location: class Main
4 errors
Language: Java

import java.util.Comparator;
import java.util.PriorityQueue;
import java.util.Queue;
import java.util.Scanner;

//List of Top 3 Hills
public class AOJ0001 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		Queue<Integer> q = new PriorityQueue<Integer>(10, new Comparator<Integer>(){
			public int compare(Integer o1, Integer o2) {
				return o2-o1;
			}
		});
		for(int i=0;i<10;i++)q.add(sc.nextInt());
		for(int i=0;i<3;i++)System.out.println(q.poll());
	}
}

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

public class Top3Hills {
    static int[] hight = {1819, 2003, 876, 2840, 1723, 1673, 3776,2848,1592,922};
    public static void main (String[] args) {
        java.util.Arrays.sort(hight);
        for(int i=hight.length-1;i>hight.length-4;i--) {
            System.out.println(hight[i]);
        }
    }
}

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

public class Main {
    public static void main(String[] args) throws IOException {
        List<Integer> inputs = new ArrayList<Integer>();

        Scanner sc = new Scanner(System.in);
        for(int i=0; i<10; i++) {
            if(!sc.hasNextInt()) {
                break;
            }
            int input = sc.nextInt();
            inputs.add(Integer.valueOf(input));
        }

        Collections.sort(inputs, new Comparator<Integer>() {
            @Override
            public int compare(Integer o1, Integer o2) {
                return o2-o1;
            }
        });
        
        for(int height : inputs.subList(0, Math.min(inputs.size(), 3))) {
            System.out.println(height);
        }
    }
}

Compiler output:
Main.java:2: error: cannot find symbol
    public static void main(String[] args) throws IOException {
                                                  ^
  symbol:   class IOException
  location: class Main
Main.java:3: error: cannot find symbol
        List<Integer> inputs = new ArrayList<Integer>();
        ^
  symbol:   class List
  location: class Main
Main.java:3: error: cannot find symbol
        List<Integer> inputs = new ArrayList<Integer>();
                                   ^
  symbol:   class ArrayList
  location: class Main
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
Main.java:14: error: cannot find symbol
        Collections.sort(inputs, new Comparator<Integer>() {
                                     ^
  symbol:   class Comparator
  location: class Main
Main.java:15: error: method does not override or implement a method from a supertype
            @Override
            ^
Main.java:14: error: cannot find symbol
        Collections.sort(inputs, new Comparator<Integer>() {
        ^
  symbol:   variable Collections
  location: class Main
8 errors
Language: Java

import java.util.Scanner;

public class main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = 0, b = 0, c = 0; // a>=b>=c
		while (sc.hasNext()) {
			String line = sc.nextLine();
			Scanner s = new Scanner(line);
			int h = s.nextInt();
			if (a < h) {
				c = b;
				b = a;
				a = h;
			} else if (b < h) {
				c = b;
				b = h;
			} else if (c < h) {
				c = h;
			}
		}
		System.out.println(a);
		System.out.println(b);
		System.out.println(c);
	}
}

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