criyle/codenet-compile-errors huggingface dataset:
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.nextInt();
			}
			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: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
3 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 int[10];
			for(int i=0;i<10;i++){
				input[i]=sc.nextInt();
			}
			Arrays.sort(input,Collections.reserveOrder());
		for(int j=0;j<3;j++){
		System.out.println(input[i]);
		}
	}
}

Compiler output:
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
2 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 int[10];
			for(int i=0;i<10;i++){
				input[i]=sc.nextInt();
			}
			Arrays.sort(input,Collections.reverseOrder());
		for(int j=0;j<3;j++){
		System.out.println(input[i]);
		}
	}
}

Compiler output:
Main.java:12: error: no suitable method found for sort(int[],Comparator<Object>)
			Arrays.sort(input,Collections.reverseOrder());
			      ^
    method Arrays.<T#1>sort(T#1[],Comparator<? super T#1>) is not applicable
      (inference variable T#1 has incompatible bounds
        equality constraints: int
        upper bounds: Object)
    method Arrays.<T#2>sort(T#2[],int,int,Comparator<? super T#2>) is not applicable
      (cannot infer type-variable(s) T#2
        (actual and formal argument lists differ in length))
  where T#1,T#2 are type-variables:
    T#1 extends Object declared in method <T#1>sort(T#1[],Comparator<? super T#1>)
    T#2 extends Object declared in method <T#2>sort(T#2[],int,int,Comparator<? super T#2>)
Main.java:14: error: cannot find symbol
		System.out.println(input[i]);
		                         ^
  symbol:   variable i
  location: class Main
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
2 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);
			integer[] input=new integer[10];
			for(int i=0;i<10;i++){
				input[i]=Integer.parseInt(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
			integer[] input=new integer[10];
			^
  symbol:   class integer
  location: class Main
Main.java:8: error: cannot find symbol
			integer[] input=new integer[10];
			                    ^
  symbol:   class integer
  location: class Main
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);
			Integer[] input=new Integer[10];
			for(int i=0;i<10;i++){
				input[i]=Integer.parseInt(sc.nextLine());
			}
			Arrays.sort(input,Collections.reserveOrder());
		for(int j=0;j<3;j++){
		System.out.println(input[i]);
		}
	}
}

Compiler output:
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
2 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);
			Integer[] input=new Integer[10];
			for(int i=0;i<10;i++){
				input[i]=Integer.parseInt(sc.nextLine());
			}
			Arrays.sort(input,Collections.reverseOrder());
		for(int j=0;j<3;j++){
		System.out.println(input[i]);
		}
	}
}

Compiler output:
Main.java:14: error: cannot find symbol
		System.out.println(input[i]);
		                         ^
  symbol:   variable i
  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 InputStreamReader(System.in));int[] k=new int[10];for(int i=0;i<10;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:1: error: cannot find symbol
import java.io.*;import java.util.*;class Main{public static void main(String[] args) throws IOException{BufferedReader br=new BufferedReader(new InputStreamReader(System.in));int[] k=new int[10];for(int i=0;i<10;i++)k[i]=Integer.parseInt(br.readLine());Arrays.sort(k);for(int i=0;i<3;i++)System.out.println(k[n-i-1]);}}
                                                                                                                                                                                                                                                                                                                      ^
  symbol:   variable n
  location: class Main
1 error
Language: Java


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

public class Main {

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

		int hills[] = new int[9];

		InputStreamReader isr = new InputStreamReader(System.in);
		BufferedReader br = new BufferedReader(isr);
		for(int i=0; i<10; ++i){
			hills[i] = Integer.parseInt(br.readLine());
		}

		int first = 0;
		int second = 0;
		int third = 0;

		// ????????????
		for(int i = 0; i<hills.length; ++i){

			// ?????????????±±
			if(first < hills[i]){
				first = hills[i];
			}
		}

		for(int i = 0; i<hills.length; ++i){

			// 2????????????????±±
			if(second < hills[i]){
				if(hills[i] != first){
					second = hills[i];
				}
			}
		}

		for(int i = 0; i<hills.length; ++i){

			// 3????????????????±±
			if(third < hills[i]){
				if(hills[i] != first && hills[i] != second){
					third = hills[i];
				}
			}
		}

		System.out.println(first);
		System.out.println(second);
		System.out.println(third);
	}

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

import java.util.Arrays;

class Main{
    public static void main(String[] a){
Arrays.sort(a);
System.out.print(String.format("%d\n%d\n%d"), a[9], a[8], a[7]);
    }
}

Compiler output:
Main.java:6: error: no suitable method found for print(String,String,String,String)
System.out.print(String.format("%d\n%d\n%d"), a[9], a[8], a[7]);
          ^
    method PrintStream.print(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.print(Object) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.Arrays;
  
class Main{
    public static void main(String[] a){
String[] s = new String[];
Scanner sc = new Scanner(System.in);
for (int c = 0; c < 10; c++) {
s[c] = sc.nextLine();
}
Arrays.sort(s);
System.out.print(String.format("%d\%d\%d", s[9], s[8], s[7]));
    }
}

Compiler output:
Main.java:5: error: array dimension missing
String[] s = new String[];
                         ^
Main.java:11: error: illegal escape character
System.out.print(String.format("%d\%d\%d", s[9], s[8], s[7]));
                                   ^
Main.java:11: error: illegal escape character
System.out.print(String.format("%d\%d\%d", s[9], s[8], s[7]));
                                      ^
Main.java:11: error: not a statement
System.out.print(String.format("%d\%d\%d", s[9], s[8], s[7]));
                                            ^
Main.java:11: error: ';' expected
System.out.print(String.format("%d\%d\%d", s[9], s[8], s[7]));
                                               ^
Main.java:11: error: not a statement
System.out.print(String.format("%d\%d\%d", s[9], s[8], s[7]));
                                                  ^
Main.java:11: error: ';' expected
System.out.print(String.format("%d\%d\%d", s[9], s[8], s[7]));
                                                     ^
Main.java:11: error: not a statement
System.out.print(String.format("%d\%d\%d", s[9], s[8], s[7]));
                                                        ^
Main.java:11: error: ';' expected
System.out.print(String.format("%d\%d\%d", s[9], s[8], s[7]));
                                                           ^
9 errors
Language: Java

import java.util.Arrays;
   
class Main{
    public static void main(String[] a){
String[] s;
Scanner sc = new Scanner(System.in);
for (int c = 0; c < 10; c++) {
s[c] = sc.nextLine();
}
Arrays.sort(s);
System.out.print(String.format("%d\%d\%d", s[9], s[8], s[7]));
    }
}

Compiler output:
Main.java:11: error: illegal escape character
System.out.print(String.format("%d\%d\%d", s[9], s[8], s[7]));
                                   ^
Main.java:11: error: illegal escape character
System.out.print(String.format("%d\%d\%d", s[9], s[8], s[7]));
                                      ^
Main.java:11: error: not a statement
System.out.print(String.format("%d\%d\%d", s[9], s[8], s[7]));
                                            ^
Main.java:11: error: ';' expected
System.out.print(String.format("%d\%d\%d", s[9], s[8], s[7]));
                                               ^
Main.java:11: error: not a statement
System.out.print(String.format("%d\%d\%d", s[9], s[8], s[7]));
                                                  ^
Main.java:11: error: ';' expected
System.out.print(String.format("%d\%d\%d", s[9], s[8], s[7]));
                                                     ^
Main.java:11: error: not a statement
System.out.print(String.format("%d\%d\%d", s[9], s[8], s[7]));
                                                        ^
Main.java:11: error: ';' expected
System.out.print(String.format("%d\%d\%d", s[9], s[8], s[7]));
                                                           ^
8 errors
Language: Java

import java.util.Arrays;
    
class Main{
    public static void main(String[] a){
String[] s;
Scanner sc = new Scanner(System.in);
for (int c = 0; c < 10; c++) {
s[c] = sc.nextLine();
}
Arrays.sort(s);
System.out.print(String.format("%d\n%d\n%d", s[9], s[8], s[7]));
    }
}

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

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

class Main{
    public static void main(String[] a){
String[] s;
Scanner sc = new Scanner(System.in);
for (int c = 0; c < 10; c++) {
s[c] = sc.nextLine();
}
Arrays.sort(s);
System.out.print(String.format("%d\n%d\n%d", s[9], s[8], s[7]));
    }
}

Compiler output:
Main.java:9: error: variable s might not have been initialized
s[c] = sc.nextLine();
^
Main.java:11: error: variable s might not have been initialized
Arrays.sort(s);
            ^
2 errors
Language: Java

class Main{
    public static void main(String[] a){
        for(int i=0;i<10;i++) {
			int height = Integer.parseInt(args[i]);
			int maxHeight = 0;
			int cnt = 0;
			if(maxHeight < height) {
				maxHeight = height;
				cnt++;
			}
			if(cnt>2)
				break;
		}
    }
}

Compiler output:
Main.java:4: error: cannot find symbol
			int height = Integer.parseInt(args[i]);
			                              ^
  symbol:   variable args
  location: class Main
1 error
Language: Java

class Main{
    public static void main(String[] args){
        for(int i=0;i<10;i++) {
			for(int j=0;j<=i;j++) {
				int height1 = Integer.parseInt(args[i]);
				int height2 = Integer.parseInt(args[j]);
				if(height1>height2) {
					String temp = args[i];
					args[i] = args[j];
					args[j] = temp;
				}
			}
			
		}
		for(int i=0;i<3;i++)
			System.out.println(args[i]+"\n");
	}
    }
}

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

class Main{
    public static void main(String[] a){
        for(int i=0;i<10;i++) {
			for(int j=0;j<=i;j++) {
				int height1 = Integer.parseInt(a[i]);
				int height2 = Integer.parseInt(a[j]);
				if(height1>height2) {
					String temp = a[i];
					a[i] = a[j];
					a[j] = temp;
				}
			}
			
		}
		for(int i=0;i<3;i++)
			System.out.println(a[i]+"\n");
	
    
}

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

class Main{
    public static void main(String[] a){
        for(int i=0;i<10;i++) {
			for(int j=0;j<=i;j++) {
				int height1 = Integer.parseInt(a[i]);
				int height2 = Integer.parseInt(a[j]);
				if(height1>height2) {
					String temp = a[i];
					a[i] = a[j];
					a[j] = temp;
				}
			}
			
		
		for(int i=0;i<3;i++)
			System.out.println(a[i]+"\n");
    }
	
    
}

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

class Main{
    public static void main(String[] a){
       for(int i=0;i<10;i++) {
			for(int j=0;j<=i;j++) {
				int height1 = Integer.parseInt(args[i]);
				int height2 = Integer.parseInt(args[j]);
				if(height1>height2) {
					String temp = args[i];
					args[i] = args[j];
					args[j] = temp;
				}
			}
			
		}
		for(int i=0;i<3;i++)
			System.out.println(args[i]+"\n");
    }
	
    
}

Compiler output:
Main.java:5: error: cannot find symbol
				int height1 = Integer.parseInt(args[i]);
				                               ^
  symbol:   variable args
  location: class Main
Main.java:6: error: cannot find symbol
				int height2 = Integer.parseInt(args[j]);
				                               ^
  symbol:   variable args
  location: class Main
Main.java:8: error: cannot find symbol
					String temp = args[i];
					              ^
  symbol:   variable args
  location: class Main
Main.java:9: error: cannot find symbol
					args[i] = args[j];
					^
  symbol:   variable args
  location: class Main
Main.java:9: error: cannot find symbol
					args[i] = args[j];
					          ^
  symbol:   variable args
  location: class Main
Main.java:10: error: cannot find symbol
					args[j] = temp;
					^
  symbol:   variable args
  location: class Main
Main.java:16: error: cannot find symbol
			System.out.println(args[i]+"\n");
			                   ^
  symbol:   variable args
  location: class Main
7 errors
Language: Java

class Main{
    public static void main(String[] args){
        int arr[] = new int[10];
		if(args.length == 0) {
			BufferedReader br = new BufferedReader(new    InputStreamReader(System.in));
	         
	        for(int i=0;i<10;i++){
	            arr[i] = Integer.parseInt(br.readLine());
	        }
	         
	        Arrays.sort(arr);
	         
	        for(int i=9;i > 6;i--){
	            System.out.println(arr[i]);
	        }
		}
		else {
		for(int i=0;i<10;i++) {
			for(int j=0;j<=i;j++) {
				int height1 = Integer.parseInt(args[i]);
				int height2 = Integer.parseInt(args[j]);
				if(height1>height2) {
					String temp = args[i];
					args[i] = args[j];
					args[j] = temp;
				}
			}
			
		}
		for(int i=0;i<3;i++)
			System.out.println(args[i]);
		}
    }
}

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

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

class Main{
    public static void main(String[] args){
        int arr[] = new int[10];
		if(args.length == 0) {
			BufferedReader br = new BufferedReader(new    InputStreamReader(System.in));
	         
	        for(int i=0;i<10;i++){
	            arr[i] = Integer.parseInt(br.readLine());
	        }
	         
	        Arrays.sort(arr);
	         
	        for(int i=9;i > 6;i--){
	            System.out.println(arr[i]);
	        }
		}
		else {
		for(int i=0;i<10;i++) {
			for(int j=0;j<=i;j++) {
				int height1 = Integer.parseInt(args[i]);
				int height2 = Integer.parseInt(args[j]);
				if(height1>height2) {
					String temp = args[i];
					args[i] = args[j];
					args[j] = temp;
				}
			}
			
		}
		for(int i=0;i<3;i++)
			System.out.println(args[i]);
		}
    }
}

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

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

class Main{
    public static void main(String[] args) throws IOException{
        int arr[] = new int[10];
		if(args.length == 0) {
			BufferedReader br = new BufferedReader(new    InputStreamReader(System.in));
	         
	        for(int i=0;i<10;i++){
	            arr[i] = Integer.parseInt(br.readLine());
	        }
	         
	        Arrays.sort(arr);
	         
	        for(int i=9;i > 6;i--){
	            System.out.println(arr[i]);
	        }
		}
		else {
		for(int i=0;i<10;i++) {
			for(int j=0;j<=i;j++) {
				int height1 = Integer.parseInt(args[i]);
				int height2 = Integer.parseInt(args[j]);
				if(height1>height2) {
					String temp = args[i];
					args[i] = args[j];
					args[j] = temp;
				}
			}
			
		}
		for(int i=0;i<3;i++)
			System.out.println(args[i]);
		}
    }
}

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.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
class Main{
    public static void main(String[] a){
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		List<Integer> iList = new ArrayList<Integer>();

		// ????????????
		for (int i = 0 ; i < 10; i++) {
			iList.add(Integer.valueOf(br.readLine()));
		}

		// ????????????????????????
		Collections.sort(iList);
		for (int i = iList.size() - 1; i > iList.size() - 4; i--) {
			System.out.println(iList.get(i));
		}
    }
}

Compiler output:
Main.java:13: error: unreported exception IOException; must be caught or declared to be thrown
			iList.add(Integer.valueOf(br.readLine()));
			                                     ^
1 error
Language: Java

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

Compiler output:
Main.java:6: error: incompatible types: BufferedReader cannot be converted to BufferedReader[]
    	BufferedReader[] br=new BufferedReader(new InputStreamReader(System.in));
    	                    ^
Main.java:10: error: int cannot be dereferenced
    		mountains[i].Integer.parseInt(readLine(br));
    		            ^
Main.java:10: error: cannot find symbol
    		mountains[i].Integer.parseInt(readLine(br));
    		                              ^
  symbol:   method readLine(BufferedReader[])
  location: class Main
Main.java:12: error: cannot find symbol
    	Arrays.sort(str);
    	            ^
  symbol:   variable str
  location: class Main
Main.java:14: error: cannot find symbol
			System.out.println(str[i]);
			                   ^
  symbol:   variable str
  location: class Main
5 errors
Language: Java

class Main {
    public static void main(String[] args) {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String str;
        ArrayList<Integer> al = new ArrayList<Integer>();
        try {
            while((str = br.readLine()) != null) {
                al.add( Integer.parseInt(str) );
            }
        } catch (NumberFormatException e) {
            e.printStackTrace();
        } catch (IOException e) {
            e.printStackTrace();
        }
        Collections.sort(al);
        Collections.reverse(al);
        for(int i=0; i<3; i++) {
            System.out.println(al.get(i));
        }
    }
}

Compiler output:
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:5: error: cannot find symbol
        ArrayList<Integer> al = new ArrayList<Integer>();
        ^
  symbol:   class ArrayList
  location: class Main
Main.java:5: error: cannot find symbol
        ArrayList<Integer> al = new ArrayList<Integer>();
                                    ^
  symbol:   class ArrayList
  location: class Main
Main.java:12: error: cannot find symbol
        } catch (IOException e) {
                 ^
  symbol:   class IOException
  location: class Main
Main.java:15: error: cannot find symbol
        Collections.sort(al);
        ^
  symbol:   variable Collections
  location: class Main
Main.java:16: error: cannot find symbol
        Collections.reverse(al);
        ^
  symbol:   variable Collections
  location: class Main
8 errors
Language: Java

pakage mountain;
import java.util.ArrayList;

class mountain {

	public static void main(int[] args) {
		 ArrayList<Integer> array = new ArrayList<Integer>();

		 array.add(1819);
         array.add(2003);
         array.add(876);
         array.add(2840);
         array.add(1723);
         array.add(1673);
         array.add(3776);
         array.add(2848);
         array.add(1592);
         array.add(922);



	}
}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
pakage mountain;
^
  (use --enable-preview to enable unnamed classes)
Main.java:2: error: class, interface, enum, or record expected
import java.util.ArrayList;
^
2 errors
Language: Java

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

class mountain {

	public static void main(int[] args) {
		Scanner scan = new Scanner(System.in);
 
		
		ArrayList<Integer> mountain = new ArrayList<Integer>();
		

	/*	 array.add(1819);
         array.add(2003);
         array.add(876);
         array.add(2840);
         array.add(1723);
         array.add(1673);
         array.add(3776);
         array.add(2848);
         array.add(1592);
         array.add(922);
*/

     Collections.sort(mountain);
     Collections.reverse(mountain);
     
     for(int i =0; i <  3; i++);
     System.out.println(mountain.get(i));
    		 
             }
	}

Compiler output:
Main.java:31: error: cannot find symbol
     System.out.println(mountain.get(i));
                                     ^
  symbol:   variable i
  location: class mountain
1 error
Language: Java

package mountain;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;

public class moutain {

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

		ArrayList<Integer> array = new ArrayList<Integer>();


	   int [] a = new int [10];

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

		 BufferedReader reader =
			new BufferedReader(new InputStreamReader(System.in));
			   int j =  Integer.parseInt(reader.readLine());


		   a[n] =  j;
		   array.add( a[n] );
	   }



		Collections.sort(array);
		Collections.reverse(array);

	     for(int i =0; i <  3; i++){
			System.out.println(array.get(i));

		}
	}

}

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


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

public class moutain {

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

		ArrayList<Integer> array = new ArrayList<Integer>();


	   int [] a = new int [10];

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

		 BufferedReader reader =
			new BufferedReader(new InputStreamReader(System.in));
			   int j =  Integer.parseInt(reader.readLine());


		   a[n] =  j;
		   array.add( a[n] );
	   }



		Collections.sort(array);
		Collections.reverse(array);

	     for(int i =0; i <  3; i++){
			System.out.println(array.get(i));

		}
	}

}

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

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

public class moutain {

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

		ArrayList<Integer> array = new ArrayList<Integer>();


	   int [] a = new int [10];

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

		 BufferedReader reader =
			new BufferedReader(new InputStreamReader(System.in));
			   int j =  Integer.parseInt(reader.readLine());


		   a[n] =  j;
		   array.add( a[n] );
	   }



		Collections.sort(array);
		Collections.reverse(array);

	     for(int i =0; i <  3; i++){
			System.out.println(array.get(i));

		}
	}

}

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

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

public class 0001 {

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

		ArrayList<Integer> array = new ArrayList<Integer>();


	   int [] a = new int [10];

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

		 BufferedReader reader =
			new BufferedReader(new InputStreamReader(System.in));
			   int j =  Integer.parseInt(reader.readLine());


		   a[n] =  j;
		   array.add( a[n] );
	   }



		Collections.sort(array);
		Collections.reverse(array);

	     for(int i =0; i <  3; i++){
			System.out.println(array.get(i));

		}
	}

}

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

public class Main {
	public static void main(String[] a) throws NumberFormatException, IOException{

		int arr[] = new int [10];
		BufferedReader read = new BufferedReader(new InputStreamReader(System.in));
		for( int i=1; i<10; i++){

		 arr[i] = Integer.parseInt(read.readLine());

		}

		 Arrays.sort(arr);

		 for(int i = 9; i>6; i--){

			 System.out.println(arr[i]);

	}

}
}

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

import java.io.*;

class Main{
public static void main(String a[])
class MyList{
		public MyList(){};
		int X[];
		
		void add(int a,int i){
			this.X[i]=a;
		}
	}
{
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
MyList my=new MyList();
for(int i=0;i<10;i++){
int x=new int(in.readLine());
if(0>x||x>10000){
while(0>x||x>10000){
x=new int(in.readLine());
}
my.add(x,i);
}
Bubble_Sort(my.X,10)
for(int i=0;i<3;i++){
System.out.println(my.X[i]);
}

}


public static void Bubble_Sort(int num[],int x){
		int i,j;	//??????????¨???¶??¨?????°
		int changenum;
		for(i=0;i<x-1;i++){
			for(j=x-1;j>i;j--){
				if(num[j-1]>num[j]){
					changenum=num[j];
					num[j]=num[j-1];
					num[j-1]=changenum;
				}
			}
		}
	}

Compiler output:
Main.java:4: error: ';' expected
public static void main(String a[])
                                   ^
Main.java:17: error: '[' expected
int x=new int(in.readLine());
             ^
Main.java:17: error: ']' expected
int x=new int(in.readLine());
                            ^
Main.java:20: error: '[' expected
x=new int(in.readLine());
         ^
Main.java:20: error: ']' expected
x=new int(in.readLine());
                        ^
Main.java:24: error: ';' expected
Bubble_Sort(my.X,10)
                    ^
Main.java:32: error: illegal start of expression
public static void Bubble_Sort(int num[],int x){
^
Main.java:44: error: reached end of file while parsing
	}
	 ^
8 errors
Language: Java

import java.io.*;

class Main{
public static void main(String a[])
class MyList{
		public MyList(){};
		int X[];
		
		void add(int a,int i){
			this.X[i]=a;
		}
	}
{
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
MyList my=new MyList();
for(int i=0;i<10;i++){
int x;
String a=new int(in.readLine());
try{
x=Integer.parseInt(a);
}catch(NumberFormatException e){
}

if(0>x||x>10000){
while(0>x||x>10000){
x=new int(in.readLine());
}
my.add(x,i);
}
Bubble_Sort(my.X,10)
for(int i=0;i<3;i++){
System.out.println(my.X[i]);
}

}


public static void Bubble_Sort(int num[],int x){
		int i,j;	//??????????¨???¶??¨?????°
		int changenum;
		for(i=0;i<x-1;i++){
			for(j=x-1;j>i;j--){
				if(num[j-1]>num[j]){
					changenum=num[j];
					num[j]=num[j-1];
					num[j-1]=changenum;
				}
			}
		}
	}

Compiler output:
Main.java:4: error: ';' expected
public static void main(String a[])
                                   ^
Main.java:18: error: '[' expected
String a=new int(in.readLine());
                ^
Main.java:18: error: ']' expected
String a=new int(in.readLine());
                               ^
Main.java:26: error: '[' expected
x=new int(in.readLine());
         ^
Main.java:26: error: ']' expected
x=new int(in.readLine());
                        ^
Main.java:30: error: ';' expected
Bubble_Sort(my.X,10)
                    ^
Main.java:38: error: illegal start of expression
public static void Bubble_Sort(int num[],int x){
^
Main.java:50: error: reached end of file while parsing
	}
	 ^
8 errors
Language: Java

import java.io.*;

class Main{
public static void main(String a[])
class MyList{
		public MyList(){};
		int X[];
		
		void add(int a,int i){
			this.X[i]=a;
		}
	}
{
BufferedReader in=new BufferedReader(new InputStreamReader(System.in));
MyList my=new MyList();
for(int i=0;i<10;i++){
int x;
String a=new String(in.readLine());
try{
x=Integer.parseInt(a);
}catch(NumberFormatException e){
}

if(0>x||x>10000){
while(0>x||x>10000){
a=new String(in.readLine());
try{
x=Integer.parseInt(a);
}catch(NumberFormatException e){
}
}
my.add(x,i);
}
Bubble_Sort(my.X,10)
for(int i=0;i<3;i++){
System.out.println(my.X[i]);
}

}


public static void Bubble_Sort(int num[],int x){
		int i,j;	//??????????¨???¶??¨?????°
		int changenum;
		for(i=0;i<x-1;i++){
			for(j=x-1;j>i;j--){
				if(num[j-1]>num[j]){
					changenum=num[j];
					num[j]=num[j-1];
					num[j-1]=changenum;
				}
			}
		}
	}

Compiler output:
Main.java:4: error: ';' expected
public static void main(String a[])
                                   ^
Main.java:34: error: ';' expected
Bubble_Sort(my.X,10)
                    ^
Main.java:42: error: illegal start of expression
public static void Bubble_Sort(int num[],int x){
^
Main.java:54: error: reached end of file while parsing
	}
	 ^
4 errors
Language: Java

import Data.List

main = do
    getContents >>= putStr . solve

solve :: String -> String
solve = unlines . map show . take 3 . reverse . sort . map (\x -> read x :: Int) . lines

Compiler output:
Main.java:1: error: ';' expected
import Data.List
                ^
Main.java:7: error: illegal character: '\'
solve = unlines . map show . take 3 . reverse . sort . map (\x -> read x :: Int) . lines
                                                            ^
2 errors
Language: Java

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

class Main {
    public static void main(String[] args) throws NumberFormatException, IOException {
        ArrayList<Integer> input = new ArrayList<Integer>();
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        for(int i=0; i<10; i++)  input.add(Integer.parseInt(br.readLine()));
        Arrays.sort(input, Collections.reverseOrder());
        for(int i=0; i<input.size(); i++) System.out.println(input.get(i));
    }
}

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

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

class Main {
    public static void main(String[] args) throws NumberFormatException, IOException {
        ArrayList<Integer> input = new ArrayList<Integer>();
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        for(int i=0; i<10; i++)  input.add(Integer.parseInt(br.readLine()));
        Arrays.sort(input, Collections.reverseOrder());
        for(int i=0; i<input.size(); i++) System.out.println(input.get(i));
    }
}

Compiler output:
Main.java:13: error: no suitable method found for sort(ArrayList<Integer>,Comparator<Object>)
        Arrays.sort(input, Collections.reverseOrder());
              ^
    method Arrays.<T#1>sort(T#1[],Comparator<? super T#1>) is not applicable
      (cannot infer type-variable(s) T#1
        (argument mismatch; ArrayList<Integer> cannot be converted to T#1[]))
    method Arrays.<T#2>sort(T#2[],int,int,Comparator<? super T#2>) is not applicable
      (cannot infer type-variable(s) T#2
        (actual and formal argument lists differ in length))
  where T#1,T#2 are type-variables:
    T#1 extends Object declared in method <T#1>sort(T#1[],Comparator<? super T#1>)
    T#2 extends Object declared in method <T#2>sort(T#2[],int,int,Comparator<? super T#2>)
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
1 error
Language: Java

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = Integer.parseInt(sc.next());
        System.out.println(n);
    }
}

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

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

public class Main {
  public static void main(String args[] ) throws IOException {
    BufferedReader br;
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      int[] list = new int [10];
      for (int i = 0; i < 10; i++) {
        String s = br.readLine();
        int n = Integer.parseInt(s);
        list[i] = n;
      }
      Arrays.sort(list);

      System.out.println(list[list.length-1]);
      System.out.println(list[list.length-2]);
      System.out.println(list[list.length-3]);
      br.close();
  }
}

Compiler output:
Main.java:9: error: variable br is already defined in method main(String[])
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                     ^
1 error
Language: Java

public class ListOfTop3Hills {
	public static void main(String[] args) {
		int[] Hills = { 1819, 2003, 876, 2840, 1723, 1673, 3776, 2848, 1592,
				922 };
		int no1 = 0;
		int no2 = 0;
		int no3 = 0;

		for (int i = 0; i < Hills.length; i++) {
			if ((0 < Hills[i]) & (Hills[i] < 10000)) {
				if (no1 < Hills[i]) {
					no3 = no2;
					no2 = no1;
					no1 = Hills[i];
				} else if (no2 < Hills[i]) {
					no3 = no2;
					no2 = Hills[i];
				} else if (no3 < Hills[i]) {
					no3 = Hills[i];
				}
			}
		}

		System.out.println(no1);
		System.out.println(no2);
		System.out.println(no3);
	}
}

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

ublic class Main{
	public static void main(String[] args) {
		int[] Hills = { 1819, 2003, 876, 2840, 1723, 1673, 3776, 2848, 1592,
				922 };
		int no1 = 0;
		int no2 = 0;
		int no3 = 0;

		for (int i = 0; i < Hills.length; i++) {
			if ((0 < Hills[i]) & (Hills[i] < 10000)) {
				if (no1 < Hills[i]) {
					no3 = no2;
					no2 = no1;
					no1 = Hills[i];
				} else if (no2 < Hills[i]) {
					no3 = no2;
					no2 = Hills[i];
				} else if (no3 < Hills[i]) {
					no3 = Hills[i];
				}
			}
		}

		System.out.println(no1);
		System.out.println(no2);
		System.out.println(no3);
	}
}

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

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

public class ListOfTop3Hills {
	public static void main(String[] args) throws Exception {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		int[] Hills = new int[10];
		for(int i=0;i<Hills.length;i++){
			Hills[i] = br.read();
		}
		int no1=0;
		int no2=0;
		int no3=0;
		
		for (int i = 0; i < Hills.length; i++) {
			if ((0 < Hills[i]) & (Hills[i] < 10000)) {
				if (no1 < Hills[i]) {
					no3 = no2;
					no2 = no1;
					no1 = Hills[i];
				} else if (no2 < Hills[i]) {
					no3 = no2;
					no2 = Hills[i];
				} else if (no3 < Hills[i]) {
					no3 = Hills[i];
				}
			}
		}

		System.out.println(no1);
		System.out.println(no2);
		System.out.println(no3);
	}
}

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

package volume0;

import java.util.Scanner;


public class ListofTop3Hills {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] in = new int[10];
		for(int i=0;i<10;i++){
			in[i] = sc.nextInt();
		}
		int big[] = {in[0],in[1],in[2]};
		
		for(int i =0;i<10;i++){
			if(big[0] < in[i]){
				big[2] = big[1];
				big[1] = big[0];
				big[0] = big[i];
			}
			else if(big[1] < in[i]){
				big[2] = big[1];
				big[1] = big[i];
			}
			else if(big[2] < in[i]){
				big[2] = big[i];
			}
		}
		
		for(int i=0;i<3;i++){
			System.out.println(big[i]);
		}
	}

}

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

Scanner scan = new Scanner(System.in);

			int[] height = new int[10];
			for (int i = 0; i < 10; i++) {
					height[i] = scan.nextInt();
			}

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

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
Scanner scan = new Scanner(System.in);
^
  (use --enable-preview to enable unnamed classes)
Main.java:4: error: class, interface, enum, or record expected
			for (int i = 0; i < 10; i++) {
			^
Main.java:4: error: class, interface, enum, or record expected
			for (int i = 0; i < 10; i++) {
			                ^
Main.java:4: error: class, interface, enum, or record expected
			for (int i = 0; i < 10; i++) {
			                        ^
Main.java:6: error: class, interface, enum, or record expected
			}
			^
Main.java:10: error: class, interface, enum, or record expected
			for(int i=9;i>6;i--){
			^
Main.java:10: error: class, interface, enum, or record expected
			for(int i=9;i>6;i--){
			            ^
Main.java:10: error: class, interface, enum, or record expected
			for(int i=9;i>6;i--){
			                ^
Main.java:12: error: class, interface, enum, or record expected
			}
			^
9 errors
Language: Java

import java.io.*;
class Main(){
	public static int height[10];
	public static void liner(){
		for(int i=0;i<=9;i++){
		for(int j=i+1;j<=9;j++){
			if(height[i]<=height[j]){
				num=height[i];
				height[i]=height[j];
				height[j]=num;
			}
		}
	}
	for(int i=0;i<=2;i++)
		System.out.println(height[i]);
	}

	public static void main(String[] a) throws IOException{
		BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
		for(int i=0;i<=9;i++){
			height[i]=new int(in.readLine());
		}
				
		liner();
	}

Compiler output:
Main.java:2: error: '{' expected
class Main(){
          ^
Main.java:3: error: ']' expected
	public static int height[10];
	                         ^
Main.java:21: error: '[' expected
			height[i]=new int(in.readLine());
			                 ^
Main.java:21: error: ']' expected
			height[i]=new int(in.readLine());
			                                ^
Main.java:25: error: reached end of file while parsing
	}
	 ^
5 errors
Language: Java

import java.io.*;
class Main(){
	public static int height[10];
	public static void liner(){
		for(int i=0;i<=9;i++){
		for(int j=i+1;j<=9;j++){
			if(height[i]<=height[j]){
				num=height[i];
				height[i]=height[j];
				height[j]=num;
			}
		}
	}
	for(int i=0;i<=2;i++)
		System.out.println(height[i]);
	}

	public static void main(String[] a) throws IOException{
		BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
		for(int i=0;i<=9;i++){
			height[i]=new int(in.readLine());
		}
				
		liner();
	}
}

Compiler output:
Main.java:2: error: '{' expected
class Main(){
          ^
Main.java:3: error: ']' expected
	public static int height[10];
	                         ^
Main.java:21: error: '[' expected
			height[i]=new int(in.readLine());
			                 ^
Main.java:21: error: ']' expected
			height[i]=new int(in.readLine());
			                                ^
4 errors
Language: Java

import java.io.*;
class Main(){
	static int height[10];
	public static void liner(){
		for(int i=0;i<=9;i++){
			for(int j=i+1;j<=9;j++){
				if(height[i]<=height[j]){
					num=height[i];
					height[i]=height[j];
					height[j]=num;
				}
			}
		}
		for(int i=0;i<=2;i++)
			System.out.println(height[i]);
	}

	public static void main(String[] a) throws IOException{
		BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
		for(int i=0;i<=9;i++){
			height[i]=new int(in.readLine());
		}
				
		liner();
	}
}

Compiler output:
Main.java:2: error: '{' expected
class Main(){
          ^
Main.java:3: error: ']' expected
	static int height[10];
	                  ^
Main.java:21: error: '[' expected
			height[i]=new int(in.readLine());
			                 ^
Main.java:21: error: ']' expected
			height[i]=new int(in.readLine());
			                                ^
4 errors
Language: Java

import java.io.*;
class Main(){
	int height[10];
	public static void liner(){
		for(int i=0;i<=9;i++){
			for(int j=i+1;j<=9;j++){
				if(height[i]<=height[j]){
					num=height[i];
					height[i]=height[j];
					height[j]=num;
				}
			}
		}
		for(int i=0;i<=2;i++)
			System.out.println(height[i]);
	}

	public static void main(String[] a) throws IOException{
		BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
		for(int i=0;i<=9;i++){
			height[i]=new int(in.readLine());
		}
				
		liner();
	}
}

Compiler output:
Main.java:2: error: '{' expected
class Main(){
          ^
Main.java:3: error: ']' expected
	int height[10];
	           ^
Main.java:21: error: '[' expected
			height[i]=new int(in.readLine());
			                 ^
Main.java:21: error: ']' expected
			height[i]=new int(in.readLine());
			                                ^
4 errors
Language: Java

import java.io.*;
class Main(){
	public static int height[]=new int[10];
	public static void liner(){
		for(int i=0;i<=9;i++){
			for(int j=i+1;j<=9;j++){
				if(height[i]<=height[j]){
					num=height[i];
					height[i]=height[j];
					height[j]=num;
				}
			}
		}
		for(int i=0;i<=2;i++)
			System.out.println(height[i]);
	}

	public static void main(String[] a) throws IOException{
		BufferedReader in =new BufferedReader(new InputStreamReader(System.in));
		for(int i=0;i<=9;i++){
			height[i]=new int(in.readLine());
		}
				
		liner();
	}
}

Compiler output:
Main.java:2: error: '{' expected
class Main(){
          ^
Main.java:21: error: '[' expected
			height[i]=new int(in.readLine());
			                 ^
Main.java:21: error: ']' expected
			height[i]=new int(in.readLine());
			                                ^
3 errors