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

import java.util.Scanner;

class Main{
    public static void main(String[] a){
    	Scanner scan = new Scanner(System.in);
    	int[] data = new int[3]={0};
    	int tmp;
    	for(int i=0;i<10;i++){
    		tmp=scan.nextInt();
    		for(int j=0;j<3;j++){
    			if(data[j]<=tmp){
    				for(int k=2;k>j;k--){
    					data[k]=data[k-1];
    				}
    				data[j]=tmp;
    			}
    		}
    	}
    	for(int i=0;i<3;i++){
    		System.out.println(data[i]);
    	}
    }
}

Compiler output:
Main.java:6: error: illegal start of expression
    	int[] data = new int[3]={0};
    	                        ^
Main.java:6: error: not a statement
    	int[] data = new int[3]={0};
    	                         ^
Main.java:6: error: ';' expected
    	int[] data = new int[3]={0};
    	                          ^
3 errors
Language: Java

import java.util.Scanner;

class Main{
    public static void main(String[] a){
    	Scanner scan = new Scanner(System.in);
    	int[] data = new int[3]{0};
    	int tmp;
    	for(int i=0;i<10;i++){
    		tmp=scan.nextInt();
    		for(int j=0;j<3;j++){
    			if(data[j]<=tmp){
    				for(int k=2;k>j;k--){
    					data[k]=data[k-1];
    				}
    				data[j]=tmp;
    			}
    		}
    	}
    	for(int i=0;i<3;i++){
    		System.out.println(data[i]);
    	}
    }
}

Compiler output:
Main.java:6: error: array creation with both dimension expression and initialization is illegal
    	int[] data = new int[3]{0};
    	                       ^
1 error
Language: Java

import java.util.Scanner;

class Main{
    public static void main(String[] a){
    	Scanner scan = new Scanner(System.in);
    	int[] data;
    	data = new int[3]{0,0,0};
    	int tmp;
    	for(int i=0;i<10;i++){
    		tmp=scan.nextInt();
    		for(int j=0;j<3;j++){
    			if(data[j]<=tmp){
    				for(int k=2;k>j;k--){
    					data[k]=data[k-1];
    				}
    				data[j]=tmp;
    			}
    		}
    	}
    	for(int i=0;i<3;i++){
    		System.out.println(data[i]);
    	}
    }
}

Compiler output:
Main.java:7: error: array creation with both dimension expression and initialization is illegal
    	data = new int[3]{0,0,0};
    	                 ^
1 error
Language: Java

import java.util.*;
class Q2
{
 public static void main(String[] av)
 {
   Scanner sc = new Scanner( System.in );
   ArrayList<Integer> al = new ArrayList<Integer>();
   while( sc.hasNextInt() )
   {
     al.add( sc.nextInt() )
    }
    Collections.sort( al ); Collections.reverse( al );
    for ( int i = 0; i < 3; ++i )
    {
     System.out.println( al.get(i) );
    }
}

Compiler output:
Main.java:10: error: ';' expected
     al.add( sc.nextInt() )
                           ^
Main.java:17: error: reached end of file while parsing
}
 ^
2 errors
Language: Java


class q2
{
	public static void main(string[] av)
	{
		java.util.scanner sc = new java.util.scanner(system.in);
		java.util.arraylist<integer> vec = new java.util.arraylist<>();
		while( sc.hasnextint() )
		{
			vec.add( sc.nextint() );	
		}
		java.util.collections.sort( vec );
		java.util.collections.reverse( vec );
		for ( int i = 0; i < 3; ++i )
		{
			system.out.println( vec.get(i) );
		}
	}
}

Compiler output:
Main.java:4: error: cannot find symbol
	public static void main(string[] av)
	                        ^
  symbol:   class string
  location: class q2
Main.java:6: error: cannot find symbol
		java.util.scanner sc = new java.util.scanner(system.in);
		         ^
  symbol:   class scanner
  location: package java.util
Main.java:6: error: cannot find symbol
		java.util.scanner sc = new java.util.scanner(system.in);
		                                    ^
  symbol:   class scanner
  location: package java.util
Main.java:6: error: cannot find symbol
		java.util.scanner sc = new java.util.scanner(system.in);
		                                             ^
  symbol:   variable system
  location: class q2
Main.java:7: error: cannot find symbol
		java.util.arraylist<integer> vec = new java.util.arraylist<>();
		         ^
  symbol:   class arraylist
  location: package java.util
Main.java:7: error: cannot find symbol
		java.util.arraylist<integer> vec = new java.util.arraylist<>();
		                    ^
  symbol:   class integer
  location: class q2
Main.java:7: error: cannot find symbol
		java.util.arraylist<integer> vec = new java.util.arraylist<>();
		                                                ^
  symbol:   class arraylist
  location: package java.util
Main.java:12: error: cannot find symbol
		java.util.collections.sort( vec );
		         ^
  symbol:   class collections
  location: package java.util
Main.java:13: error: cannot find symbol
		java.util.collections.reverse( vec );
		         ^
  symbol:   class collections
  location: package java.util
Main.java:16: error: package system does not exist
			system.out.println( vec.get(i) );
			      ^
10 errors
Language: Java

import java.io.*;
import java.util.Arrays;



public class {
	public static void main(String[] args)  throws IOException
	{
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		int[] num = new int[10];
		for(int i=0; i<10; i++){
			num[i] = Integer.parseInt(br.readLine());
		}
		Arrays.sort(num);
		for(int i=num.length-1; i>num.length-4; i--){
			System.out.println(num[i]);
		}
		

Compiler output:
Main.java:6: error: <identifier> expected
public class {
            ^
Main.java:17: error: reached end of file while parsing
		}
		 ^
2 errors
Language: Java

import java.io.*;
import java.util.Arrays;



public class Main{
	public static void main(String[] args)  throws IOException
	{
		BufferedReader br =new BufferedReader(new InputStreamReader(System.in));
		int[] num = new int[10];
		for(int i=0; i<10; i++){
			num[i] = Integer.parseInt(br.readLine());
		}
		Arrays.sort(num);
		for(int i=num.length-1; i>num.length-4; i--){
			System.out.println(num[i]);
		}
		

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

public class JavaApplication1 { 
   public static void main(String[] args) {
        // TODO code application logic here
        if (args.length < 2){
            System.out.println("引数を２つ指定してください。");
            System.exit(1);
        }
        int a = Integer.parseInt(args[0]);
        int b = Integer.parseInt(args[1]);
        int length = a*b;
        int length2 = 2*a+2*b;
        System.out.println(length + " " + length2);
    }
}

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

num=[]

for i in 0...10
num[i]=ARGV[i].to_i
end

num.sort!;num.reverse!

for i in 0...3
    puts num[i]
end

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
num=[]
^
Main.java:3: error: illegal '.'
for i in 0...10
            ^
Main.java:7: error: class, interface, enum, or record expected
num.sort!;num.reverse!
          ^
Main.java:9: error: illegal '.'
for i in 0...3
            ^
4 errors
Language: Java

f=0
s=0
t=0
i=0
10.times do
	m=ARGV[i].to_i
        if f<m
              	j=m
                m=f
                f=j
        end
	if s<m
              	j=m
                m=s
                s=j
        end
	if t<m
              	j=m
                m=t
                t=j
        end
i=i+1
end
puts "#{f}","#{s}","#{t}"

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
f=0
^
1 error
Language: Java

public class Main {
	public static void main(String[] a) {
		int[] takasa = {0,0,0,0,0,0,0,0,0,0};
		for (int i = 0; i < 10; i++) {
			Scanner scan = new Scanner(System.in);
			takasa[i] = Integer.valueOf(scan.next());
		}
		Arrays.sort(takasa);
		for(int i=9;i>6;i--)	System.out.println(takasa[i]);
	}
}

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
Main.java:8: error: cannot find symbol
		Arrays.sort(takasa);
		^
  symbol:   variable Arrays
  location: class Main
3 errors
Language: Java

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

class Main {

	public static void main(String[] args) throws IOException {

		BufferedReader br = new BufferedReader(new InputStreamReader(
				System.in));
		try {

			int[] height = new int[10];

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

				height[i] = Integer.parseInt(br.readLine());

			}

			Arrays.sort(height);

			for (int j = 9; j > 6; j--) {
				System.out.println(height[j]);
			}

		}finally{
			br.close();
		}

	}

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

class Main {
	public static void main(String[] a) {
		Scanner sc = new Scanner(System.in);
		int[] mountainHigh = new int[10];
		for (int i = 0; i < 10; i++) {
			mountainHigh[i] = sc.nextInt();
		}
		Arrays.sort(mountainHigh);
		for (int i = 9; i > 9 - 3; i--) {
			System.out.println(mountainHigh[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(mountainHigh);
		^
  symbol:   variable Arrays
  location: class Main
3 errors
Language: Java

class Main {
	public static void main(String[] a) {
		Scanner sc = new Scanner(System.in);
		int[] mountainHigh = new int[10];
		for (int i = 0; i < 10; i++) {
			mountainHigh[i] = sc.nextInt();
		}
		Arrays.sort(mountainHigh);
		for (int i = 9; i > 9 - 3; i -= 1) {
			System.out.println(mountainHigh[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(mountainHigh);
		^
  symbol:   variable Arrays
  location: class Main
3 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.arrays;

class aoj001{
  public static void main(string[] a){
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int[] arr = new int[10]; 
    for (int i = 0; i<10; i++)
      arr[i] = integer.parseint(br.readline());

    arrays.sort(arr);
    for (int i = 0; i < 3; i++)
      system.out.println(arr[i]);
  }
}

Compiler output:
Main.java:3: error: cannot find symbol
import java.util.arrays;
                ^
  symbol:   class arrays
  location: package java.util
Main.java:6: error: cannot find symbol
  public static void main(string[] a){
                          ^
  symbol:   class string
  location: class aoj001
Main.java:10: error: cannot find symbol
      arr[i] = integer.parseint(br.readline());
               ^
  symbol:   variable integer
  location: class aoj001
Main.java:10: error: cannot find symbol
      arr[i] = integer.parseint(br.readline());
                                  ^
  symbol:   method readline()
  location: variable br of type BufferedReader
Main.java:12: error: cannot find symbol
    arrays.sort(arr);
    ^
  symbol:   variable arrays
  location: class aoj001
Main.java:14: error: package system does not exist
      system.out.println(arr[i]);
            ^
6 errors
Language: Java

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

import java.util.arrays;

class Main{
  public static void main(string[] a){
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int[] arr = new int[10]; 
    for (int i = 0; i<10; i++)
      arr[i] = integer.parseint(br.readline());

    arrays.sort(arr);
    for (int i = 0; i < 3; i++)
      system.out.println(arr[i]);
  }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
Vimport java.io.BufferedReader;
^
Main.java:2: error: class, interface, enum, or record expected
import java.io.InputStreamReader;
^
Main.java:4: error: class, interface, enum, or record expected
import java.util.arrays;
^
3 errors
Language: Java

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

import java.util.arrays;

class Main{
  public static void main(string[] a){
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int[] arr = new int[10]; 
    for (int i = 0; i<10; i++)
      arr[i] = integer.parseint(br.readline());

    arrays.sort(arr);
    for (int i = 0; i < 3; i++)
      system.out.println(arr[i]);
  }
}

Compiler output:
Main.java:4: error: cannot find symbol
import java.util.arrays;
                ^
  symbol:   class arrays
  location: package java.util
Main.java:7: error: cannot find symbol
  public static void main(string[] a){
                          ^
  symbol:   class string
  location: class Main
Main.java:11: error: cannot find symbol
      arr[i] = integer.parseint(br.readline());
               ^
  symbol:   variable integer
  location: class Main
Main.java:11: error: cannot find symbol
      arr[i] = integer.parseint(br.readline());
                                  ^
  symbol:   method readline()
  location: variable br of type BufferedReader
Main.java:13: error: cannot find symbol
    arrays.sort(arr);
    ^
  symbol:   variable arrays
  location: class Main
Main.java:15: error: package system does not exist
      system.out.println(arr[i]);
            ^
6 errors
Language: Java

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

import java.util.Arrays;

class Main{
  public static void main(string[] a){
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int[] arr = new int[10]; 
    for (int i = 0; i<10; i++)
      arr[i] = integer.parseint(br.readline());

    arrays.sort(arr);
    for (int i = 0; i < 3; i++)
      system.out.println(arr[i]);
  }
}

Compiler output:
Main.java:7: error: cannot find symbol
  public static void main(string[] a){
                          ^
  symbol:   class string
  location: class Main
Main.java:11: error: cannot find symbol
      arr[i] = integer.parseint(br.readline());
               ^
  symbol:   variable integer
  location: class Main
Main.java:11: error: cannot find symbol
      arr[i] = integer.parseint(br.readline());
                                  ^
  symbol:   method readline()
  location: variable br of type BufferedReader
Main.java:13: error: cannot find symbol
    arrays.sort(arr);
    ^
  symbol:   variable arrays
  location: class Main
Main.java:15: error: package system does not exist
      system.out.println(arr[i]);
            ^
5 errors
Language: Java

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

import java.util.Arrays;

class Main{
  public static void main(string[] a){
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int[] arr = new int[10]; 
    for (int i = 0; i<10; i++)
      arr[i] = integer.parseint(br.readLine());

    arrays.sort(arr);
    for (int i = 0; i < 3; i++)
      system.out.println(arr[i]);
  }
}

Compiler output:
Main.java:7: error: cannot find symbol
  public static void main(string[] a){
                          ^
  symbol:   class string
  location: class Main
Main.java:11: error: cannot find symbol
      arr[i] = integer.parseint(br.readLine());
               ^
  symbol:   variable integer
  location: class Main
Main.java:13: error: cannot find symbol
    arrays.sort(arr);
    ^
  symbol:   variable arrays
  location: class Main
Main.java:15: error: package system does not exist
      system.out.println(arr[i]);
            ^
4 errors
Language: Java

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

import java.util.Arrays;

class Main{
  public static void main(string[] a){
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int[] arr = new int[10]; 
    for (int i = 0; i<10; i++)
      arr[i] = Integer.parseInt(br.readLine());

    arrays.sort(arr);
    for (int i = 0; i < 3; i++)
      System.out.println(arr[i]);
  }
}

Compiler output:
Main.java:7: error: cannot find symbol
  public static void main(string[] a){
                          ^
  symbol:   class string
  location: class Main
Main.java:13: error: cannot find symbol
    arrays.sort(arr);
    ^
  symbol:   variable arrays
  location: class Main
2 errors
Language: Java

class Main{
  public static void main(string[] a){
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int[] arr = new int[10]; 
    for (int i = 0; i<10; i++)
      arr[i] = Integer.parseInt(br.readLine());

    Arrays.sort(arr);
    for (int i = 0; i < 3; i++)
      System.out.println(arr[i]);
  }
}

Compiler output:
Main.java:2: error: cannot find symbol
  public static void main(string[] a){
                          ^
  symbol:   class string
  location: class Main
Main.java:3: error: cannot find symbol
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                            ^
  symbol:   class BufferedReader
  location: class Main
Main.java:3: error: cannot find symbol
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                                               ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:8: error: cannot find symbol
    Arrays.sort(arr);
    ^
  symbol:   variable Arrays
  location: class Main
5 errors
Language: Java

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

import java.util.Arrays;

public class Main{
  public static void main(string[] a){
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int[] arr = new int[10]; 
    for (int i = 0; i<10; i++)
      arr[i] = Integer.parseInt(br.readLine());

    Arrays.sort(arr);
    for (int i = 0; i < 3; i++)
      System.out.println(arr[i]);
  }
}

Compiler output:
Main.java:7: error: cannot find symbol
  public static void main(string[] a){
                          ^
  symbol:   class string
  location: class Main
1 error
Language: Java

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

import java.util.Arrays;

public class main{
  public static void main(string[] a){
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    int[] arr = new int[10]; 
    for (int i = 0; i<10; i++)
      arr[i] = Integer.parseInt(br.readLine());

    Arrays.sort(arr);
    for (int i = 0; i < 3; i++)
      System.out.println(arr[i]);
  }
}

Compiler output:
Main.java:6: error: class main is public, should be declared in a file named main.java
public class main{
       ^
Main.java:7: error: cannot find symbol
  public static void main(string[] a){
                          ^
  symbol:   class string
  location: class main
2 errors
Language: Java

import java.util.Arrays;
import java.util.Collections;

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

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

import java.util.Arrays;
import java.util.Collections;
import java.util.Sanner;

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

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


class Main {
	public static void main(String[] args) throws IOException {
		ArrayList<Integer> heights = new ArrayList<Integer>();
		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		
		for (int i = 0; i < 10; i++) {
			int h = Integer.parseInt(br.readLine());
			
			heights.add(h);
		}
		
		Collections.sort(heights);
		Collections.reverse(heights);
		
		for (int i = 0; i < 3; i++) {
			System.out.println(heights.get(i));
		}
	}
}

Compiler output:
Main.java:3: error: cannot find symbol
	public static void main(String[] args) throws IOException {
	                                              ^
  symbol:   class IOException
  location: class Main
Main.java:4: error: cannot find symbol
		ArrayList<Integer> heights = new ArrayList<Integer>();
		^
  symbol:   class ArrayList
  location: class Main
Main.java:4: error: cannot find symbol
		ArrayList<Integer> heights = new ArrayList<Integer>();
		                                 ^
  symbol:   class ArrayList
  location: class Main
Main.java:5: error: cannot find symbol
		InputStreamReader isr = new InputStreamReader(System.in);
		^
  symbol:   class InputStreamReader
  location: class Main
Main.java:5: error: cannot find symbol
		InputStreamReader isr = new InputStreamReader(System.in);
		                            ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:6: error: cannot find symbol
		BufferedReader br = new BufferedReader(isr);
		^
  symbol:   class BufferedReader
  location: class Main
Main.java:6: error: cannot find symbol
		BufferedReader br = new BufferedReader(isr);
		                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:14: error: cannot find symbol
		Collections.sort(heights);
		^
  symbol:   variable Collections
  location: class Main
Main.java:15: error: cannot find symbol
		Collections.reverse(heights);
		^
  symbol:   variable Collections
  location: class Main
9 errors
Language: Java

import java.util.*;
public class sort {

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

    }
}

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

import java.io.*;
 
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InutStreamReader(System.in));
int n=10;
int[] k=new int[n];
for(int i=0;i<n;i++){
k[i]=Integer.parseInt(br.readLine());
}
Arrays.sort(k);
for(int i=0;i<3;i++){
System.out.println(k[n-i-1]);
}
}
}

Compiler output:
Main.java:5: error: cannot find symbol
BufferedReader br=new BufferedReader(new InutStreamReader(System.in));
                                         ^
  symbol:   class InutStreamReader
  location: class Main
Main.java:11: error: cannot find symbol
Arrays.sort(k);
^
  symbol:   variable Arrays
  location: class Main
2 errors
Language: Java

import java.io.*;
  
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int n=10;
int[] k=new int[n];
for(int i=0;i<n;i++){
k[i]=Integer.parseInt(br.readLine());
}
Arrays.sort(k);
for(int i=0;i<3;i++){
System.out.println(k[n-i-1]);
}
}
}

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

import java.io.*;
import java.util.*;
   
class Main{
public static void main(String[] args) throws IOException{
BufferedReader br=new BufferedReader(new InutStreamReader(System.in));
int n=10;
int[] k=new int[n];
for(int i=0;i<n;i++){
k[i]=Integer.parseInt(br.readLine());
}
Arrays.sort(k);
for(int i=0;i<3;i++){
System.out.println(k[n-i-1]);
}
}
}

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

public class Main {
    public static void main(String[] args) {
        List<Integer> list = new ArrayList<>();
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            list.add(Integer.parseInt(scanner.next()));
        }
        Collections.sort(list);
        Collections.reverse(list);
        list.stream().limit(3).forEach(System.out::println);
    }
}

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

public class Main {
    public static void main(String[] args) {
        List<Integer> list = new ArrayList<Integer>();
        Scanner scanner = new Scanner(System.in);
        while (scanner.hasNext()) {
            list.add(Integer.parseInt(scanner.next()));
        }
        Collections.sort(list);
        Collections.reverse(list);
        for (int i = 0; i < 3; i++) {
            System.out.println(list.get(i));
        }
    }
}

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

class Main {
  public static void main(String[] args) {
    int n = 10, m = 3;
    int[] arr = new int[n];

    for (int i = 0; i < n; i++){
      arr[i] = new java.util.Scanner(System.in).nextInt();
    }

    Arrays.sort(arr);

    for (int i = n - 1; i >= n -m; i--){
      System.out.println(arr[i]);
    }
  }
}

Compiler output:
Main.java:10: error: cannot find symbol
    Arrays.sort(arr);
    ^
  symbol:   variable Arrays
  location: class Main
1 error
Language: Java

class Main{
    public static void main(String[] a){
        ArrayList<Integer> list = new ArrayList<Integer>();
        list.add(1819);
        list.add(2003);
        list.add(876);
        list.add(2840);
        list.add(1723);
        list.add(1673);
        list.add(3776);
        list.add(2848);
        list.add(1592);
        list.add(922);

        Colection.sort(list);
        Collection.reverse(list);
        for(int index=0;index<3;index++) {
            System.out.println(list.get(index));
        }
    }
}

Compiler output:
Main.java:3: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<Integer>();
        ^
  symbol:   class ArrayList
  location: class Main
Main.java:3: error: cannot find symbol
        ArrayList<Integer> list = new ArrayList<Integer>();
                                      ^
  symbol:   class ArrayList
  location: class Main
Main.java:15: error: cannot find symbol
        Colection.sort(list);
        ^
  symbol:   variable Colection
  location: class Main
Main.java:16: error: cannot find symbol
        Collection.reverse(list);
        ^
  symbol:   variable Collection
  location: class Main
4 errors
Language: Java

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

        int index;
        for(index=0;index<3;index++) {
            System.out.println(max(list));
        }
    }
    
    private int max(int[] list) {
        int max = 0;
        int index;
        int maxIndex;
        for(index=0;index<list.length;index++) {
          if (list[index] > max) {
             max = list[index];
             maxIndex = index;
          }
        }
        list[maxIndex] = 0;
        return max;
    }
}

Compiler output:
Main.java:18: error: non-static method max(int[]) cannot be referenced from a static context
            System.out.println(max(list));
                               ^
1 error
Language: Java

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

        int index;
        for(index=0;index<3;index++) {
            System.out.println(max(list));
        }
    }
    
    int max(int[] list) {
        int max = 0;
        int index;
        int maxIndex;
        for(index=0;index<list.length;index++) {
          if (list[index] > max) {
             max = list[index];
             maxIndex = index;
          }
        }
        list[maxIndex] = 0;
        return max;
    }
}

Compiler output:
Main.java:18: error: non-static method max(int[]) cannot be referenced from a static context
            System.out.println(max(list));
                               ^
1 error
Language: Java

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

        int index;
        for(index=0;index<3;index++) {
            int max = 0;
            int index;
            int maxIndex;
            for(index=0;index<list.length;index++) {
              if (list[index] > max) {
                 max = list[index];
                 maxIndex = index;
              }
            }
            list[maxIndex] = 0;
            System.out.println(max);
        }
    }
}

Compiler output:
Main.java:19: error: variable index is already defined in method main(String[])
            int index;
                ^
1 error
Language: Java

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

        int index;
        for(index=0;index<3;index++) {
            int max = 0;
            int index2;
            int maxIndex;
            for(index2=0;index2<list.length;index2++) {
              if (list[index2] > max) {
                 max = list[index2];
                 maxIndex = index2;
              }
            }
            list[maxIndex] = 0;
            System.out.println(max);
        }
    }
}

Compiler output:
Main.java:27: error: variable maxIndex might not have been initialized
            list[maxIndex] = 0;
                 ^
1 error
Language: Java

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

        int i,index,hoge;
        int max = 0;
        for(i=0;i<3;i++){
          for(index=0;index<list.length;index++){
              if(list[index]>max){
                  max = list[index];
                  hoge = index;
              }
              System.out.println(max);
              list[hoge] = 0;
          }
        }
    }
}

Compiler output:
Main.java:25: error: variable hoge might not have been initialized
              list[hoge] = 0;
                   ^
1 error
Language: Java

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

        int i;
        boolean flg = true;
        while(flg) {
            flg = true;
            for (i=0;i<list.length-1;i++) {
                if (list[i] < list[i + 1]) {
                    int temp = list[i];
                    list[i] = list[i + 1];
                    list[i + 1] = temp
                    flg = false;
                }
            }
        }
        System.out.println(list[0]);
        System.out.println(list[1]);
        System.out.println(list[2]);
    }
}

Compiler output:
Main.java:24: error: ';' expected
                    list[i + 1] = temp
                                      ^
1 error
Language: Java

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

        int i;
        boolean flg = true;
        while(flg) {
            flg = true;
            for (i=0;i<list.length-1;i++) {
                if (list[i] < list[i + 1]) {
                    int temp = list[i];
                    list[i]class Main{
    public static void main(String[] a){
        int list[] = {
              1819
            , 2003
            , 876
            , 2840
            , 1723
            , 1673
            , 3776
            , 2848
            , 1592
            , 922
        };

        int i;
        boolean flg = true;
        while(flg) {
            flg = true;
            for (i=0;i<list.length-1;i++) {
                if (list[i] < list[i + 1]) {
                    int temp = list[i];
                    list[i] = list[i + 1];
                    list[i + 1] = temp;
                    flg = false;
                }
            }
        }
        System.out.println(list[0]);
        System.out.println(list[1]);
        System.out.println(list[2]);
    }
} = list[i + 1];
                    list[i + 1] = temp
                    flg = false;
                }
            }
        }
        System.out.println(list[0]);
        System.out.println(list[1]);
        System.out.println(list[2]);
    }
}

Compiler output:
Main.java:23: error: not a statement
                    list[i]class Main{
                        ^
Main.java:23: error: ';' expected
                    list[i]class Main{
                           ^
Main.java:55: error: illegal start of expression
} = list[i + 1];
  ^
Main.java:56: error: ';' expected
                    list[i + 1] = temp
                                      ^
4 errors
Language: Java

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

        int i, flg, temp;
        do {
            flg = 0;
            for (i=0;i<9;i++) {
                if (list[i] < list[i + 1]) {
                    temp = list[i];
                    list[i] = list[i + 1];
                    list[i + 1] = temp;
                    flg = 1;
                }
            }
        }while(flg);
        System.out.println(list[0]);
        System.out.println(list[1]);
        System.out.println(list[2]);
    }
}

Compiler output:
Main.java:27: error: incompatible types: int cannot be converted to boolean
        }while(flg);
               ^
1 error
Language: Java

public class MtTop3 {
	public static void main(String[] args){
		
		int [] yama = new int[10];
		int rinji = 0;
		
		for(int i = 0; i<yama.length; i++){
			yama[i]=(int)(Math.random()*10000);
			
			if(yama[0]<yama[i]){
				rinji=yama[0];
				yama[0]=yama[i];
				yama[i]=rinji;
				if(yama[1]<yama[i]){
					rinji=yama[1];
					yama[1]=yama[i];
					yama[i]=rinji;
					
				}
			
						}
			}
			
	    for(int i = 0; i<3; i++){
		System.out.println(yama[i]);
	    }
			
			
			}
}

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

package exam.aizu_0001;

public class MtTop3 {
	public static void main(String[] args){
		
		int [] yama = new int[10];
		int rinji = 0;
		
		for(int i = 0; i<yama.length; i++){
					
			if(yama[0]<yama[i]){
				rinji=yama[0];
				yama[0]=yama[i];
				yama[i]=rinji;
				if(yama[1]<yama[i]){
					rinji=yama[1];
					yama[1]=yama[i];
					yama[i]=rinji;
					
				}
			
						}
			}
			
	    for(int i = 0; i<3; i++){
		System.out.println(yama[i]);
	    }
			
			
			}
}

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

import java.util.*;

public class Mountain1 {
	
	public static void main (String[] args){
		
		int h[]={1819,2003,876,2840,1723,1673,3776,2848,1592,922};
		
		int temp;
		
					for (int j=h.length-1;j>0;j--){
					for(int i=0;i<j;i++ )
					if (h[i]<h[i+1]){
						
						temp=h[i+1];
						
						h[i+1]=h[i];
						
						h[i]=temp;}
				}
					
					for(int i=0;i<=2;i++){
						System.out.println(h[i]);
						
					}
				
				}}

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

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package mountain;

/**
 *
 * @author cse
 */
import java.util.Scanner;
public class Mountain {

    /**
     * @param args the command line arguments
     */
    
    public static void main(String[] args) {
       int n,c,d,swap;
       Scanner in=new Scanner (System.in);
      System.out.println("Height of mountain " );
        n=in.nextInt();
        int array[]=new int[n];
       System.out.println("Enter "+ n +" height");
        for (c=0;c<n;c++)
            array[c]=in.nextInt();
            for(c=0;c<(n-1);c++)
            {
                for(d=0;d<n-c-1;d++)
                {
                    if (array[d+1]>array[d])
                            {
                                swap=array[d+1];
                                array[d+1]=array[d];
                                array[d]=swap;
                            }
                }
    }
            System.out.println("higest mountain");
            for (c=0;c<3;c++)
                System.out.println(array[c]);
        }
}

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

import java.util.Scanner;
public class Mountain {

    /**
     * @param args the command line arguments
     */
    
    public static void main(String[] args) {
       int n,c,d,swap;
       Scanner in=new Scanner (System.in);
      System.out.println("Height of mountain " );
        n=in.nextInt();
        int array[]=new int[n];
       System.out.println("Enter "+ n +" height");
        for (c=0;c<n;c++)
            array[c]=in.nextInt();
            for(c=0;c<(n-1);c++)
            {
                for(d=0;d<n-c-1;d++)
                {
                    if (array[d+1]>array[d])
                            {
                                swap=array[d+1];
                                array[d+1]=array[d];
                                array[d]=swap;
                            }
                }
    }
            System.out.println("higest mountain");
            for (c=0;c<3;c++)
                System.out.println(array[c]);
        }
}

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

public class KakezanKuku {
	public static void main(String[] args) {
		int[] height = {30,50,40,25,27,31,45,22,63,77};
		int obj = 0;
		for (int i = 0; i < height.length -1; i++) {
			for (int j = 0; j < height.length -i-1; j++) {
				if(height[j] < height[j+1]){
					obj = height[j];
					height[j] = height[j+1];
					height[j+1] = obj;
				}
			}
		}
		System.out.println(height[0]);
		System.out.println(height[1]);
		System.out.println(height[2]);
	}
}

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

public class Lesson1_2 {
	public static void main(String args[]){
		int[] height = new int[10];
		for(int n = 0; n < 10; n++){
			height[n] = new java.util.Scanner(System.in).nextInt();
		}
		for(int nr = 0; nr < 300; nr++){
			for(int lz = 0; lz < 8; lz++){
			int z1 = 0;
				if(height[lz] < height[lz+1]){
					z1 = height[lz];
					height[lz] = height[lz+1];
					height[lz+1] = z1;
				}
			}
			for(int l = 0; l < 5; l++){
				int r = 0;
				int z = 0;
				if(height[r] < height[9-r]){
					z = height[r];
					height[r] = height[9-r];
					height[9-r] = z;
				}
				r++;
			}
		}
		System.out.println("\n\n" + height[0] +"\n"+ height[1]+ "\n" + height[2] + "\n");
	}
}

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

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

class Main{
  public static void main(String[] a){
    int[] in = new int[10];
    BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
       for(int i=0; i<10; i+;){
         in[i] = Integer.parseInt(read.readLine());
       }
       Arrays.sort(in);
       System.out.println(in[9]+"/n"+in[8]+"/n"+in[7]+"/n");

       }
  

  }

}

Compiler output:
Main.java:8: error: illegal start of expression
       for(int i=0; i<10; i+;){
                            ^
Main.java:8: error: not a statement
       for(int i=0; i<10; i+;){
                           ^
Main.java:8: error: illegal start of expression
       for(int i=0; i<10; i+;){
                             ^
Main.java:19: error: class, interface, enum, or record expected
}
^
4 errors
Language: Java

package volume0;

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

public class Volume0001ver2 {

	public static void main(String[] args) throws IOException {
		// TODO ?????????????????????????????????????????????
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        int[] best = {0, 0, 0};		// ??????????????????
        
        for(int i=0; i<10; i++){
            String line = br.readLine();			// ????????????
            int height = Integer.parseInt(line);	// ??°????????????
        	
            if(height > best[0]){	// ??\????????????????????´???
            	best[2] = best[1];
            	best[1] = best[0];
            	best[0] = height;
            }
            else if(height > best[1]){
            	best[2] = best[1];
            	best[1] = height;
            }
            else if(height > best[2]){
            	best[2] = height;
            }
        }
        
        for(int h: best){
        	System.out.println(h);
        }
	}

}

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

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

class Main{
	public static void main(String[] a){
			Scanner sc=new Scanner(System.in);
			int[] input=new input[10];
			for(int i=0;i<10;i++){
				input[i]=sc.nextLine();
			}
			Arrays.sort(input,Collections.reserveOrder());
		for(int j=0;j<3;j++){
		System.out.println(input[i]);
		}
	}
}

Compiler output:
Main.java:1: error: <identifier> expected
import.java.util.Scanner;
      ^
Main.java:2: error: <identifier> expected
import.java.util.Arrays;
      ^
Main.java:3: error: <identifier> expected
import.java.util.Collections;
      ^
3 errors
Language: Java

import java.util.Scanner;
import java.util.Arrays;
import acjava.util.Collections;

class Main{
	public static void main(String[] a){
			Scanner sc=new Scanner(System.in);
			int[] input=new input[10];
			for(int i=0;i<10;i++){
				input[i]=sc.nextLine();
			}
			Arrays.sort(input,Collections.reserveOrder());
		for(int j=0;j<3;j++){
		System.out.println(input[i]);
		}
	}
}

Compiler output:
Main.java:3: error: package acjava.util does not exist
import acjava.util.Collections;
                  ^
Main.java:8: error: cannot find symbol
			int[] input=new input[10];
			                ^
  symbol:   class input
  location: class Main
Main.java:10: error: incompatible types: String cannot be converted to int
				input[i]=sc.nextLine();
				                    ^
Main.java:12: error: cannot find symbol
			Arrays.sort(input,Collections.reserveOrder());
			                  ^
  symbol:   variable Collections
  location: class Main
Main.java:14: error: cannot find symbol
		System.out.println(input[i]);
		                         ^
  symbol:   variable i
  location: class Main
5 errors
Language: Java

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

class Main{
	public static void main(String[] a){
			Scanner sc=new Scanner(System.in);
			int[] input=new input[10];
			for(int i=0;i<10;i++){
				input[i]=sc.nextLine();
			}
			Arrays.sort(input,Collections.reserveOrder());
		for(int j=0;j<3;j++){
		System.out.println(input[i]);
		}
	}
}

Compiler output:
Main.java:8: error: cannot find symbol
			int[] input=new input[10];
			                ^
  symbol:   class input
  location: class Main
Main.java:10: error: incompatible types: String cannot be converted to int
				input[i]=sc.nextLine();
				                    ^
Main.java:12: error: cannot find symbol
			Arrays.sort(input,Collections.reserveOrder());
			                             ^
  symbol:   method reserveOrder()
  location: class Collections
Main.java:14: error: cannot find symbol
		System.out.println(input[i]);
		                         ^
  symbol:   variable i
  location: class Main
4 errors