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

import java.util.Scanner;
    
class Main
{
    
    public static void main(String[] args)
    {   Scanner stdIn=new Scanner(System.in);
        int a=stdIn.nextInt();
        int b=stdIn.nextInt();
        int c=stdIn.nextInt();
           
       if(a=<b && b=<c){System.out.println(a+" "+b+" "+c);
    }
       else if(a=>b && b=<c && a=<c){System.out.println(b+" "+a+" "+c);
    }
       else if(a=>b && b=>c && a=>c){System.out.println(c+" "+b+" "+a);
    }
       else if(a=>b && b=<c && a=>c){System.out.println(b+" "+c+" "+a);
    }
       else if(a=<b && b=>c && a=>c){System.out.println(c+" "+a+" "+b);
    }
       else if(a=<b && b=>c && a=<c){System.out.println(a+" "+c+" "+b);
    }
           
    }
}

Compiler output:
Main.java:12: error: > or ',' expected
       if(a=<b && b=<c){System.out.println(a+" "+b+" "+c);
               ^
Main.java:12: error: > or ',' expected
       if(a=<b && b=<c){System.out.println(a+" "+b+" "+c);
                      ^
Main.java:14: error: illegal start of expression
       else if(a=>b && b=<c && a=<c){System.out.println(b+" "+a+" "+c);
                 ^
Main.java:14: error: > or ',' expected
       else if(a=>b && b=<c && a=<c){System.out.println(b+" "+a+" "+c);
                            ^
Main.java:14: error: > or ',' expected
       else if(a=>b && b=<c && a=<c){System.out.println(b+" "+a+" "+c);
                                   ^
Main.java:16: error: illegal start of expression
       else if(a=>b && b=>c && a=>c){System.out.println(c+" "+b+" "+a);
                 ^
Main.java:16: error: illegal start of expression
       else if(a=>b && b=>c && a=>c){System.out.println(c+" "+b+" "+a);
                         ^
Main.java:16: error: illegal start of expression
       else if(a=>b && b=>c && a=>c){System.out.println(c+" "+b+" "+a);
                                 ^
Main.java:18: error: illegal start of expression
       else if(a=>b && b=<c && a=>c){System.out.println(b+" "+c+" "+a);
                 ^
Main.java:18: error: > or ',' expected
       else if(a=>b && b=<c && a=>c){System.out.println(b+" "+c+" "+a);
                            ^
Main.java:18: error: illegal start of expression
       else if(a=>b && b=<c && a=>c){System.out.println(b+" "+c+" "+a);
                                 ^
Main.java:20: error: > or ',' expected
       else if(a=<b && b=>c && a=>c){System.out.println(c+" "+a+" "+b);
                    ^
Main.java:20: error: illegal start of expression
       else if(a=<b && b=>c && a=>c){System.out.println(c+" "+a+" "+b);
                         ^
Main.java:20: error: illegal start of expression
       else if(a=<b && b=>c && a=>c){System.out.println(c+" "+a+" "+b);
                                 ^
Main.java:22: error: > or ',' expected
       else if(a=<b && b=>c && a=<c){System.out.println(a+" "+c+" "+b);
                    ^
Main.java:22: error: illegal start of expression
       else if(a=<b && b=>c && a=<c){System.out.println(a+" "+c+" "+b);
                         ^
Main.java:22: error: > or ',' expected
       else if(a=<b && b=>c && a=<c){System.out.println(a+" "+c+" "+b);
                                   ^
17 errors
Language: Java

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

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

		//????????£?????????????????§????????????????????????
		//????????\???
		Scanner sc = new Scanner(System.in);
		//int???????????????a
		int a = sc.nextInt();
	     //int???????????????b
		int b = sc.nextInt();
	     //int???????????? ???
		int c = sc.nextInt();

		//??????????????\??????
		int[] arr = new int[] {a,b,c};
		Arrays.sort(arr);
		for(int i = 0; i < arr.length; i++){
			System.out.print(arr[i]);
		}
	}
}

Compiler output:
Main.java:4: error: class Main3C is public, should be declared in a file named Main3C.java
public class Main3C {
       ^
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{

BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String str = reader.readLine();
String[]array =str.split(" ",0);
int a =Integer.parseInt(array[0]);
int b =Integer.parseInt(array[1]);
int c = Integer.parseInt(array[2]);

abc[] = {a,b,c};
Arrays.sort(abc);

System.out.println(abc[0]+""+abc[1]+""+abc[2]);
}
}

Compiler output:
Main.java:15: error: not a statement
abc[] = {a,b,c};
   ^
Main.java:15: error: ';' expected
abc[] = {a,b,c};
     ^
Main.java:15: error: not a statement
abc[] = {a,b,c};
         ^
Main.java:15: error: ';' expected
abc[] = {a,b,c};
          ^
Main.java:15: error: not a statement
abc[] = {a,b,c};
           ^
Main.java:15: error: ';' expected
abc[] = {a,b,c};
            ^
Main.java:15: error: not a statement
abc[] = {a,b,c};
             ^
Main.java:15: error: ';' expected
abc[] = {a,b,c};
              ^
8 errors
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{

BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String str = reader.readLine();
String[]array =str.split(" ",0);
int a =Integer.parseInt(abc[0]);
int b =Integer.parseInt(abc[1]);
int c = Integer.parseInt(abc[2]);

Arrays.sort(abc);

System.out.println(abc[0]+""+abc[1]+""+abc[2]);
}
}

Compiler output:
Main.java:11: error: cannot find symbol
int a =Integer.parseInt(abc[0]);
                        ^
  symbol:   variable abc
  location: class Main
Main.java:12: error: cannot find symbol
int b =Integer.parseInt(abc[1]);
                        ^
  symbol:   variable abc
  location: class Main
Main.java:13: error: cannot find symbol
int c = Integer.parseInt(abc[2]);
                         ^
  symbol:   variable abc
  location: class Main
Main.java:15: error: cannot find symbol
Arrays.sort(abc);
            ^
  symbol:   variable abc
  location: class Main
Main.java:15: error: cannot find symbol
Arrays.sort(abc);
^
  symbol:   variable Arrays
  location: class Main
Main.java:17: error: cannot find symbol
System.out.println(abc[0]+""+abc[1]+""+abc[2]);
                   ^
  symbol:   variable abc
  location: class Main
Main.java:17: error: cannot find symbol
System.out.println(abc[0]+""+abc[1]+""+abc[2]);
                             ^
  symbol:   variable abc
  location: class Main
Main.java:17: error: cannot find symbol
System.out.println(abc[0]+""+abc[1]+""+abc[2]);
                                       ^
  symbol:   variable abc
  location: class Main
8 errors
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{

BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String str = reader.readLine();
String[]abc =str.split(" ",0);
int a =Integer.parseInt(abc[0]);
int b =Integer.parseInt(abc[1]);
int c = Integer.parseInt(abc[2]);

Arrays.sort(abc);

System.out.println(abc[0]+""+abc[1]+""+abc[2]);
}
}

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



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

public class Main2C {
	public static void main(String[] args){
		//????????£?????????????????????
		Scanner sc = new Scanner(System.in);
		//???????????£?¨?
		int list[] = new int[3];
		
		//?????????????´?
		for(int i =0; i < 3; i++){
			//i?????????????´?
			list[i] = sc.nextInt();
			//System.out.print(list[i]);
		}
		//?????????????????????
		Arrays.sort(list);
		
		//
		for(int i = 0; i< list.length; i++){
		//??????????????????????????¨???
			System.out.print(list[i] + " ");
		}
	}
}

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



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

public class Main2C {
	public static void main(String[] args){
		//????????£?????????????????????
		Scanner sc = new Scanner(System.in);
		//?????°?????£?¨?
		int num = 3;
		//???????????£?¨?
		int list[] = new int[num];

		//?????????????´?
		for(int i =0; i < num; i++){
			//i?????????????´?
			list[i] = sc.nextInt();
			//System.out.print(list[i]);
		}
		//?????????????????????
		Arrays.sort(list);

		//??????????????°?????????
		for(int i = 0; i < num; i++){
			//??????????????°
			if(i == num - 1){
				//??????????????????????????¨???
				System.out.println(list[i]);
			//???????????¶?????§???????????????????????°
			}else{
				System.out.print(list[i] + " ");
			}
		}
	}
}

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

public class new20170320 {
	public static void main(String[] args){
		Scanner scan = new Scanner (System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		if(a>=-1000&&a<=1000&&b>=-1000&&b<=1000)
		{
			if(a<b)
				System.out.println("a < b");
			else if(a>b)
				System.out.println("a < b");
			else System.out.println("a == b");
		
		}
	}
}

Compiler output:
Main.java:1: error: class new20170320 is public, should be declared in a file named new20170320.java
public class new20170320 {
       ^
Main.java:3: error: cannot find symbol
		Scanner scan = new Scanner (System.in);
		^
  symbol:   class Scanner
  location: class new20170320
Main.java:3: error: cannot find symbol
		Scanner scan = new Scanner (System.in);
		                   ^
  symbol:   class Scanner
  location: class new20170320
3 errors
Language: Java

import java.util.*;

class Main{
 public static void main(String[] args){
  Scanner scan = new Scanner(System.in).useDelimiter("\\s\\n*");

  int a=scan.nextInt(),b=scan.nextInt(),c=scan.nextInt();

  int d;

  for(int e=0;e<3;e++){
   if(a>b){d=a;a=b;b=d;}
   if(b>c){d=b;b=c;c=d;}
  }
  System.out.println(a" "b" "c);  
 }
}

Compiler output:
Main.java:15: error: ')' or ',' expected
  System.out.println(a" "b" "c);  
                      ^
Main.java:15: error: not a statement
  System.out.println(a" "b" "c);  
                         ^
Main.java:15: error: ';' expected
  System.out.println(a" "b" "c);  
                          ^
Main.java:15: error: not a statement
  System.out.println(a" "b" "c);  
                             ^
Main.java:15: error: ';' expected
  System.out.println(a" "b" "c);  
                              ^
5 errors
Language: Java

import java.util.Scanner;
class Main{
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		int t = 0;
		
		if(a > b){
		t = a
		a = b
		b = t
		}
		if(b > c){
		t = b
		b = c
		c = t
		}
		if(a > b){
		t = a
		a = b
		b = t
		}
	}
}

Compiler output:
Main.java:11: error: ';' expected
		t = a
		     ^
Main.java:12: error: ';' expected
		a = b
		     ^
Main.java:13: error: ';' expected
		b = t
		     ^
Main.java:16: error: ';' expected
		t = b
		     ^
Main.java:17: error: ';' expected
		b = c
		     ^
Main.java:18: error: ';' expected
		c = t
		     ^
Main.java:21: error: ';' expected
		t = a
		     ^
Main.java:22: error: ';' expected
		a = b
		     ^
Main.java:23: error: ';' expected
		b = t
		     ^
9 errors
Language: Java

import java.io.*;

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

  BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
  String str = br.readLine();
  String[] strAry = str.split(" ");
  int a = Integer.parseInt(strAry[0]);
  int b = Integer.parseInt(strAry[1]);
  int c = Integer.parseInt(strAry[2]);  
  int tmp;

  if(a>b){
    tmp = a;   
    a = b; 
    b=tmp;
  }
 
  if(b>c){
    tmp = b;   
    b = c; 
    c = tmp;
  }
  
  if(a>b){
    tmp = a;   
    a = b; 
    b=tmp;
  }

   System.out.println(a b c);

 }
}

Compiler output:
Main.java:32: error: ')' or ',' expected
   System.out.println(a b c);
                       ^
Main.java:32: error: ';' expected
   System.out.println(a b c);
                           ^
2 errors
Language: Java

import java.util.Scanner;
class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nexrInt();
        int temp;

        if(a > b){
          temp = a;
          a = b;
          b = temp;
        }
        if(b > c){
          temp = b;
          b = c;
          c = temp;
        }
        if(a > b){
          temp = a;
          a = b;
          b = temp;
        }
        
        System.out.println(a + " " + b + " " + c);
    }
}

Compiler output:
Main.java:7: error: cannot find symbol
        int c = scan.nexrInt();
                    ^
  symbol:   method nexrInt()
  location: variable scan of type Scanner
1 error
Language: Java

import java.util.Scanner;
class Main {
    public static void main(String[] args){
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nexrInt();
        int temp;

        if(b > c){
          temp = b;
          b = c;
          c = temp;
        }

        if(a > b){
          temp = a;
          a = b;
          b = temp;
        }
                
        System.out.println(a + " " + b + " " + c);
    }
}

Compiler output:
Main.java:7: error: cannot find symbol
        int c = scan.nexrInt();
                    ^
  symbol:   method nexrInt()
  location: variable scan of type Scanner
1 error
Language: Java

import java.util.Scanner;
class Main {
	
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Scanner scanner = new Scanner(System.in);
		
		// TODO Auto-generated method stub
		int a = scanner.nextInt();
		int b = scanner.nextInt();
		int c = scanner.nextInt();
		int x = scanner.nextInt();
		
		if(b < a){
			x = a;
			a = b;
			b = x;
			}
		if(c < b){
			x = a;
			a = b;
			b = x;
			}
		if(b < a){
			x = a;
			a = b;
			b = x;
			}
			System.out.println(a+" "+b+"+c);
	}

}

Compiler output:
Main.java:31: error: unclosed string literal
			System.out.println(a+" "+b+"+c);
			                           ^
1 error
Language: Java

import java.util.Scanner;
class Main {
         
    /**
     * @param args
     */
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
             
        // TODO Auto-generated method stub
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = scanner.nextInt();
        int x = 0
             
        if(a > b){
            x = a;
            a = b;
            b = x;
            }
        if(b > c){
            x = b;
            b = c;
            c = x;
            }
        if(a > b){
            x = a;
            a = b;
            b = x;
            }
            System.out.println(a+" "+b+" "+c);
    }
     
}

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

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

public class e {

	public static void main(String[] arges) {
		Scanner sc = new Scanner(System.in);
		String line = sc.nextLine();
		String[] k = line.split(" ");
		int[] v = new int[k.length];
		for (int i = 0; i < v.length; i++) {
			v[i] = Integer.parseInt(k[i]);
		}
		Arrays.sort(v);

		System.out.print(v[0]+" ");
		System.out.print(v[1]+" ");
		System.out.print(v[2]);

	}
}

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

public class Main {

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

		InputStreamReader is = new InputStreamReader(System.in);       //?????????
        BufferedReader br = new BufferedReader(is);
        String chithanh = br.readLine();

        String[] chi = chithanh.split(" ");
        int chinm[] = new int[chi.length];
        int tmp;

        for (int i = 0; i < chi.length; i++)
        	chinm[i] = Integer.parseInt(chi[i]);


        for (int l = 0; l < chinm.length; l++) {
        	System.out.print(chinm[l]);
        	if (l != chinm.length-1)
        		System.out.print(" ");
        	else
        		System.out.print("\n");
        }


        for (int j = chinm.length; j > 1; j--) {
        	for (int k = 0; k < j-1; k++) {
        		if (chinm[k] > chinm[k + 1]) {
        			tmp = chinm[k];
        			chinm[k] = chinm[k+1];
        			chinm[k+1] = tmp;
        		}
        	}
        }

        for (int l = 0; l < chinm.length; l++) {
        	System.out.print(chinm[l]);
        	if (l != chinm.length-1)
        		System.out.print(" ");
        	else
        		System.out.print("\n");
        }

	}
}

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

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		if(a < b){
			if(b < c){
				System.out.printf("%d %d %d\n", a, b, c);
			}else if(a < c){
				System.out.printf("%d %d %d\n", a, c, b);
			}else{
				System.out.printf("%d %d %d\n", c, a, b);
			}else{
				if(a < c){
					System.out.printf("%d %d %d\n", b, a, c);
					else if(b < c){
						System.out.printf("%d %d %d\n", b, c, a);
					}else{
						System.out.printf("%d %d %d\n", c, b, a);
					}
				}
			}
		}
	}
}

Compiler output:
Main.java:19: error: 'else' without 'if'
					else if(b < c){
					^
Main.java:16: error: 'else' without 'if'
			}else{
			 ^
2 errors
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		if(a < b){
			if(b < c){
				System.out.printf("%d %d %d\n", a, b, c);
			}else if(a < c){
				System.out.printf("%d %d %d\n", a, c, b);
			}else{
				System.out.printf("%d %d %d\n", c, a, b);
			}else if{
				if(a < c){
					System.out.printf("%d %d %d\n", b, a, c);
					else if(b < c){
						System.out.printf("%d %d %d\n", b, c, a);
					}else{
						System.out.printf("%d %d %d\n", c, b, a);
					}
				}
			}
		}
	}
}

Compiler output:
Main.java:16: error: '(' expected
			}else if{
			        ^
Main.java:19: error: 'else' without 'if'
					else if(b < c){
					^
Main.java:16: error: 'else' without 'if'
			}else if{
			 ^
3 errors
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		if(a < b){
			if(b < c){
				System.out.printf("%d %d %d\n", a, b, c);
			}else if(a < c){
				System.out.printf("%d %d %d\n", a, c, b);
			}else{
				System.out.printf("%d %d %d\n", c, a, b);
			}
		}else{
				if(a < c){
					System.out.printf("%d %d %d\n", b, a, c);
					else if(b < c){
						System.out.printf("%d %d %d\n", b, c, a);
					}else{
						System.out.printf("%d %d %d\n", c, b, a);
					}
				}
			}
		}
	}

Compiler output:
Main.java:20: error: 'else' without 'if'
					else if(b < c){
					^
1 error
Language: Java

import java.util.Scanner;

public class PrintChessboard {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		if(a < b){
			if(b < c){
				System.out.printf("%d %d %d\n", a, b, c);
			}else if(a < c){
				System.out.printf("%d %d %d\n", a, c, b);
			}else{
				System.out.printf("%d %d %d\n", c, a, b);
			}
		}else{
				if(a < c){
					System.out.printf("%d %d %d\n", b, a, c);
					}else if(b < c){
						System.out.printf("%d %d %d\n", b, c, a);
					}else{
						System.out.printf("%d %d %d\n", c, b, a);
					}
				}
			}
		}
	}

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

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

public class test {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String x = sc.nextLine();
		String[] b = x.split(" ");
		int[] e = new int[3];
		e[0] = Integer.parseInt(b[0]);
		e[1] = Integer.parseInt(b[1]);
		e[2] = Integer.parseInt(b[2]);
		Arrays.sort(e);
		for (int i = 0; i < e.length; i++) {
			System.out.println(e[i]);

		}

	}
}

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

import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc= new Scanner(System.in);
int[] i = new int [3];
for(int j=0;j<3;j++){i[j]=nextInt();}
Arrays.sort(i);
System.out.println(i[0] + " " + i[1] + " " + i[2]);}}

Compiler output:
Main.java:6: error: cannot find symbol
for(int j=0;j<3;j++){i[j]=nextInt();}
                          ^
  symbol:   method nextInt()
  location: class Main
1 error
Language: Java

public class hanawa {
	
		
		public static void main(String[] args) {
			java.util.Scanner scan = new java.util.Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		int t = 0;
		if( a > b){
		t = b;
		b = a;
		a = t;
		}if(a > c){
			t = a;
			a = c;
			c = t;
		}
		if( b > c){
		t = c;
		c = b;
		b = t;
		
		}
		
		System.out.println(a+" "+b+" "+c);
		
		}
		}

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

import java.util.Scanner;

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

Compiler output:
Main.java:6: error: ']' expected
		int a[3];
		      ^
Main.java:13: error: illegal start of expression
				if(a[i] > [j]){
				          ^
Main.java:13: error: not a statement
				if(a[i] > [j]){
				           ^
Main.java:13: error: ';' expected
				if(a[i] > [j]){
				            ^
4 errors
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:6: error: ']' expected
		int a[3] = new int[3];
		      ^
Main.java:6: error: not a statement
		int a[3] = new int[3];
		           ^
Main.java:13: error: illegal start of expression
				if(a[i] > [j]){
				          ^
Main.java:13: error: not a statement
				if(a[i] > [j]){
				           ^
Main.java:13: error: ';' expected
				if(a[i] > [j]){
				            ^
5 errors
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:13: error: illegal start of expression
				if(a[i] > [j]){
				          ^
Main.java:13: error: not a statement
				if(a[i] > [j]){
				           ^
Main.java:13: error: ';' expected
				if(a[i] > [j]){
				            ^
3 errors
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:11: error: cannot find symbol
		for(i = 0; i < 3; i++){
		    ^
  symbol:   variable i
  location: class Main
Main.java:11: error: cannot find symbol
		for(i = 0; i < 3; i++){
		           ^
  symbol:   variable i
  location: class Main
Main.java:11: error: cannot find symbol
		for(i = 0; i < 3; i++){
		                  ^
  symbol:   variable i
  location: class Main
Main.java:12: error: cannot find symbol
			for(int j = i + 1; j < 3 - 1; j++){
			            ^
  symbol:   variable i
  location: class Main
Main.java:13: error: cannot find symbol
				if(a[i] > a[j]){
				     ^
  symbol:   variable i
  location: class Main
Main.java:14: error: cannot find symbol
					int tmp = a[i];
					            ^
  symbol:   variable i
  location: class Main
Main.java:15: error: cannot find symbol
					a[i] = a[j];
					  ^
  symbol:   variable i
  location: class Main
Main.java:20: error: cannot find symbol
		for(i = 0; i < 3; i++){
		    ^
  symbol:   variable i
  location: class Main
Main.java:20: error: cannot find symbol
		for(i = 0; i < 3; i++){
		           ^
  symbol:   variable i
  location: class Main
Main.java:20: error: cannot find symbol
		for(i = 0; i < 3; i++){
		                  ^
  symbol:   variable i
  location: class Main
Main.java:21: error: cannot find symbol
			System.out.print(a[i]);
			                   ^
  symbol:   variable i
  location: class Main
Main.java:22: error: cannot find symbol
			if(i == 2){
			   ^
  symbol:   variable i
  location: class Main
12 errors
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:8: error: variable i is already defined in method main(String[])
		for(int i = 0; i < 3; i++){
		        ^
1 error
Language: Java

import java.util.Scanner;

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

		Arrays.sort(abc);
		System.out.println(abc[0] + " " + abc[1] + " " + abc[2]);
	}
}

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

import java.io.*;
import java.util.Arrays;
   
public class Main {
  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] inputs = br.readLine().split(" ");
    inputs = Arrays.toString(inputs);
    System.out.println(String.join(" ", inputs));
  }
}

Compiler output:
Main.java:8: error: incompatible types: String cannot be converted to String[]
    inputs = Arrays.toString(inputs);
                            ^
1 error
Language: Java

import java.io.*;
import java.util.Arrays;
   
public class Main {
  public static void main(String[] args) throws Exception {
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] inputs = br.readLine().split(" ");
    inputs = Arrays.sort(inputs);
    System.out.println(String.join(" ", inputs));
  }
}

Compiler output:
Main.java:8: error: incompatible types: void cannot be converted to String[]
    inputs = Arrays.sort(inputs);
                        ^
1 error
Language: Java

import java.util.Scanner;
public class Main5{
	public static void main (String[] args){
		int a,b,c;
		Scanner scan = new Scanner(System.in);
		a = Integer.parseInt(scan.next());
		b = Integer.parseInt(scan.next());
		c = Integer.parseInt(scan.next());
		if((a<b)&&(a<c)){
			if(b<c){
				System.out.println(a +" "+ b +" "+ c);
			}else{
				System.out.println(a +" "+ c +" "+ b);
			}
		}else if((b<a)&&(b<c)){
			if(a<c){
				System.out.println(b +" "+ a +" "+ c);
			}else{
				System.out.println(b +" "+ c +" "+ a);
			}
		}else if((c<a)&&(c<b)){
			if(a<b){
				System.out.println(c +" "+ a +" "+ b);
			}else{
				System.out.println(c +" "+ b +" "+ a);
			}
		}
	}
}

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

public class Main {

	public static void main(String[] args) {
		Scanner scan = new Scanner(System.in);
		int a = scan.nextInt();
		int b = scan.nextInt();
		int c = scan.nextInt();
		scan.close();

		if (1 <= a && a <= 10000 && 1 <= b && b <= 10000 && 1 <= c && c <= 10000) {
			if (a <= b && b <= c) {
				System.out.println(a + " " + b + " " + c);
			} else if (a <= c && c <= b) {
				System.out.println(a + " " + c + " " + b);
			} else if (b <= a && a <= c) {
				System.out.println(b + " " + a + " " + c);
			} else if (b <= c && c <= a) {
				System.out.println(b + " " + c + " " + a);
			} else if (c <= a && a <= b) {
				System.out.println(c + " " + a + " " + b);
			} else if (c <= b && b <= a) {
				System.out.println(c + " " + b + " " + a);
			}
		}

	}

}

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.*;                                                                                  

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

        Scanner sc = new Scanner(System.in);
        String line = sc.nextLine();
        String[] l = line.split(" ");
        int[] a = { 
          Integer.parseInt(l[0]),
          Integer.parseInt(l[1]),
          Integer.parseInt(l[2])
        };  
    
        Arrays.sort(a);

        for(int i = 0; i < a.length; i++) {
          if(0 < i) {
            System.out.print(" ");
          }   
          System.out.print(a[i]);
          if(i == a.length - 1) {
            System.out.println();
          }   
        }   
    }   
}

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

public class Main {

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

		int[] box = new int[3];

		for (int i = 0; i < box.length; i++) {
			String str = br.readLine();
			box[i] = Integer.parseInt(str);

		}
		for (int b = 0; b < box.length - 1; b++) {
			for (int o = b + 1; o < box.length; o++) {
				if (box[b] > box[o]) {
					int tmp = box[b];
					box[b] = box[o];
					box[o] = tmp;
				}
			}
		}
		for (int x = 0; x < box.length; x++) {
			System.out.println();
		}
	}
}

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

import java.util.*;

class Main{
	public static void main(String []args){
	Scanner sc = new Scanner(System.in);
	Map<Integer>list = new SetMap<>();
	for(int i = 0; i < 3; i++){
		list.add(sc.nextInt());
	}
		for(int j = 0; j < 3; j++)
			if(j == 2)
			System.out.print(list.iterator());
			else
			System.out.print(list.iterator() + " ")
		}
	}
}

Compiler output:
Main.java:14: error: ';' expected
			System.out.print(list.iterator() + " ")
			                                       ^
Main.java:17: error: class, interface, enum, or record expected
}
^
2 errors
Language: Java

class Azo_1_2_c {

    public static void main(String[] args) {

        try {
            //?¨????????????????1?????\??????????????????????????°??????????????????????????¨??\???????????????????????§???
            //?????????????????§"3 8 1" ??¨??\????????¨??????????????????
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            String inputData;
            //??\????????????????????????inputData?????????????????????
            inputData = reader.readLine();
            String[] strArray = inputData.split(" ");

            //???????????¨???List???????´?
            List<Integer> list = new ArrayList<Integer>();
            for(int i=0;i<strArray.length;i++){
                list.add(Integer.valueOf(strArray[i]));
            }
            //???????????????
            Collections.sort(list);

            //????????????????????\
            StringBuilder sb = new StringBuilder();
            for(int i=0 ; i<list.size() ; i++){
                if(i != 0){
                    sb.append(" ");
                }
                sb.append(String.valueOf(list.get(i)));
            }
            //??????
            System.out.println(sb.toString());

        } catch (IOException e) {
            e.printStackTrace();
        }

    }

}

Compiler output:
Main.java:8: error: cannot find symbol
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            ^
  symbol:   class BufferedReader
  location: class Azo_1_2_c
Main.java:8: error: cannot find symbol
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
                                        ^
  symbol:   class BufferedReader
  location: class Azo_1_2_c
Main.java:8: error: cannot find symbol
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
                                                           ^
  symbol:   class InputStreamReader
  location: class Azo_1_2_c
Main.java:15: error: cannot find symbol
            List<Integer> list = new ArrayList<Integer>();
            ^
  symbol:   class List
  location: class Azo_1_2_c
Main.java:15: error: cannot find symbol
            List<Integer> list = new ArrayList<Integer>();
                                     ^
  symbol:   class ArrayList
  location: class Azo_1_2_c
Main.java:20: error: cannot find symbol
            Collections.sort(list);
            ^
  symbol:   variable Collections
  location: class Azo_1_2_c
Main.java:33: error: cannot find symbol
        } catch (IOException e) {
                 ^
  symbol:   class IOException
  location: class Azo_1_2_c
7 errors
Language: Java


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

public class Azo_1_2_c {

    public static void main(String[] args) {

        try {
            //?¨????????????????1?????\??????????????????????????°??????????????????????????¨??\???????????????????????§???
            //?????????????????§"3 8 1" ??¨??\????????¨??????????????????
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            String inputData;
            //??\????????????????????????inputData?????????????????????
            inputData = reader.readLine();
            String[] strArray = inputData.split(" ");

            //???????????¨???List???????´?
            List<Integer> list = new ArrayList<Integer>();
            for(int i=0;i<strArray.length;i++){
                list.add(Integer.valueOf(strArray[i]));
            }
            //???????????????
            Collections.sort(list);

            //????????????????????\
            StringBuilder sb = new StringBuilder();
            for(int i=0 ; i<list.size() ; i++){
                if(i != 0){
                    sb.append(" ");
                }
                sb.append(String.valueOf(list.get(i)));
            }
            //??????
            System.out.println(sb.toString());

        } catch (IOException e) {
            e.printStackTrace();
        }

    }

}

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

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

class Azo_1_2_c {

    public static void main(String[] args) {

        try {
            BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
            String inputData;
            inputData = reader.readLine();
            String[] strArray = inputData.split(" ");
            List<Integer> list = new ArrayList<Integer>();
            for(int i=0;i<strArray.length;i++){
                list.add(Integer.valueOf(strArray[i]));
            }
            Collections.sort(list);

            StringBuilder sb = new StringBuilder();
            for(int i=0 ; i<list.size() ; i++){
                if(i != 0){
                    sb.append(" ");
                }
                sb.append(String.valueOf(list.get(i)));
            }
            System.out.println(sb.toString());

        } catch (IOException e) {
            e.printStackTrace();
thow e;
        }

    }

}

Compiler output:
Main.java:34: error: cannot find symbol
thow e;
^
  symbol:   class thow
  location: class Azo_1_2_c
Main.java:34: error: variable e is already defined in method main(String[])
thow e;
     ^
2 errors
Language: Java

    public static void main(String[] args){
    try{
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String str = reader.readLine();
        String[] arr  = str.split(" ");
        int a = Integer.parseInt(arr[0]);
        int b = Integer.parseInt(arr[1]);
        int c = Integer.parseInt(arr[2]);
        int temp = 0;
        if(a>b){
           temp= a ;
            a=b;
           b= temp;
         }if(b>c){
          
           temp = b;
           b=c;
           c=temp;
        }if(a>b){
            temp= a ;
            a=b;
           b= temp;
            }
        System.out.println(a+" "+b+" "+c);
    }catch(IOException e){
     e.printStackTrace();
    }
}

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
    public static void main(String[] args){
                  ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: Java

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

 public class Main_1{
    public static void main(String[] args){
    try{
        BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
        String str = reader.readLine();
        String[] arr  = str.split(" ");
        int a = Integer.parseInt(arr[0]);
        int b = Integer.parseInt(arr[1]);
        int c = Integer.parseInt(arr[2]);
        int temp = 0;
        if(a>b){
           temp= a ;
            a=b;
           b= temp;
         }if(b>c){
          
           temp = b;
           b=c;
           c=temp;
        }if(a>b){
            temp= a ;
            a=b;
           b= temp;
            }
        System.out.println(a+" "+b+" "+c);
    }catch(IOException e){
     e.printStackTrace();
    }
}
}

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

 import java.io.*;
     
class Main
{
     static InputStreamReader isr;
     static BufferedReader br;
     static String output;
     static String[] data = new String[3];
     
     static void initialize ()
     {
          isr = new InputStreamReader(System.in);
          br = new BufferedReader(isr);
          output = null;
          for (String d : data)
          {
               d = null;
          }
     }

     static void output ()
     {
           String tmp = null;
           for (int i=0; i<2; ++i) {
                if (Integer.parseInt(data[i])>Integer.parseInt(data[++i])) {
                     tmp = data[--i];
                     data[i] = data[++i];
                     data[i] = tmp;
                }
           }
           for (i=0; i<data.length;++i) {
                if (i>data.length-1) {
                     System.out.print(data[i] + " ");
                } else {
                     System.out.println(data[i]);
                }
           }
     }
     
     public static void main (String[] args)
     {
           initialize();
           try {
                data = (br.readLine()).split(" ");
                output();
           } catch (IOException e) {
           } finally {
                try {
                      br.close();
                } catch (IOException e) {
                }
           }
     }

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

import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner();
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();

        int first = c;
        int second = b;
        int third = a;

        
        if (a>b && b>c) 
            first = a; second = b; third = c;
        if (a>b && b<c && a<c)
            first = c; second = a; third = b;
        if (a>b && b<c && a>c)
            first = a; second = c; third = b;
        if (a<b && b<c)
            first = c; second = b; third = a;
        if (a<b && b>c && a>c)
            first = b; second = a; third = b;
        if (a<b && b>c && c>a)
            first = b; second = c; third = a;

        System.out.println(third + " " + second + " " + third);
    }
}
        

Compiler output:
Main.java:5: error: no suitable constructor found for Scanner(no arguments)
        Scanner scan = new Scanner();
                       ^
    constructor Scanner.Scanner(Readable,Pattern) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Readable) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(InputStream,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(File,CharsetDecoder) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(Path,Charset) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,String) is not applicable
      (actual and formal argument lists differ in length)
    constructor Scanner.Scanner(ReadableByteChannel,Charset) is not applicable
      (actual and formal argument lists differ in length)
1 error
Language: Java

import java.util.*;

class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
    
        int first, second, third;
        if (a>=b && b>=c) 
            first = a; second = b; third = c;
        else if (a>=b && b<=c && a<=c)
            first = c; second = a; third = b;
        else if (a>=b && b<=c && a>=c)
            first = a; second = c; third = b;
        else if (a<=b && b<=c)
            first = c; second = b; third = a;
        else if (a<=b && b>=c && a>=c)
            first = b; second = a; third = b;
        else if (a<=b && b>=c && c>=a)
            first = b; second = c; third = a;

        System.out.println(third + " " + second + " " + third);
    }
}

Compiler output:
Main.java:13: error: 'else' without 'if'
        else if (a>=b && b<=c && a<=c)
        ^
Main.java:15: error: 'else' without 'if'
        else if (a>=b && b<=c && a>=c)
        ^
Main.java:17: error: 'else' without 'if'
        else if (a<=b && b<=c)
        ^
Main.java:19: error: 'else' without 'if'
        else if (a<=b && b>=c && a>=c)
        ^
Main.java:21: error: 'else' without 'if'
        else if (a<=b && b>=c && c>=a)
        ^
5 errors