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

import java.util.Scanner;                                                   
import java.util.*;
 
class Main{
     public static void main(String[] args){
             Scanner in = new Scanner(System.in);
             int a = in.nextInt();
             int b = in.nextInt();
             int c = in.nextInt();
             int[] sort = {a,b,c,};
             for(int i=0; i<2; i++){
              for(int j=0; j<2-i; j++){
               if(sort[j]<sort[j+1]){
                 int temp=sort[j];
                 sort[j]=sort[j+1];
                 sort[j+1]=temp;
               }
              }
             }
             
             System.out.print("sort[0]" + " " + "sort[1]" + " " sort[2]");

      }
   
}

Compiler output:
Main.java:21: error: ')' or ',' expected
             System.out.print("sort[0]" + " " + "sort[1]" + " " sort[2]");
                                                               ^
Main.java:21: error: unclosed string literal
             System.out.print("sort[0]" + " " + "sort[1]" + " " sort[2]");
                                                                       ^
Main.java:21: error: not a statement
             System.out.print("sort[0]" + " " + "sort[1]" + " " sort[2]");
                                                                    ^
3 errors
Language: Java

import java.util.Scanner;                                                   
import java.util.*;
 
class Main{
     public static void main(String[] args){
             Scanner in = new Scanner(System.in);
             int a = in.nextInt();
             int b = in.nextInt();
             int c = in.nextInt();
             int[] sort = {a,b,c,};
             for(int i=0; i<2; i++){
              for(int j=0; j<2-i; j++){
               if(sort[j]<sort[j+1]){
                 int temp=sort[j];
                 sort[j]=sort[j+1];
                 sort[j+1]=temp;
               }
              }
             }
             
             System.out.print("sort[2]" + " " + "sort[1]" + " " + "sort[0]");

      }
   }
}

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

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

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

        int[] num = {a, b, c};
        Arrays.sort(num);
        System.out.print(num[0] + " " + num[1] + " " + num[2]);
    }
}

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

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

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

        int[] num = {a, b, c};
        Arrays.sort(num);
        System.out.println(num[0] + " " + num[1] + " " + num[2]);
    }
}

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

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

        int[] x = {a, b , c};

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

Compiler output:
Main.java:4: error: class C is public, should be declared in a file named C.java
public class C { 
       ^
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 =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 if(b<a){
  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 if(c<a){
  if(a<b){
   System.out.printf("%d %d %d\n",c,a,b);
   }else if(c<b){
   System.out.printf("%d %d %d\n",c,b,a);
  }
}

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

import java.util.Scanner;

public class Main{
 public static void(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.plintf("%d %d %d ?\n", a,b,c);
    }else if(a<c){
     System.out.plintf("%d %d %d ?\n", a,c,b);
    }else{
      System.out.plintf("%d %d %d ?\n", c,a,b);
    }
   }else{
     if(a<c){
     System.out.plintf("%d %d %d ?\n", b,c,a);
    }else if(b<c){
     System.out.plintf("%d %d %d ?\n", b,c,a);
    }else{
      System.out.plintf("%d %d %d ?\n", c,b,a);
    }
  }
}

Compiler output:
Main.java:4: error: <identifier> expected
 public static void(String[] args){
                   ^
Main.java:26: error: reached end of file while parsing
}
 ^
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 if(b<a){
  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 if(c<a){
  if(a<b){
   System.out.printf("%d %d %d\n",c,a,b);
   }else if(c<b){
   System.out.printf("%d %d %d\n",c,b,a);
  }
 }
}

Compiler output:
Main.java:28: error: reached end of file while parsing
}
 ^
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 =  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,c,a);
    }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:26: error: reached end of file while parsing
}
 ^
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 =  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:26: error: reached end of file while parsing
}
 ^
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 =sc.nextInt();
 int b =sc.nextInt();
 int c =sc.nextInt();
 if(a<b){
  if(b<c){
   System.out.println("%d %d %d/n",a,b,c);
   }else if(a<c){
   System.out.printf("%d %d %d/n",a,c,b);
  }
 }else if(b<a){
  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 if(c<a){
  if(a<b){
   System.out.printf("%d %d %d/n",c,a,b);
   }else if(c<b){
   System.out.printf("%d %d %d/n",c,b,a);
  }
 }
}
}

Compiler output:
Main.java:11: error: no suitable method found for println(String,int,int,int)
   System.out.println("%d %d %d/n",a,b,c);
             ^
    method PrintStream.println() is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(boolean) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(int) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(long) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(float) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(double) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(char[]) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(String) is not applicable
      (actual and formal argument lists differ in length)
    method PrintStream.println(Object) is not applicable
      (actual and formal argument lists differ in length)
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 = 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(b<a)
		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: ')' or ',' expected
			System.out.printf("%d %d %d\n"b,a,c);
			                              ^
Main.java:20: error: ';' expected
			System.out.printf("%d %d %d\n"b,a,c);
			                               ^
Main.java:20: error: not a statement
			System.out.printf("%d %d %d\n"b,a,c);
			                                ^
Main.java:20: error: ';' expected
			System.out.printf("%d %d %d\n"b,a,c);
			                                 ^
Main.java:20: error: not a statement
			System.out.printf("%d %d %d\n"b,a,c);
			                                  ^
Main.java:20: error: ';' expected
			System.out.printf("%d %d %d\n"b,a,c);
			                                   ^
Main.java:30: error: class, interface, enum, or record expected
}
^
7 errors
Language: Java

import java.util.Scanner;

public class Kadai2 {
		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 && b <= c)
				System.out.printf("%d %d %d\n", a, b, c);
			else if (a <= c && c <= b)
				System.out.printf("%d %d %d\n", a, c, b);
			else if (b <= a && a <= c)
				System.out.printf("%d %d %d\n", b, a, c);
			else if (b <= c && c <= a)
				System.out.printf("%d %d %d\n", b, c, a);
			else if (c <= a && a <= b)
				System.out.printf("%d %d %d\n", c, a, b);
			else if (c <= b && b <= a)
				System.out.printf("%d %d %d\n", c, b, a);
		}
}

Compiler output:
Main.java:3: error: class Kadai2 is public, should be declared in a file named Kadai2.java
public class Kadai2 {
       ^
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 = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if(a>b){
int tenp=a;
a=b;
b=temp;
}
if(b>c){
int temp=b;
b=c;
c=temp;
}
if(a>b){
int temp=a;
a=b;
b=temp;
}
System.out.println(a+" "+b+" "+c);
}
}

Compiler output:
Main.java:11: error: cannot find symbol
b=temp;
  ^
  symbol:   variable temp
  location: class Main
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 = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if(a>b){
int tenp1=a;
a=b;
b=temp1;
}
if(b>c){
int temp2=b;
b=c;
c=temp2;
}
if(a>b){
int temp3=a;
a=b;
b=temp3;
}
System.out.println(a+" "+b+" "+c);
}
}

Compiler output:
Main.java:11: error: cannot find symbol
b=temp1;
  ^
  symbol:   variable temp1
  location: class Main
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 = sc.nextInt();
 int b = sc.nextInt();
 int c = sc.nextInt();
 if(a>b){
 int tenp1=a;
 a=b;
 b=temp1;
 }
 if(b>c){
 int temp2=b;
 b=c; 
 c=temp2;
 }
 if(a>b){
 int temp3=a;
 a=b;
 b=temp3;
 }
 System.out.println(a+" "+b+" "+c);
 }
 }

Compiler output:
Main.java:11: error: cannot find symbol
 b=temp1;
   ^
  symbol:   variable temp1
  location: class Main
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 = sc.nextInt();
 int b = sc.nextInt();
 int c = sc.nextInt();
 if(a>b){
 int tenp1=a;
 int a=b;
 int b=temp1;
 }
 if(b>c){
 int temp2=b;
 int b=c; 
 int c=temp2;
 }
 if(a>b){
 int temp3=a;
 int a=b;
 int b=temp3;
 }
 System.out.println(a+" "+b+" "+c);
 }
 }

Compiler output:
Main.java:10: error: variable a is already defined in method main(String[])
 int a=b;
     ^
Main.java:11: error: variable b is already defined in method main(String[])
 int b=temp1;
     ^
Main.java:11: error: cannot find symbol
 int b=temp1;
       ^
  symbol:   variable temp1
  location: class Main
Main.java:15: error: variable b is already defined in method main(String[])
 int b=c; 
     ^
Main.java:16: error: variable c is already defined in method main(String[])
 int c=temp2;
     ^
Main.java:20: error: variable a is already defined in method main(String[])
 int a=b;
     ^
Main.java:21: error: variable b is already defined in method main(String[])
 int b=temp3;
     ^
7 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();
int tmp;
if(a>b){
temp=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:10: error: cannot find symbol
temp=a;
^
  symbol:   variable temp
  location: class Main
1 error
Language: Java

public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = scanner.nextInt();
        int b = scanner.nextInt();
        int c = scanner.nextInt();
        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:3: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner scanner = new Scanner(System.in);
                              ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

public class Numbers {
	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[] arr = {a,b,c};
		for(int i = 0; i < 3; i++){
			for(int j = i+1; j < 3; j++){
				if(arr[i] > arr[j]){
					int temp = arr[i];
					arr[i] = arr[j];
					arr[j] = temp;
				}
			}
			System.out.print(arr[i] + " ");
		
		}
	}

}

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

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

	String[] abc = in.readLine().split(" ");

		int a = Integer.parseInt(abc[0]);
		int b = Integer.parseInt(abc[1]);
		int c = Integer.parseInt(abc[2]);

		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:8: error: cannot find symbol
	String[] abc = in.readLine().split(" ");
	               ^
  symbol:   variable in
  location: class Main
1 error
Language: Java

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


			 if (a > b)
			 if (b < c)
			 if (a > c)
				 System.out.println(b + " " + c + " " + a);


			 if (a > b)
			 if (b < c)
			 if (a < c)
				 System.out.println(b + " " + a + " " + c);



			 if (a < b)
			 if (b > c)
			 if (a > c)
				 System.out.println(c + " " + a + " " + b);


			 if (a < b)
			 if (b > c)
			 if (a < c)
				 System.out.println(a + " " + c + " " + b);
		}

}

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

import java.io.*;
class sansei{
	public static void main(String[] args)throws IOException{
	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));

	String str = br.readLine();
	String[] line = str.split(" ");

	int a = Integer.parseInt(line[0]);
	int b = Integer.parseInt(line[1]);
	int c = Integer.parseInt(line[2]);

	int retu[] = { a , b , c};

	Arrays.sort(retu);

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

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

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

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

	String str = br.readLine();
	String[] line = str.split(" ");

	int a = Integer.parseInt(line[0]);
	int b = Integer.parseInt(line[1]);
	int c = Integer.parseInt(line[2]);

	int retu[] = { a , b , c};

	Arrays.sort(retu);

	for(String f: retu){
           System.out.print(f);
      }
}
}

Compiler output:
Main.java:19: error: incompatible types: int cannot be converted to String
	for(String f: retu){
	              ^
1 error
Language: Java

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

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[] sort = {a ,b ,c};
    Arrays.sort(sort);
      
    System.out.println(sort[0] " " + sort[1] + " " + sort[2]);
  }
}

Compiler output:
Main.java:14: error: ')' or ',' expected
    System.out.println(sort[0] " " + sort[1] + " " + sort[2]);
                              ^
Main.java:14: error: not a statement
    System.out.println(sort[0] " " + sort[1] + " " + sort[2]);
                                                   ^
Main.java:14: error: ';' expected
    System.out.println(sort[0] " " + sort[1] + " " + sort[2]);
                                                            ^
3 errors
Language: Java

import java.util.Scanner;
import java.util.Arrays;
import static java.lang.System.out;

class SortingThreeNumbers {

    public static int[] sorted( int[] inputs) {
        int[] res = Arrays.copyOf( inputs, inputs.length );

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

        return res;
    }

}

public class TestSortingThreeNumbers {
    public static void main( String... args) {
        Scanner scan = new Scanner( System.in);
        int[] inputs = new int[3];
        int i = 0;
        while ( scan.hasNext() ) {
            inputs[i] = scan.nextInt();
            i++;
        }

        StringBuilder output = new StringBuilder();
        for ( int num : SortingThreeNumbers.sorted( inputs ) ) {
            output.append( String.valueOf( num ) + " ");
        }

        out.println( output );
    }
}

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

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

public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String str = br.readLine();
		String strArray[] = str.split(" ");
		int a = Integer.parseInt(strArray[0]);
		int b = Integer.parseInt(strArray[1]);
		int c = Integer.parseInt(strArray[2]);

		if (a < b) {// a<b
			if (b < c) {// a<b<c
				System.out.println(a + " " + b + " " + c);
			} else {
				if (a < c) {// a<c<b
					System.out.println(a + " " + c + " " + b);
				} else {// c<a<b
					System.out.println(c + " " + a + " " + b);
				}
			}
		} else {// b<a
			if (a < c) {// b<a<c
				System.out.println(b + " " + a + " " + c);
			} else {
				if (b < c) {// b<c<a
					System.out.println(b + " " + c + " " + a);
				} else {// c<b<a
					System.out.println(c + " " + b + " " + a);
				}
			}
		}
	}
}

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

public class Main
{
	public static void main(String[] args) throws java.io.IOException
	{
		java.io.BufferedReader br = new java.io.BufferedReader( new java.io.InputStreamReader( System.in ) );
		
		String[] st = br.readLine().split(" ");
		int[] nums = new int[st.length];
		for( int i = 0 ; i < nums.length ; i++ ) nums[i] = Integer.parseInt( st[i] );
		
		
		int x;
		boolean exchange = true;
		while( exchange )
		{
			exchange = false;
			for( int i = 0 ; i < (nums.length - 1) ; i++ )
			{
				if( nums[i] > nums[i+1] )
				{
					x = nums[i];
					nums[i] = nums[i+1];
					nums[i+1] = x;
					exchange = true;
				}
			}
		}
		
		String result = "";
		for( int i = 0 ; i < nums.length ; i++ )
		{
			 if( i < (nums.length -1) ){
				 result += ( element + " " );
			}else{
				result += element;
			}
		}
		System.out.println( result );
	}
}

Compiler output:
Main.java:33: error: cannot find symbol
				 result += ( element + " " );
				             ^
  symbol:   variable element
  location: class Main
Main.java:35: error: cannot find symbol
				result += element;
				          ^
  symbol:   variable element
  location: class Main
2 errors
Language: Java


import java.io.*;
import java.until.*;

class Main{
    public static void main(String[] args) throws Exception{
        BufferedReader br new BufferedReader(new InputStreamReader(System.in));
        String s = br.readLine();
        String[] = spl=s.split("");
        int a = Integer.parseInt(spl[0]);
        int b = Integer.parseInt(spl[1]);
        int c = Integer.parseInt(spl[2]);
        
        Arrays.sort(spl);
        System.out.println(spl[0]+""+spl[1]+""+spl[2]);
    }
}

Compiler output:
Main.java:7: error: ';' expected
        BufferedReader br new BufferedReader(new InputStreamReader(System.in));
                         ^
Main.java:9: error: not a statement
        String[] = spl=s.split("");
              ^
Main.java:9: error: ';' expected
        String[] = spl=s.split("");
                ^
3 errors
Language: Java

import java.io.*;
import java.until.*;

class Main{
    public static void main(String[] args) throws Exception{
        BufferedReader br new BufferedReader(new InputStreamReader(System.in));
        String s = br.readLine();
        String[] spl=s.split(" ");
        int a = Integer.parseInt(spl[0]);
        int b = Integer.parseInt(spl[1]);
        int c = Integer.parseInt(spl[2]);
        
        Arrays.sort(spl);
        System.out.println(spl[0]+" "+spl[1]+" "+spl[2]);
    }
}

Compiler output:
Main.java:6: error: ';' expected
        BufferedReader br new BufferedReader(new InputStreamReader(System.in));
                         ^
1 error
Language: Java

import java.util.Scanner;

public class Main {
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int[] arr = new int[2];
    for(int i=0; i < 3; i++){
      arr[i] = scan.nextInt();
    }
    Array.sort(arr[]);
    for(int j=0; j < 3; j++){
      System.out.println(arr[i] + " ");
    }
  }
}

Compiler output:
Main.java:10: error: '.class' expected
    Array.sort(arr[]);
                    ^
1 error
Language: Java

import java.util.Scanner;

public class Main {
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int[] arr = new int[2];
    for(int i=0; i < 3; i++){
      arr[i] = scan.nextInt();
    }
    arr.Array.sort(arr[]);
    for(int j=0; j < 3; j++){
      System.out.println(arr[i] + " ");
    }
  }
}

Compiler output:
Main.java:10: error: '.class' expected
    arr.Array.sort(arr[]);
                        ^
1 error
Language: Java

import java.util.Scanner;

public class Main {
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int[] arr = new int[2];
    for(int i=0; i < 3; i++){
      arr[i] = scan.nextInt();
    }
    java.lang.Array.sort(arr[]);
    for(int j=0; j < 3; j++){
      System.out.println(arr[i] + " ");
    }
  }
}

Compiler output:
Main.java:10: error: '.class' expected
    java.lang.Array.sort(arr[]);
                              ^
1 error
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:22: error: illegal start of expression
      System.out.println(arr[k] + " " + );}
                                        ^
1 error
Language: Java

import java.util.Scanner;

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

Compiler output:
Main.java:21: error: cannot find symbol
      for(int k : arr[k]){
                      ^
  symbol:   variable k
  location: class Main
Main.java:21: error: for-each not applicable to expression type
      for(int k : arr[k]){
                     ^
  required: array or java.lang.Iterable
  found:    int
2 errors
Language: Java

import java.util.Scanner;

public class Main {
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    int[] arr = new int[2];
    for(int i=0; i < 3; i++){
      arr[i] = scan.nextInt();
    }
    int X;
    if(arr[0] > arr[1]) {
      X = arr[0]; arr[0] = arr[1]; arr[1] = X;
    }
    if(arr[1] > arr[2]) {
      X = arr[1]; arr[1] = arr[2]; arr[2] = X;
    }
    if(arr[0] > arr[1]) {
      X = arr[0]; arr[0] = arr[1]; arr[1] = X;
    }
      for(int k=0; k<3; k++){
      System.out.println(arr[k] + " ");}
    }
  }
}

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

import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
import java.util.Scanner;
import java.util.stream.Collectors;

public class ITP1_2_C {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int a = Integer.parseInt(scanner.next());
        int b = Integer.parseInt(scanner.next());
        int c = Integer.parseInt(scanner.next());

        List<Integer> list = Arrays.asList(a, b, c);
        List<String> stringList = list.stream()
                .sorted(Comparator.naturalOrder())
                .map(integer -> String.valueOf(integer.intValue()))
                .collect(Collectors.toList());

        String answer = String.join(" ", stringList);

        System.out.println(answer);
    }
}

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

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


public class Maini {
	public static void main(String[] args) throws IOException {
		BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
		String [] str = bufferedReader.readLine().split(" ");
		Integer a = Integer.parseInt(str[0]);
		Integer b = Integer.parseInt(str[1]);
		Integer c = Integer.parseInt(str[2]);
		Integer tmp;
		
		Integer [] inlist = new Integer[str.length];
		
		for(int i = 0; i < str.length; i++){
			inlist[i] = Integer.parseInt(str[i]);
		}
		Arrays.sort(inlist);
		for (int i = 0; i < inlist.length; i++) {
			System.out.println(inlist[i]);
		}

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

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


public class Main {
	public static void main(String[] args) throws IOException {
		BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
		String [] str = bufferedReader.readLine().split(" ");
		Integer a = Integer.parseInt(str[0]);
		Integer b = Integer.parseInt(str[1]);
		Integer c = Integer.parseInt(str[2]);
		Integer tmp;
		
		Integer [] inlist = new Integer[str.length];
		
		for(int i = 0; i < str.length; i++){
			inlist[i] = Integer.parseInt(str[i]);
		}
		Arrays.sort(inlist);
		for (int i = 0; i < inlist.length; i++) {
			System.out.println(inlist[i]);
		}
}

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

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


public class Maini {
	public static void main(String[] args) throws IOException {
		BufferedReader bufferedReader = new BufferedReader(new InputStreamReader(System.in));
		String [] str = bufferedReader.readLine().split(" ");
		Integer a = Integer.parseInt(str[0]);
		Integer b = Integer.parseInt(str[1]);
		Integer c = Integer.parseInt(str[2]);
		Integer tmp;
		
		Integer [] inlist = new Integer[str.length];
		
		for(int i = 0; i < str.length; i++){
			inlist[i] = Integer.parseInt(str[i]);
		}
		Arrays.sort(inlist);
		int d = inlist[0];
		int e = inlist[1];
		int f = inlist[2];
		
		
		for (int i = 0; i < inlist.length; i++) {
			System.out.println(inlist[0] + " "+ inlist[1] + " " + inlist[2]);
		}
}}

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

import java.util.Scanner;
public class Sort {
public static void main(String[] args) {

        Scanner in = new Scanner(System.in);
        String str[];
        str = new String[3];
        int num[];
        num = new int[3];
        int num_yobi = 0;
        for(int i=0; i<=2; i++)
            {
            str[i] = in.next();
            num[i] = Integer.parseInt(str[i]);
            }
        for(int j=0; j<=1; j++)
            {
            for(int i=0; i<=1-j; i++)
                {if(num[i] > num[i+1])
                    {
                    num_yobi = num[i];
                    num[i] = num[i+1];
                    num[i+1] = num_yobi;
                    }
                }
            }
        System.out.println(num[0]+" "+num[1]+" "+num[2]);
    }
    
}

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

import java.util.*;
public class Main7{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    sc.useDelimiter("\\s");
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();

    if(a > b ){
     int t = a;   
         a = b;
         b = t; 
         if(b > c){
     int y = b;
         b = c;
         c = y;

            if(a > b){
               int u = b;
               b = a;
               a = u;


            }
       }
    }
    
    if(a == c){
               int i = b;
               b = c;
               c = i;
     }

	System.out.println(a + " " + b + " " + c);

    

       
   
  }

}

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

import java.io.*;

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

        //?¨??????\???????????????????????§??????????????´??°????????????
        String[] str = br.readLine().split(" ");
        int[] num = new int[str.length];
        for(int i = 0; i < str.length; i++){
            num[i] = Integer.parseInt(str[i]);
        }


        //???????????????????°?????????¢???
        for(int i = 0; i < str.length; i++){
            int indexMin = i;
            for(int j = i + 1; j < str.length; j++){
                if( num[j] < num[indexMin] ){
                    indexMin = j;
                }
            }

            //????°??????¨??????????´??????\????????????
            int swp = num[indexMin];
            num[indexMin] = num[i];
            num[i] = swp;
        }
        System.out.println(num[0]+" "+num[1]+" "+num[2]);
        }
    }
}

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

import java.io.*;

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

        //?¨??????\???????????????????????§??????????????´??°????????????
        String[] str = br.readLine().split(" ");
        int[] num = new int[str.length];
        for(int i = 0; i < str.length; i++){
            num[i] = Integer.parseInt(str[i]);
        }


        //???????????????????°?????????¢???
        for(int i = 0; i < str.length; i++){
            int indexMin = i;
            for(int j = i + 1; j < str.length; j++){
                if( num[j] < num[indexMin] ){
                    indexMin = j;
                }
            }

            //????°??????¨??????????´??????\????????????
            int swp = num[indexMin];
            num[indexMin] = num[i];
            num[i] = swp;
        }
        System.out.println(num[0]+" "+num[1]+" "+num[2]);
        }
    }
}

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

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();
		int temp = 0;
		
		if(a > b){
			temp = b;
			b = a;
			a = temp;
		}
		if (b > c){
			temp = c;
			c = b;
			b = temp;
		}
		if(a > b){
			temp = b;
			b = a;
			a = temp;
		}
		System.out.println(a + " "  + b + " " + c);
	}
}

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

import java.util.Scanner;

puublic 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 temp;
		
		if (a > b){
			temp = b;
			b = a;
			a = temp;
		}
		
		if (b > c){
			temp = c;
			c = b;
			b = temp;
		}
		
		System.out.println(a + " " + b + " " + c);
	}
}

Compiler output:
Main.java:3: error: class, interface, enum, or record expected
puublic class Main{
^
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 = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
    
    if(a<b){
    	if(b<c){
    		System.out.println(a+" "+b+" "+c);
    	}else if(c<a){
    		System.out.println(c+" "+a+" "+b);
    	}else{
    		System.out.println(a+" "+c+" "+b);
    	}
    }else{
    	if(a<c){
    		System.out.println(b+" "+a+" "+c);
    	}else if(c<b){
    		System.out.println(c+" "+b+" "+a);
    	}else{
    		System.out.println(b+" "+c+" "+a);
    	}
    	
 
    }
    
  
  }

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


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

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
b=c;
^
Main.java:3: error: class, interface, enum, or record expected
c=z;
^
Main.java:4: error: class, interface, enum, or record expected
}
^
Main.java:7: error: class, interface, enum, or record expected
c=d;
^
Main.java:8: error: class, interface, enum, or record expected
d=z;
^
Main.java:9: error: class, interface, enum, or record expected
}if(b>c){
^
Main.java:11: error: class, interface, enum, or record expected
b=c;
^
Main.java:12: error: class, interface, enum, or record expected
c=z;
^
Main.java:13: error: class, interface, enum, or record expected
}
^
Main.java:15: error: class, interface, enum, or record expected
}
^
10 errors
Language: Java

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

}

Compiler output:
Main.java:7: error: ']' expected
        int array[0] = sc.nextInt();
                  ^
Main.java:8: error: ']' expected
        int array[1] = sc.nextInt();
                  ^
Main.java:9: error: ']' expected
        int array[2] = sc.nextInt();
                  ^
Main.java:11: error: not a statement
        Array.sort[array];
                  ^
4 errors
Language: Java

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

}

Compiler output:
Main.java:11: error: not a statement
        Array.sort[array];
                  ^
1 error
Language: Java

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

}

Compiler output:
Main.java:11: error: not a statement
        Arrays.sort[array];
                   ^
1 error
Language: Java

import java.io.*;
import java.util.*;
 
public class Main{
public static void main(String[] args){
    try{
    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    String[] str = br.readLine().split(" ");
    List<Integer> num = new ArrayList<Integer>();
     
        for(int i = 0; i < str.length; i++){
        num.add(Integer.parseInt(str[i]));
        }
     
    Collections.sort(num);
     
        for(int n = 0; n < num.size(); n++){
            if(n != num.size()-1){
            System.out.print(num.get(n) + " ");
            }else{
            System.out.println(num.get(n));
            }
        }
 
    }catch(IOException e){
    System.out.println(e);
    }
}   

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


3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 
import java.io.*;
 
class Main {
    public static void main (String[] args) throws Exception {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        String[] strArr = br.readLine().split(" ");
        int[] numArr = {
            Integer.parseInt(strArr[0]),
            Integer.parseInt(strArr[1]),
            Integer.parseInt(strArr[2])
        };
        int i, j, temp;
        for (i = 0; i < 2; i++) {
            for (j = 0; j < 2 - i; j++) {
                if (numArr[j] > numArr[j+1]) {
                    temp = numArr[j];
                    numArr[j] = numArr[j+1];
                    numArr[j+1] = temp;
                }
            }
        }
        System.out.println(numArr[0]+" "+numArr[1]+" "+numArr[2]);
    }
}
 

Compiler output:
Main.java:2: error: class, interface, enum, or record expected
3
^
1 error
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