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

import java.util.Scanner;
 
class Main{
    public static void main(String[] args){
        Scanner stdIn = new Scanner(Systm.in);
 
        int i;
        int[] height = new int[10];
        int[] h = new int[]{0, 0, 0};
        for(i = 0; i < 10; i++){
            height[i] = nextInt();
 
            if(h[0] <= height[i]){
                h[2] = h[1];
                h[1] = h[0];
                h[0] = height[i];
            } else if(h[1] <= height[i]) {
                h[2] = h[1];
                h[1] = height[i];
            } else if(h[2] <= height[i])
                h[2] = height[i];
        }
 
        for(int j = 0; j < 3; j++)
            System.out.println(h[j]);
    }
}

Compiler output:
Main.java:5: error: cannot find symbol
        Scanner stdIn = new Scanner(Systm.in);
                                    ^
  symbol:   variable Systm
  location: class Main
Main.java:11: error: cannot find symbol
            height[i] = nextInt();
                        ^
  symbol:   method nextInt()
  location: class Main
2 errors
Language: Java

import java.util.Scanner;
  
class Main{
    public static void main(String[] args){
        Scanner stdIn = new Scanner(System.in);
  
        int i;
        int[] height = new int[10];
        int[] h = new int[]{0, 0, 0};
        for(i = 0; i < 10; i++){
            height[i] = nextInt();
  
            if(h[0] <= height[i]){
                h[2] = h[1];
                h[1] = h[0];
                h[0] = height[i];
            } else if(h[1] <= height[i]) {
                h[2] = h[1];
                h[1] = height[i];
            } else if(h[2] <= height[i])
                h[2] = height[i];
        }
  
        for(int j = 0; j < 3; j++)
            System.out.println(h[j]);
    }
}

Compiler output:
Main.java:11: error: cannot find symbol
            height[i] = nextInt();
                        ^
  symbol:   method nextInt()
  location: class Main
1 error
Language: Java

import java.io.*;
class Main{
    public static void main(String[] a){
      int n = 10;
      int[] num = new int[n];

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

      quicksort(num, 0, n-1);

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

    }

    public static void quicksort(int[] num, int left, int right){
      if ( left < right ){
        int pivot_index = partition(num, left, right);
        quicksort(num, left, pivot_index-1);
        quicksort(num, pivot_index+1, right);
      }
    }

    public static int partition(int[] num, int left, int right){
      int k = (left + right) / 2;

      swap(num[k], num[right]);

      int i = left;
      int j = right;
      while( i < j ){
        while( num[i] < num[right] ){
           i++;
        }
        while( num[j] >= num[right] && j >= i ){
          j++;
        }
        if ( i < j ){
          swap(num[i], num[j]);
        }
      }
      swap(num[i], num[right]);
      return i;
    }

    public static void swap(int a, int b){
      int tmp;
      tmp = a;
      a = b;
      b = tmp;
    }
}

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

import java.util.*;
class Main{
    public static void main(String[] a){
      int n = 10;
      int[] num = new int[n];

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

      int flag = 1;
      while (flag){
        flag = 0;
        for ( int j = n-1; j >= 1; j-- ){
          if ( num[j] < num[j-1] ){
            int tmp = num[j];
            num[j] = num[j-1];
            num[j-1] = tmp;
            flag = 1;
          }
        }
      }

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

Compiler output:
Main.java:13: error: incompatible types: int cannot be converted to boolean
      while (flag){
             ^
1 error
Language: Java

import java.util.Scanner;

public class Hills {
	static Scanner scanner = new Scanner(System.in);
	static int Hillta[]= new int[10];

	public static void main(String args[]){
		for(int i=0; i <= 9; i++){
			Hillta[i] = S_content();
		}								//?±±????????????10????????\?????????
		judge();
	}

	public static int S_content(){
		int high = scanner.nextInt();
		return high;
	}

	public static void judge(){
		int rank1=0, rank2=0, rank3=0;
		rank1 = Hillta[0];
		for(int i=1; i <= 9; i++){
			//System.out.println("?????¨?????????:??????" + rank1+"??????"+ rank2 +"??????"+ rank3);
			if(Hillta[i] > rank3){
				if(Hillta[i] > rank2){
					if(Hillta[i] > rank1){
						rank3 = rank2;
						rank2 = rank1;
						rank1 = Hillta[i];

						//System.out.println("1??????"+rank1);
						continue;
					}
					rank3 = rank2;
					rank2 = Hillta[i];
					//System.out.println("2??????"+rank2);
					continue;
				}
				rank3 = Hillta[i];
				//System.out.println("3??????"+rank3);
				continue;
			}
		}
		System.out.println(rank1);
		System.out.println(rank2);
		System.out.println(rank3);

	}
}

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

import java.util.Scanner;

public class main {
	static Scanner scanner = new Scanner(System.in);
	static int Hillta[]= new int[10];

	public static void main(String args[]){
		for(int i=0; i <= 9; i++){
			Hillta[i] = S_content();
		}								//?±±????????????10????????\?????????
		judge();
	}

	public static int S_content(){
		int high = scanner.nextInt();
		return high;
	}

	public static void judge(){
		int rank1=0, rank2=0, rank3=0;
		rank1 = Hillta[0];
		for(int i=1; i <= 9; i++){
			//System.out.println("?????¨?????????:??????" + rank1+"??????"+ rank2 +"??????"+ rank3);
			if(Hillta[i] > rank3){
				if(Hillta[i] > rank2){
					if(Hillta[i] > rank1){
						rank3 = rank2;
						rank2 = rank1;
						rank1 = Hillta[i];

						//System.out.println("1??????"+rank1);
						continue;
					}
					rank3 = rank2;
					rank2 = Hillta[i];
					//System.out.println("2??????"+rank2);
					continue;
				}
				rank3 = Hillta[i];
				//System.out.println("3??????"+rank3);
				continue;
			}
		}
		System.out.println(rank1);
		System.out.println(rank2);
		System.out.println(rank3);

	}
}

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

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

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

/* Name of the class has to be "Main" only if the class is public. */
class Main{
	public static void main (String[] args) throws Exception{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		ArrayList list = new ArrayList();
		String line;
		while(line = (br.readLine()) != null){
			list.add(line);
		}
		Collections.sort(list);
		Collections.reverse(list);
		
		System.out.println(list.get(0));
		System.out.println(list.get(1));
		System.out.println(list.get(2));
	}
}

Compiler output:
Main.java:13: error: incompatible types: boolean cannot be converted to String
		while(line = (br.readLine()) != null){
		                             ^
Main.java:13: error: incompatible types: String cannot be converted to boolean
		while(line = (br.readLine()) != null){
		           ^
Note: Main.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 errors
Language: Java

package question01;

import java.util.Scanner;
public class Question01 {

	public static void main(String[] args) {

		Scanner stdin = new Scanner(System.in);

		int[] x = new int[10];

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

			System.out.print("Mountain" + i+1 + " > ");
			x[i] = stdin.nextInt();

		}

		int n = 0;
		n = 10;
		int buble =n*(n-1)/2;
		for(int i = 0; i < buble; i++){

		    for(int j = 0; j < n - 1; j++){

		    	if(x[j] < x[j + 1]) {

		    		int temp = x[j];
		    		x[j] = x[j + 1];
		    		x[j + 1] = temp;

		    	}

		    }

	   }

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

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

		}

	}


}

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

import java.util.Arrays;

public class Vol_0_001 {

    public static void main(String[] args) {

        int[] mountArray = {100, 200, 900, 400, 500, 600, 700, 800, 900, 300};

        Arrays.sort(mountArray);

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

    }

}

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

import java.util.Arrays;

public class main {

    public static void main(String[] args) {

        int[] mountArray = {100, 200, 900, 400, 500, 600, 700, 800, 900, 300};

        Arrays.sort(mountArray);

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

    }

}

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

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

public class Mountains {

	public static void main(String[] args) {

		@SuppressWarnings("resource")
		Scanner sc = new Scanner(System.in);

		int num1 = sc.nextInt();
		int num2 = sc.nextInt();
		int num3 = sc.nextInt();
		int num4 = sc.nextInt();
		int num5 = sc.nextInt();
		int num6 = sc.nextInt();
		int num7 = sc.nextInt();
		int num8 = sc.nextInt();
		int num9 = sc.nextInt();
		int num10 = sc.nextInt();

		checkNum(num1);
		checkNum(num2);
		checkNum(num3);
		checkNum(num4);
		checkNum(num5);
		checkNum(num6);
		checkNum(num7);
		checkNum(num8);
		checkNum(num9);
		checkNum(num10);

		List<Integer> list = new ArrayList<Integer>();

		list.add(num1);
		list.add(num2);
		list.add(num3);
		list.add(num4);
		list.add(num5);
		list.add(num6);
		list.add(num7);
		list.add(num8);
		list.add(num9);
		list.add(num10);

		Collections.reverse(list);

		for(int cnt = 0; cnt < 3; cnt++){

			System.out.println(list.get(cnt));
		}


	}

	public static void checkNum(int x){

		if(x < 0 || 10000 < x){

			throw new IllegalArgumentException("out of range");

		}
	}

}

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

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

public class Mountains {
	static Scanner sc = new Scanner(System.in);

	public static void main(String[] args) {

		//@SuppressWarnings("resource")
	

		int num1 = sc.nextInt();
		int num2 = sc.nextInt();
		int num3 = sc.nextInt();
		int num4 = sc.nextInt();
		int num5 = sc.nextInt();
		int num6 = sc.nextInt();
		int num7 = sc.nextInt();
		int num8 = sc.nextInt();
		int num9 = sc.nextInt();
		int num10 = sc.nextInt();

		checkNum(num1);
		checkNum(num2);
		checkNum(num3);
		checkNum(num4);
		checkNum(num5);
		checkNum(num6);
		checkNum(num7);
		checkNum(num8);
		checkNum(num9);
		checkNum(num10);

		List<Integer> list = new ArrayList<Integer>();

		list.add(num1);
		list.add(num2);
		list.add(num3);
		list.add(num4);
		list.add(num5);
		list.add(num6);
		list.add(num7);
		list.add(num8);
		list.add(num9);
		list.add(num10);

		Collections.reverse(list);

		for(int cnt = 0; cnt < 3; cnt++){

			System.out.println(list.get(cnt));
		}


	}

	public static void checkNum(int x){

		if(x < 0 || 10000 < x){

			throw new IllegalArgumentException("out of range");

		}
	}

}

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

public class Main {

	public static void main(String[] args) {
		// TODO ?????????????????????????????????????????????
		int[] arg =new int[10];
		for(int i=0;i<10;i++){
			InputStreamReader isr = new InputStreamReader(System.in);
			BufferedReader br = new BufferedReader(isr);
			String buf = null;
			try {
				buf = br.readLine();
			} catch (IOException e) {
				// TODO ????????????????????? catch ????????????
				e.printStackTrace();
			}
			arg[i] = Integer.parseInt(buf);
		}
		int[] store=new int[3];
		for(int i=0;i<10;i++){
			int s=arg[i];
			for(int j=0;j<3;j++){
				if(s>store[j]){
					if(j==0){
						store[j+2]=store[j+1];
						store[j+1]=store[j];
						store[j]=s;
						break;
					}else if(j==1){
						store[j+1]=store[j];
						store[j]=s;
						break;
					}else{
						store[j]=s;
					}
				}
			}
		}
		for(int i=0;i<store.length;i++){
			System.out.println(store[i]);
		}
	}

}

Compiler output:
Main.java:7: error: cannot find symbol
			InputStreamReader isr = new InputStreamReader(System.in);
			^
  symbol:   class InputStreamReader
  location: class Main
Main.java:7: error: cannot find symbol
			InputStreamReader isr = new InputStreamReader(System.in);
			                            ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:8: error: cannot find symbol
			BufferedReader br = new BufferedReader(isr);
			^
  symbol:   class BufferedReader
  location: class Main
Main.java:8: error: cannot find symbol
			BufferedReader br = new BufferedReader(isr);
			                        ^
  symbol:   class BufferedReader
  location: class Main
Main.java:12: error: cannot find symbol
			} catch (IOException e) {
			         ^
  symbol:   class IOException
  location: class Main
5 errors
Language: Java

public class Main() {

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

		int afterData, beforeIndex;
		
		for(int i = 1; i < 10; i++) {
			afterData = data[i];
			beforeIndex = i - 1;
			
			while (beforeIndex >= 0 && data[beforeIndex] > afterData) {
				data[beforeIndex + 1] = data[beforeIndex];
				beforeIndex--;
			}

			data[beforeIndex + 1] = afterData;			
		}
	
		System.out.println(data[9]);
		System.out.println(data[8]);		
		System.out.println(data[7]);

		scan.close();
	}

}

Compiler output:
Main.java:1: error: '{' expected
public class Main() {
                 ^
1 error
Language: Java

class Main() {

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

		int afterData, beforeIndex;
		
		for(int i = 1; i < 10; i++) {
			afterData = data[i];
			beforeIndex = i - 1;
			
			while (beforeIndex >= 0 && data[beforeIndex] > afterData) {
				data[beforeIndex + 1] = data[beforeIndex];
				beforeIndex--;
			}

			data[beforeIndex + 1] = afterData;			
		}
	
		System.out.println(data[9]);
		System.out.println(data[8]);		
		System.out.println(data[7]);

		scan.close();
	}

}

Compiler output:
Main.java:1: error: '{' expected
class Main() {
          ^
1 error
Language: Java

class Main {

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

		int afterData, beforeIndex;
		
		for(int i = 1; i < 10; i++) {
			afterData = data[i];
			beforeIndex = i - 1;
			
			while (beforeIndex >= 0 && data[beforeIndex] > afterData) {
				data[beforeIndex + 1] = data[beforeIndex];
				beforeIndex--;
			}

			data[beforeIndex + 1] = afterData;			
		}
	
		System.out.println(data[9]);
		System.out.println(data[8]);		
		System.out.println(data[7]);

		scan.close();
	}

}

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

import java.util.Scanner;

class Main {

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

		int afterData, beforeIndex;
		
		for(int i = 1; i < 10; i++) {
			afterData = data[i];
			beforeIndex = i - 1;
			
			while (beforeIndex >= 0 && data[beforeIndex] > afterData) {
				data[beforeIndex + 1] = data[beforeIndex];
				beforeIndex--;
			}

			data[beforeIndex + 1] = afterData;			
		}
	
		System.out.println(data[9]);
		System.out.println(data[8]);		
		System.out.println(data[7]);

		scan.close();
	}

}
class Main {

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

		int afterData, beforeIndex;
		
		for(int i = 1; i < 10; i++) {
			afterData = data[i];
			beforeIndex = i - 1;
			
			while (beforeIndex >= 0 && data[beforeIndex] > afterData) {
				data[beforeIndex + 1] = data[beforeIndex];
				beforeIndex--;
			}

			data[beforeIndex + 1] = afterData;			
		}
	
		System.out.println(data[9]);
		System.out.println(data[8]);		
		System.out.println(data[7]);

		scan.close();
	}

}

Compiler output:
Main.java:34: error: duplicate class: Main
class Main {
^
1 error
Language: Java

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

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

		int[] hillsHight = Arrays.stream(args).mapToInt(Integer::parseInt).toArray();

		List<Integer> hillsHightList = new ArrayList<>();
		for (int i = 0; i < hillsHight.length; i++) {
			hillsHightList.add(Integer.valueOf(hillsHight[i]));
		}

		Collections.sort(hillsHightList, Comparator.reverseOrder());

		System.out.println(hillsHightList.get(0));
		System.out.println(hillsHightList.get(1));
		System.out.println(hillsHightList.get(2));
	}
}

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

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;

public class ListOfTop3Hills {
	public static int main(String[] args) {

		int[] hillsHight = Arrays.stream(args).mapToInt(Integer::parseInt).toArray();

		List<Integer> hillsHightList = new ArrayList<>();
		for (int i = 0; i < hillsHight.length; i++) {
			hillsHightList.add(Integer.valueOf(hillsHight[i]));
		}

		Collections.sort(hillsHightList, Comparator.reverseOrder());

		System.out.println(hillsHightList.get(0));
		System.out.println(hillsHightList.get(1));
		System.out.println(hillsHightList.get(2));

		return 0;
	}
}

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

import static java.util.Comparator.reverseOrder;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;

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

		List<Integer> hillsHightList = new ArrayList<>();
		for (int i = 0; i < args.length; i++) {
			hillsHightList.add(Integer.valueOf(args[i]));
		}

		Collections.sort(hillsHightList, reverseOrder());

		System.out.println(hillsHightList.get(0));
		System.out.println(hillsHightList.get(1));
		System.out.println(hillsHightList.get(2));

		System.exit(0);
	}
}

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

import java.util.Scanner;
public class Main {
  public static void main(String[] args) {
  int c[] = new int[10];
  Scanner sc = new Scanner(System.in);
  for(int i = 1; i <= 10; i++) {
  c[i] = sc.nextInt();
  }
  int tmp;
  for(int j = 1; j <= 10; j++)
  {
     for(int k = 1; k <= 10; k++)
     { 
     if(c[i]>c[i+1]) {
         tmp = c[i];
         c[i] = c[i+1];
         c[i+1] = tmp;
      }
      }
   }
  System.out.println(c[10]+" "+c[9]+" "+c[8]);
  }
}



Comment in Markdown

Compiler output:
Main.java:27: error: class, interface, enum, or record expected
Comment in Markdown
^
1 error
Language: Java

import java.util.Scanner;
public class Main {
  public static void main(String[] args) {
  int c[] = new int[10];
  Scanner sc = new Scanner(System.in);
  for(int i = 1; i <= 10; i++) {
  c[i] = sc.nextInt();
  }
  int tmp;
  for(int j = 1; j <= 10; j++)
  {
     for(int k = 1; k <= 10; k++)
     { 
     if(c[i]>c[i+1]) {
         tmp = c[i];
         c[i] = c[i+1];
         c[i+1] = tmp;
      }
      }
   }
  System.out.println(c[10]+" "+c[9]+" "+c[8]);
  }
}

Compiler output:
Main.java:14: error: cannot find symbol
     if(c[i]>c[i+1]) {
          ^
  symbol:   variable i
  location: class Main
Main.java:14: error: cannot find symbol
     if(c[i]>c[i+1]) {
               ^
  symbol:   variable i
  location: class Main
Main.java:15: error: cannot find symbol
         tmp = c[i];
                 ^
  symbol:   variable i
  location: class Main
Main.java:16: error: cannot find symbol
         c[i] = c[i+1];
           ^
  symbol:   variable i
  location: class Main
Main.java:16: error: cannot find symbol
         c[i] = c[i+1];
                  ^
  symbol:   variable i
  location: class Main
Main.java:17: error: cannot find symbol
         c[i+1] = tmp;
           ^
  symbol:   variable i
  location: class Main
6 errors
Language: Java

import java.util.Arrays;
import java.util.Scanner;
public class Main {

   
		Scanner sc = new Scanner(System.in);
		int[] a = new int[10];

		for(int i = 0; i <= 10;i++){
			a[i]= sc.nextInt();
		}
		Arrays.sort(a);
		System.out.println(a[9]);
		System.out.println(a[8]);
		System.out.println(a[7]);
	}


}

Compiler output:
Main.java:9: error: illegal start of type
		for(int i = 0; i <= 10;i++){
		^
Main.java:9: error: <identifier> expected
		for(int i = 0; i <= 10;i++){
		                ^
Main.java:9: error: <identifier> expected
		for(int i = 0; i <= 10;i++){
		                        ^
Main.java:12: error: <identifier> expected
		Arrays.sort(a);
		           ^
Main.java:12: error: <identifier> expected
		Arrays.sort(a);
		             ^
Main.java:13: error: <identifier> expected
		System.out.println(a[9]);
		                  ^
Main.java:13: error: ']' expected
		System.out.println(a[9]);
		                     ^
Main.java:14: error: <identifier> expected
		System.out.println(a[8]);
		                  ^
Main.java:14: error: ']' expected
		System.out.println(a[8]);
		                     ^
Main.java:15: error: <identifier> expected
		System.out.println(a[7]);
		                  ^
Main.java:15: error: ']' expected
		System.out.println(a[7]);
		                     ^
Main.java:19: error: class, interface, enum, or record expected
}
^
12 errors
Language: Java


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import java.util.*;
public class Main {
    static Scanner sc = new Scanner(System.in);
    static int[] array;
    public static void main(String[] args) {
        read();
        solve();
    }
 
    static void read(){
        array = new int[10];
        for(int i = 0; i < 10; i++){
            array[i] = sc.nextInt();
        }
    }
 
    static void solve(){
        Arrays.sort(array);
        System.out.println(array[9]);
        System.out.println(array[8]);
        System.out.println(array[7]);
    }
 
}

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

public class Main{
    public static void main(String[] args){
    	int a;
    	int b;
    	int numa,numb,numc=0;
    	int digit[] = {0,0,0};
    	
    	for(int i=0;i<3;i++){
    		numa=a;
    		numb=b;
    		numc=numa+numb;
    		if(numc<10){
    			digit[i]=1;
    		} else if(numc<100){
    			digit[i]=2;
    		} else if(numc<1000){
    			digit[i]=3;
    		} else if(numc<10000){
    			digit[i]=4;
    		}
    	}
    	System.out.println(digit[0]);
    	System.out.println(digit[1]);
    	System.out.println(digit[2]);
    }
}

Compiler output:
Main.java:9: error: variable a might not have been initialized
    		numa=a;
    		     ^
Main.java:10: error: variable b might not have been initialized
    		numb=b;
    		     ^
2 errors
Language: Java

import java.util.*;
public class Main {
    static Scanner sc = new Scanner(System.in);
    static int a, b;
    public static void main(String[] args) {
        while(read()){
            slove();
        }
    }

    static boolean read(){
        if(!sc.hasNext())return false;
        a = sc.nextInt(); 
????????????b = sc.nextInt();
        return true;
    }

    static void slove(){
        int ans = Integer.toString(a+b).length();
        System.out.println(ans);
    }

}

Compiler output:
Main.java:14: error: illegal start of expression
????????????b = sc.nextInt();
^
Main.java:14: error: illegal start of expression
????????????b = sc.nextInt();
 ^
Main.java:14: error: illegal start of expression
????????????b = sc.nextInt();
  ^
Main.java:14: error: illegal start of expression
????????????b = sc.nextInt();
   ^
Main.java:14: error: illegal start of expression
????????????b = sc.nextInt();
    ^
Main.java:14: error: illegal start of expression
????????????b = sc.nextInt();
     ^
Main.java:14: error: illegal start of expression
????????????b = sc.nextInt();
      ^
Main.java:14: error: illegal start of expression
????????????b = sc.nextInt();
       ^
Main.java:14: error: illegal start of expression
????????????b = sc.nextInt();
        ^
Main.java:14: error: illegal start of expression
????????????b = sc.nextInt();
         ^
Main.java:14: error: illegal start of expression
????????????b = sc.nextInt();
          ^
Main.java:14: error: illegal start of expression
????????????b = sc.nextInt();
           ^
Main.java:14: error: : expected
????????????b = sc.nextInt();
                            ^
13 errors
Language: Java

import java.util.Scanner;


class Main{
    public static void main(String[] a){
		Scanner sc = new Scanner(System.in);
		int numone = 0;
		int nomtwo = 0;
		int numthree = 0;
		int x
		for (i=0; i<9; i++) {
			x = sc.netInt();
			if (numone < x) {
				numthree = numtwo;
				numtwo = numone;
				numone = x;
			} else if (numtwo < x) {
				numthree = numtwo;
				numtwo = x;
			}else if (numthree < x) {
				numthree = x;
			}
		}
		System.out.println(numone + "\n" + numtwo + "\n" + numthree);
	}
}

Compiler output:
Main.java:10: error: ';' expected
		int x
		     ^
1 error
Language: Java

import java.util.Scanner;


class Main{
    public static void main(String[] a){
		Scanner sc = new Scanner(System.in);
		int numone = 0;
		int nomtwo = 0;
		int numthree = 0;
		int x;
		for (i=0; i<9; i++) {
			x = sc.netInt();
			if (numone < x) {
				numthree = numtwo;
				numtwo = numone;
				numone = x;
			} else if (numtwo < x) {
				numthree = numtwo;
				numtwo = x;
			}else if (numthree < x) {
				numthree = x;
			}
		}
		System.out.println(numone + "\n" + numtwo + "\n" + numthree);
	}
}

Compiler output:
Main.java:11: error: cannot find symbol
		for (i=0; i<9; i++) {
		     ^
  symbol:   variable i
  location: class Main
Main.java:11: error: cannot find symbol
		for (i=0; i<9; i++) {
		          ^
  symbol:   variable i
  location: class Main
Main.java:11: error: cannot find symbol
		for (i=0; i<9; i++) {
		               ^
  symbol:   variable i
  location: class Main
Main.java:12: error: cannot find symbol
			x = sc.netInt();
			      ^
  symbol:   method netInt()
  location: variable sc of type Scanner
Main.java:14: error: cannot find symbol
				numthree = numtwo;
				           ^
  symbol:   variable numtwo
  location: class Main
Main.java:15: error: cannot find symbol
				numtwo = numone;
				^
  symbol:   variable numtwo
  location: class Main
Main.java:17: error: cannot find symbol
			} else if (numtwo < x) {
			           ^
  symbol:   variable numtwo
  location: class Main
Main.java:18: error: cannot find symbol
				numthree = numtwo;
				           ^
  symbol:   variable numtwo
  location: class Main
Main.java:19: error: cannot find symbol
				numtwo = x;
				^
  symbol:   variable numtwo
  location: class Main
Main.java:24: error: cannot find symbol
		System.out.println(numone + "\n" + numtwo + "\n" + numthree);
		                                   ^
  symbol:   variable numtwo
  location: class Main
10 errors
Language: Java

import java.util.Scanner;


class Main{
    public static void main(String[] a){
		Scanner sc = new Scanner(System.in);
		int numone = 0;
		int nomtwo = 0;
		int numthree = 0;
		int x;
		for (int i=0; i<9; i++) {
			x = sc.netInt();
			if (numone < x) {
				numthree = numtwo;
				numtwo = numone;
				numone = x;
			} else if (numtwo < x) {
				numthree = numtwo;
				numtwo = x;
			}else if (numthree < x) {
				numthree = x;
			}
		}
		System.out.println(numone + "\n" + numtwo + "\n" + numthree);
	}
}

Compiler output:
Main.java:12: error: cannot find symbol
			x = sc.netInt();
			      ^
  symbol:   method netInt()
  location: variable sc of type Scanner
Main.java:14: error: cannot find symbol
				numthree = numtwo;
				           ^
  symbol:   variable numtwo
  location: class Main
Main.java:15: error: cannot find symbol
				numtwo = numone;
				^
  symbol:   variable numtwo
  location: class Main
Main.java:17: error: cannot find symbol
			} else if (numtwo < x) {
			           ^
  symbol:   variable numtwo
  location: class Main
Main.java:18: error: cannot find symbol
				numthree = numtwo;
				           ^
  symbol:   variable numtwo
  location: class Main
Main.java:19: error: cannot find symbol
				numtwo = x;
				^
  symbol:   variable numtwo
  location: class Main
Main.java:24: error: cannot find symbol
		System.out.println(numone + "\n" + numtwo + "\n" + numthree);
		                                   ^
  symbol:   variable numtwo
  location: class Main
7 errors
Language: Java

import java.util.Scanner;


class Main{
    public static void main(String[] a){
		Scanner sc = new Scanner(System.in);
		int numone = 0;
		int nomtwo = 0;
		int numthree = 0;
		int x;
		for (int i=0; i<9; i++) {
			x = sc.nextInt();
			if (numone < x) {
				numthree = numtwo;
				numtwo = numone;
				numone = x;
			} else if (numtwo < x) {
				numthree = numtwo;
				numtwo = x;
			}else if (numthree < x) {
				numthree = x;
			}
		}
		System.out.println(numone + "\n" + numtwo + "\n" + numthree);
	}
}

Compiler output:
Main.java:14: error: cannot find symbol
				numthree = numtwo;
				           ^
  symbol:   variable numtwo
  location: class Main
Main.java:15: error: cannot find symbol
				numtwo = numone;
				^
  symbol:   variable numtwo
  location: class Main
Main.java:17: error: cannot find symbol
			} else if (numtwo < x) {
			           ^
  symbol:   variable numtwo
  location: class Main
Main.java:18: error: cannot find symbol
				numthree = numtwo;
				           ^
  symbol:   variable numtwo
  location: class Main
Main.java:19: error: cannot find symbol
				numtwo = x;
				^
  symbol:   variable numtwo
  location: class Main
Main.java:24: error: cannot find symbol
		System.out.println(numone + "\n" + numtwo + "\n" + numthree);
		                                   ^
  symbol:   variable numtwo
  location: class Main
6 errors
Language: Java

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

public class Top3Mountains {

	public static void main(String[] args) throws NumberFormatException, IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		ArrayList<Integer> heights = new ArrayList<>();
		int x;
		for (int i = 0; i < 10; i++) {
			x = Integer.parseInt(br.readLine());
			if (0 <= x && x <= 10000) {
				heights.add(x);
			}
		}

		int[] top3 = getTop3(heights);
		for (int i = 0; i < top3.length; i++) {
			System.out.println(top3[i]);
		}
	}

	private static int[] getTop3(ArrayList<Integer> heights) {
		int[] top3 = new int[3];
		top3[0] = 0; // 1st highest
		top3[1] = 0; // 2rd highest
		top3[2] = 0; // 3rd highest
		for (int i = 0; i < heights.size(); i++) {
			int element = heights.get(i);
			if (element > top3[0]) {
				top3[2] = top3[1];
				top3[1] = top3[0];
				top3[0] = element;
			} else if (element > top3[1]) {
				top3[2] = top3[1];
				top3[1] = element;
			} else if (element > top3[2]) {
				top3[2] = element;
			}
		}
		return top3;
	}
}

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

import java.util.Scanner;
public class Hills {
    public static void main(String[] a) {
        int highest[] = new int[10];
        Scanner sc = new Scanner(System.in);
        for (int i = 0; i < 10; i++) {
            highest[i] = sc.nextInt();
        }
        for (int i = 0; i < 10; i++) {
            int flag = 0;
            for (int j = 0; j < 10; j++) {
                if (highest[j]<highest[j + 1])) {
                    int tmp = highest[j];
                    highest[j] = highest[j + 1];
                    highest[j + 1] = tmp;
                    flag = 1;
                }
            }
            if (flag == 0) {
                break;
            }
        }
        for (int k = 0; k < 3; k++) {
            System.out.println(highest[k]);
        }
    }
}

Compiler output:
Main.java:12: error: illegal start of expression
                if (highest[j]<highest[j + 1])) {
                                              ^
1 error
Language: Java

public class Main {
    public static void main(String[] a) {
        int highest[] = new int[10];
        Scanner sc = new Scanner(System.in);
        for (int i = 0; i < 10; i++) {
            highest[i] = sc.nextInt();
        }
        Arrays.sort(highest);

        for (int k = 9; k < 6; k--) {
            System.out.println(highest[k]);
        }
    }
}

Compiler output:
Main.java:4: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:4: 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(highest);
        ^
  symbol:   variable Arrays
  location: class Main
3 errors
Language: Java

public class Main {

	//自分が書いたコード
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int[] in = new int[10];
		for (int i = 0; i < in.length; i++) {
			in[i] = sc.nextInt();
		}

		Arrays.sort(in);
		for (int i = 9; 7 < i; i++) {
			System.out.println(in[i]);
		}
	}

}


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

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

Scanner scan = new Scanner (System.in); 

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

while(scan.hasNextLine()){
    String str = scan.nextLine();
    list.add(Integer.parseInt(str));
}

}
}


Compiler output:
Main.java:4: error: cannot find symbol
Scanner scan = new Scanner (System.in); 
^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
Scanner scan = new Scanner (System.in); 
                   ^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
ArrayList<Integer> list = new ArrayList<Integer>();
^
  symbol:   class ArrayList
  location: class Main
Main.java:6: error: cannot find symbol
ArrayList<Integer> list = new ArrayList<Integer>();
                              ^
  symbol:   class ArrayList
  location: class Main
4 errors
Language: Java

import java.util.*;

public class code002{
	public static void main(String[] args){
		int[] height = new int[10];
		int[] rank = new int[3];
		int i;
		Scanner scanner = new Scanner(System.in);

		for(i=0;i<10;i++){
			height[i] = scanner.nextInt();
			if(height[i]>=rank[0]){
				rank[2]=rank[1];
				rank[1]=rank[0];
				rank[0]=height[i];
			}else if(height[i]>=rank[1]){
				rank[2]=rank[1];
				rank[1]=height[i];
			}else if(height[i]>=rank[2]){
				rank[2]=height[i];
			}
		}

		for(i=0;i<3;i++){
			System.out.println(i+1+"番目に高い山の高さ "+rank[i]);
		}
	}
}



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

#include<stdio.h>
void noone(int[10]);

int main(void){
	int mt[10];
	int i=0;

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

		scanf("%d",&mt[i]);//10個の配列に数値を入れる

	}

	noone(mt);//一番大きい値を決める




}

void noone(int hai[10]){
	int i=0;
	int max=0;
	int max2=0;
	int max3=0;

	hai[0]=max;

	for(i=0;i<10;i++){
		if(max<hai[i]){
			max3=max2;
			max2=max;
			max=hai[i];
		}else if(max2<hai[i]){
				max3=max2;
				max2=hai[i];
		}else if(max3<hai[i]){
				max3=hai[i];
			}
	}

	printf("%d\n%d\n%d\n",max,max2,max3);
}






Compiler output:
Main.java:1: error: illegal character: '#'
#include<stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<stdio.h>
        ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
int main(void){
^
  (use --enable-preview to enable unnamed classes)
Main.java:4: error: <identifier> expected
int main(void){
             ^
Main.java:5: error: ']' expected
	int mt[10];
	       ^
Main.java:10: error: illegal start of expression
		scanf("%d",&mt[i]);//10???????????
		           ^
Main.java:21: error: ']' expected
void noone(int hai[10]){
                   ^
7 errors
Language: Java

public class A {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		ArrayList<Integer> a = new ArrayList<Integer>();
		while(scan.hasNext()){
			a.add(scan.nextInt());
		}
		int[] list = (int[])a.clone();
		Arrays.sort(list);
		
		for(int i=0;i<3;i++){
			System.out.println(list[i]);
		}
		
	}
}



Compiler output:
Main.java:1: error: class A is public, should be declared in a file named A.java
public class A {
       ^
Main.java:3: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class A
Main.java:3: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		                   ^
  symbol:   class Scanner
  location: class A
Main.java:4: error: cannot find symbol
		ArrayList<Integer> a = new ArrayList<Integer>();
		^
  symbol:   class ArrayList
  location: class A
Main.java:4: error: cannot find symbol
		ArrayList<Integer> a = new ArrayList<Integer>();
		                           ^
  symbol:   class ArrayList
  location: class A
Main.java:9: error: cannot find symbol
		Arrays.sort(list);
		^
  symbol:   variable Arrays
  location: class A
6 errors
Language: Java

public class Main {
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		ArrayList<Integer> a = new ArrayList<Integer>();
		while(scan.hasNext()){
			a.add(scan.nextInt());
		}
		int[] list = (int[])a.clone();
		Arrays.sort(list);
		
		for(int i=0;i<3;i++){
			System.out.println(list[i]);
		}
		
	}
}



Compiler output:
Main.java:3: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		                   ^
  symbol:   class Scanner
  location: class Main
Main.java:4: error: cannot find symbol
		ArrayList<Integer> a = new ArrayList<Integer>();
		^
  symbol:   class ArrayList
  location: class Main
Main.java:4: error: cannot find symbol
		ArrayList<Integer> a = new ArrayList<Integer>();
		                           ^
  symbol:   class ArrayList
  location: class Main
Main.java:9: error: cannot find symbol
		Arrays.sort(list);
		^
  symbol:   variable Arrays
  location: class Main
5 errors
Language: Java

class A{
	public static void main(String a[]){
		Scanner scan = new Scanner(System.in);
		ArrayList<Integer> a = new ArrayList<Integer>();
		while(scan.hasNext()){
			a.add(scan.nextInt());
		}
		int[] list = (int[])a.clone();
		Arrays.sort(list);
		
		for(int i=0;i<3;i++){
			System.out.println(list[i]);
		}
		
	}
}



Compiler output:
Main.java:3: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class A
Main.java:3: error: cannot find symbol
		Scanner scan = new Scanner(System.in);
		                   ^
  symbol:   class Scanner
  location: class A
Main.java:4: error: cannot find symbol
		ArrayList<Integer> a = new ArrayList<Integer>();
		^
  symbol:   class ArrayList
  location: class A
Main.java:4: error: variable a is already defined in method main(String[])
		ArrayList<Integer> a = new ArrayList<Integer>();
		                   ^
Main.java:4: error: cannot find symbol
		ArrayList<Integer> a = new ArrayList<Integer>();
		                           ^
  symbol:   class ArrayList
  location: class A
Main.java:9: error: cannot find symbol
		Arrays.sort(list);
		^
  symbol:   variable Arrays
  location: class A
6 errors
Language: Java

import java.awt.List;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;

class A{
	public static void main(String a[]){
		Scanner scan = new Scanner(System.in);
		ArrayList<Integer> a = new ArrayList<Integer>();
		while(scan.hasNext()){
			a.add(scan.nextInt());
		}
		int[] list = (int[])a.clone();
		Arrays.sort(list);
		
		for(int i=0;i<3;i++){
			System.out.println(list[i]);
		}
		
	}
}



Compiler output:
Main.java:9: error: variable a is already defined in method main(String[])
		ArrayList<Integer> a = new ArrayList<Integer>();
		                   ^
1 error
Language: Java

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

public class A {
	private static Scanner scan;

	public static void main(String a[]){
		scan = new Scanner(System.in);
		int[] list = new int[10];
		for(int i=0;i<10;i++){
			list[i]=scan.nextInt();
		}
		Arrays.sort(list);

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

	}
}


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

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

public class A{
	private static Scanner scan;

	public static void main(String a[]){
		scan = new Scanner(System.in);
		int[] list = new int[10];
		for(int i=0;i<10;i++){
			list[i]=scan.nextInt();
		}
		Arrays.sort(list);

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

	}
}


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

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

public class A{
	private static Scanner scan;

	public static void main(String a[]){
		Scanner scan = new Scanner(System.in);
		int[] list = new int[10];
		for(int i=0;i<10;i++){
			list[i]=scan.nextInt();
		}
		Arrays.sort(list);

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

	}
}


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

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

public class A{

	public static void main(String a[]){
		Scanner scan = new Scanner(System.in);
		int[] list = new int[10];
		for(int i=0;i<10;i++){
			list[i]=scan.nextInt();
		}
		Arrays.sort(list);

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

	}
}


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

import java.util.*;

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


Compiler output:
Main.java:14: error: incompatible types: unexpected return value
return 0;
       ^
1 error
Language: Java

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

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

		 Arrays.sort(Hill);
		 System.out.println(Hill[9]);
		 System.out.println(Hill[8]);
		 System.out.println(Hill[7]);
		 scanner.close();
    }
}


Compiler output:
Main.java:3: error: illegal character: '\u3000'
????????Scanner scanner = new Scanner(System.in);
^
Main.java:3: error: illegal character: '\u3000'
????????Scanner scanner = new Scanner(System.in);
 ^
Main.java:3: error: illegal character: '\u3000'
????????Scanner scanner = new Scanner(System.in);
  ^
Main.java:3: error: illegal character: '\u3000'
????????Scanner scanner = new Scanner(System.in);
   ^
Main.java:3: error: illegal character: '\u3000'
????????Scanner scanner = new Scanner(System.in);
    ^
Main.java:3: error: illegal character: '\u3000'
????????Scanner scanner = new Scanner(System.in);
     ^
Main.java:3: error: illegal character: '\u3000'
????????Scanner scanner = new Scanner(System.in);
      ^
Main.java:3: error: illegal character: '\u3000'
????????Scanner scanner = new Scanner(System.in);
       ^
8 errors
Language: Java

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

public class aoj0001
{
	public static void main(String[] args)
	{
		Scanner cin = new Scanner(System.in);
		
		int data[] = new int[10];
		for(int i=0; i<10; i++)
		{
			data[i] = cin.nextInt();
		}
		Arrays.sort(data);
		
		for(int i=1; i<=3; i++)
		{
			System.out.println(data[data.length-i]);
		}
	}
}

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