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

import java.io.*;
import java.lang.*; 
 
class Main{ 
public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
  
        String[ ] str_div = br.readLine().split(" ");
        String[ ] str_div_sorted = str_div.sort();
????????????
        int x = Integer.parseInt(str_div_sorted[0]);
        int y = Integer.parseInt(str_div_sorted[1]);
        int z = Integer.parseInt(str_div_sorted[2]);
        
        System.out.println(x + " " + y + " " + z);
 }
}
   

Compiler output:
Main.java:10: error: illegal start of expression
????????????
^
Main.java:10: error: illegal start of expression
????????????
 ^
Main.java:10: error: illegal start of expression
????????????
  ^
Main.java:10: error: illegal start of expression
????????????
   ^
Main.java:10: error: illegal start of expression
????????????
    ^
Main.java:10: error: illegal start of expression
????????????
     ^
Main.java:10: error: illegal start of expression
????????????
      ^
Main.java:10: error: illegal start of expression
????????????
       ^
Main.java:10: error: illegal start of expression
????????????
        ^
Main.java:10: error: illegal start of expression
????????????
         ^
Main.java:10: error: illegal start of expression
????????????
          ^
Main.java:10: error: illegal start of expression
????????????
           ^
Main.java:11: error: '.class' expected
        int x = Integer.parseInt(str_div_sorted[0]);
            ^
Main.java:11: error: : expected
        int x = Integer.parseInt(str_div_sorted[0]);
                                                   ^
14 errors
Language: Java

import java.io.*;
import java.lang.*; 
import java.util.*; 
 
class Main{ 
public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        ArrayList<String> str = new ArrayList<String>();
         str.add(br.readLine().split(" "));
          Collections.sort(str);
????????????
        int x = Integer.parseInt(str[0]);
        int y = Integer.parseInt(str[1]);
        int z = Integer.parseInt(str[2]);
        
        System.out.println(x + " " + y + " " + z);
 }
}
   

Compiler output:
Main.java:12: error: illegal start of expression
????????????
^
Main.java:12: error: illegal start of expression
????????????
 ^
Main.java:12: error: illegal start of expression
????????????
  ^
Main.java:12: error: illegal start of expression
????????????
   ^
Main.java:12: error: illegal start of expression
????????????
    ^
Main.java:12: error: illegal start of expression
????????????
     ^
Main.java:12: error: illegal start of expression
????????????
      ^
Main.java:12: error: illegal start of expression
????????????
       ^
Main.java:12: error: illegal start of expression
????????????
        ^
Main.java:12: error: illegal start of expression
????????????
         ^
Main.java:12: error: illegal start of expression
????????????
          ^
Main.java:12: error: illegal start of expression
????????????
           ^
Main.java:13: error: '.class' expected
        int x = Integer.parseInt(str[0]);
            ^
Main.java:13: error: : expected
        int x = Integer.parseInt(str[0]);
                                        ^
14 errors
Language: Java

import java.io.*;
import java.lang.*; 
import java.util.*; 
 
class Main{ 
public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        
        ArrayList<String> str = new ArrayList<String>();
         str.add(br.readLine().split(" "));
          Collections.sort(str);
          int x = Integer.parseInt(str[0]);
          int y = Integer.parseInt(str[1]);
          int z = Integer.parseInt(str[2]);
        
        System.out.println(x + " " + y + " " + z);
 }
}
   

Compiler output:
Main.java:10: error: incompatible types: String[] cannot be converted to String
         str.add(br.readLine().split(" "));
                                    ^
Main.java:12: error: array required, but ArrayList<String> found
          int x = Integer.parseInt(str[0]);
                                      ^
Main.java:13: error: array required, but ArrayList<String> found
          int y = Integer.parseInt(str[1]);
                                      ^
Main.java:14: error: array required, but ArrayList<String> found
          int z = Integer.parseInt(str[2]);
                                      ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
4 errors
Language: Java

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

         str.add(br.readLine().split(" "));
          Collections.sort(str);
          int x = Integer.parseInt(str[0]);
          int y = Integer.parseInt(str[1]);
          int z = Integer.parseInt(str[2]);
        System.out.println(x + " " + y + " " + z);
 }
}
   

Compiler output:
Main.java:10: error: incompatible types: String[] cannot be converted to String
         str.add(br.readLine().split(" "));
                                    ^
Main.java:12: error: array required, but ArrayList<String> found
          int x = Integer.parseInt(str[0]);
                                      ^
Main.java:13: error: array required, but ArrayList<String> found
          int y = Integer.parseInt(str[1]);
                                      ^
Main.java:14: error: array required, but ArrayList<String> found
          int z = Integer.parseInt(str[2]);
                                      ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
4 errors
Language: Java

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

         str.add(br.readLine().split(" "));
          Collections.sort(str);
          int x = Integer.parseInt(str[0]);
          int y = Integer.parseInt(str[1]);
          int z = Integer.parseInt(str[2]);
        System.out.println(x + " " + y + " " + z);
 }
}
   

Compiler output:
Main.java:7: error: cannot find symbol
        arrayList<String> str = new arrayList<>();
        ^
  symbol:   class arrayList
  location: class Main
Main.java:7: error: cannot find symbol
        arrayList<String> str = new arrayList<>();
                                    ^
  symbol:   class arrayList
  location: class Main
2 errors
Language: Java

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

         str.add(br.readLine().split(" "));
          Collections.sort(str);
          int x = Integer.parseInt(str[0]);
          int y = Integer.parseInt(str[1]);
          int z = Integer.parseInt(str[2]);
        System.out.println(x + " " + y + " " + z);
 }
}
   

Compiler output:
Main.java:10: error: incompatible types: String[] cannot be converted to String
         str.add(br.readLine().split(" "));
                                    ^
Main.java:12: error: array required, but ArrayList<String> found
          int x = Integer.parseInt(str[0]);
                                      ^
Main.java:13: error: array required, but ArrayList<String> found
          int y = Integer.parseInt(str[1]);
                                      ^
Main.java:14: error: array required, but ArrayList<String> found
          int z = Integer.parseInt(str[2]);
                                      ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
4 errors
Language: Java

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

         str.add(br.readLine().split(" "));
          Collections.sort(str);
          int x = Integer.parseInt(str[0]);
          int y = Integer.parseInt(str[1]);
          int z = Integer.parseInt(str[2]);
        System.out.println(x + " " + y + " " + z);
 }
}
   

Compiler output:
Main.java:10: error: incompatible types: String[] cannot be converted to String
         str.add(br.readLine().split(" "));
                                    ^
Main.java:12: error: array required, but List<String> found
          int x = Integer.parseInt(str[0]);
                                      ^
Main.java:13: error: array required, but List<String> found
          int y = Integer.parseInt(str[1]);
                                      ^
Main.java:14: error: array required, but List<String> found
          int z = Integer.parseInt(str[2]);
                                      ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
4 errors
Language: Java

import java.io.*;
import java.lang.*; 
import java.util.*; 
 
class Main{ 
public static void main(String[] args)throws IOException{
        List<String> str = new ArrayList<String>();
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
          str.add(br.readLine());
          Collections.sort(str);
          int x = Integer.parseInt(str[0]);
          int y = Integer.parseInt(str[1]);
          int z = Integer.parseInt(str[2]);
        System.out.println(x + " " + y + " " + z);
 }
}
   

Compiler output:
Main.java:11: error: array required, but List<String> found
          int x = Integer.parseInt(str[0]);
                                      ^
Main.java:12: error: array required, but List<String> found
          int y = Integer.parseInt(str[1]);
                                      ^
Main.java:13: error: array required, but List<String> found
          int z = Integer.parseInt(str[2]);
                                      ^
3 errors
Language: Java

import java.io.*;
import java.lang.*; 
import java.util.*; 
 
class Main{ 
public static void main(String[] args)throws IOException{
        List<String> str = new ArrayList<String>();
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
          str.add(br.readLine().split(" "));
          Collections.sort(str);
          int x = Integer.parseInt(str[0]);
          int y = Integer.parseInt(str[1]);
          int z = Integer.parseInt(str[2]);
        System.out.println(x + " " + y + " " + z);
 }
}
   

Compiler output:
Main.java:9: error: incompatible types: String[] cannot be converted to String
          str.add(br.readLine().split(" "));
                                     ^
Main.java:11: error: array required, but List<String> found
          int x = Integer.parseInt(str[0]);
                                      ^
Main.java:12: error: array required, but List<String> found
          int y = Integer.parseInt(str[1]);
                                      ^
Main.java:13: error: array required, but List<String> found
          int z = Integer.parseInt(str[2]);
                                      ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
4 errors
Language: Java

import java.io.*;
import java.lang.*; 
import java.util.*; 
 
class Main{ 
public static void main(String[] args)throws IOException{
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
          String[] str = br.readLine().split(" ");
          Collections.sort(str);
          int x = Integer.parseInt(str[0]);
          int y = Integer.parseInt(str[1]);
          int z = Integer.parseInt(str[2]);
        System.out.println(x + " " + y + " " + z);
 }
}
   

Compiler output:
Main.java:9: error: no suitable method found for sort(String[])
          Collections.sort(str);
                     ^
    method Collections.<T#1>sort(List<T#1>) is not applicable
      (cannot infer type-variable(s) T#1
        (argument mismatch; String[] cannot be converted to List<T#1>))
    method Collections.<T#2>sort(List<T#2>,Comparator<? super T#2>) is not applicable
      (cannot infer type-variable(s) T#2
        (actual and formal argument lists differ in length))
  where T#1,T#2 are type-variables:
    T#1 extends Comparable<? super T#1> declared in method <T#1>sort(List<T#1>)
    T#2 extends Object declared in method <T#2>sort(List<T#2>,Comparator<? super T#2>)
1 error
Language: Java

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

public class Main {

    public static void main(String[] args) {
        try {
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            String[] strArray = br.readLine().split("\\s");
            Integer[] intArray = new Integer[3];
            for (int i = 0; i < strArray.length; i++) {
                intArray[i] = Integer.valueOf(strArray[i]);
            }
            for (int i = 0; i < intArray.length - 1; i++) {
                for (int j = intArray.length - 1; j > i; j--) {
                    if (intArray[j] < intArray[j - 1]) {
                        int t = intArray[j];
                        intArray[j] = intArray[j - 1];
                        intArray[j - 1] = t;
                    }
                }
            }
            System.out.println(intArray[0]+" "+intArray[1]+" "+intArray[2]);
        } catch (IOException e) {
            System.err.println(e);
        }

    }
}

Compiler output:
Main.java:8: error: cannot find symbol
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
            ^
  symbol:   class BufferedReader
  location: class Main
Main.java:8: error: cannot find symbol
            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
                                    ^
  symbol:   class BufferedReader
  location: class Main
2 errors
Language: Java

public 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();
		int box;

		if (a > b) {
			box = a;
			a = b;
			b = box;
		}

		if (a > c) {
			box = a;
			a = c;
			c = box;
		}

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

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

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

import java.util.ArrayList;
import java.util.Scanner;

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();
		ArrayList<Integer> nums = new ArrayList<Integer>();
		nums.add(a);
		nums.add(b);
		nums.add(c);
		nums.sort(null);
		String answer = new String();
		answer += nums.get(0) + " " + nums.get(1) + " " + nums.get(2);
		System.out.println(answer);
	}

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

import java.util.ArrayList;
import java.util.Comparator;
import java.util.Scanner;

public class Range {
	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();
		ArrayList<Integer> nums = new ArrayList<Integer>();
		nums.add(a);
		nums.add(b);
		nums.add(c);
		Comparator<? super Integer> d = null;
		nums.sort(d);
		String answer = new String();
		answer += nums.get(0) + " " + nums.get(1) + " " + nums.get(2);
		System.out.println(answer);
	}

}

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

import java.util.Scanner;
public class aoj_5{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int a,b,c;
		int max,min,mid;
		a = sc.nextInt();
		b = sc.nextInt();
		c = sc.nextInt();
		if(a>b){
			if(a>c){
				max=a;
				if(b>c){
					mid=b;
					min=c;
				}else{
					min=b;
					mid=c;
				}
			}else{
				max=c;
				mid=a;
				min=b;
			}
		}else if(b>c){
			if(c>a){
				mid=c; min=a; max=b;
			}else{
				mid=a; min=c; max=b;
			}
		}
		System.out.print(max+" "+mid+" "+min);
	}
}

Compiler output:
Main.java:2: error: class aoj_5 is public, should be declared in a file named aoj_5.java
public class aoj_5{
       ^
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,b,c;
		int max,min,mid;
		a = sc.nextInt();
		b = sc.nextInt();
		c = sc.nextInt();
		if(a>b){
			if(a>c){
				max=a;
				if(b>c){
					mid=b;
					min=c;
				}else{
					min=b;
					mid=c;
				}
			}else{
				max=c;
				mid=a;
				min=b;
			}
		}else if(b>c){
			if(c>a){
				mid=c; min=a; max=b;
			}else{
				mid=a; min=c; max=b;
			}
		}
		System.out.print(max+" "+mid+" "+min);
	}
}

Compiler output:
Main.java:32: error: variable max might not have been initialized
		System.out.print(max+" "+mid+" "+min);
		                 ^
Main.java:32: error: variable mid might not have been initialized
		System.out.print(max+" "+mid+" "+min);
		                         ^
Main.java:32: error: variable min might not have been initialized
		System.out.print(max+" "+mid+" "+min);
		                                 ^
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,b,c;
		int max,min,mid;
		a = sc.nextInt();
		b = sc.nextInt();
		c = sc.nextInt();
		if(a>b){
			if(a>c){
				max=a;
				if(b>c){
					mid=b;
					min=c;
				}else{
					min=b;
					mid=c;
				}
			}else{
				max=c;
				mid=a;
				min=b;
			}
		}else if(b>c){
			if(c>a){
				mid=c; min=a; max=b;
			}else{
				mid=a; min=c; max=b;
			}
		}
		System.out.println(min+" "+mid+" "+max);
	}
}

Compiler output:
Main.java:32: error: variable min might not have been initialized
		System.out.println(min+" "+mid+" "+max);
		                   ^
Main.java:32: error: variable mid might not have been initialized
		System.out.println(min+" "+mid+" "+max);
		                           ^
Main.java:32: error: variable max might not have been initialized
		System.out.println(min+" "+mid+" "+max);
		                                   ^
3 errors
Language: Java

import java.util.Scanner;

public class Test7 {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);

		int intInput1 = scan.nextInt();
		int intInput2 = scan.nextInt();
		int intInput3 = scan.nextInt();
		int intSub = 0;
		if(intInput1 > intInput2){
			intSub = intInput1;
			intInput1 = intInput2;
			intInput2 = intSub;
			if(intInput2 > intInput3){
				intSub = intInput2;
				intInput2 = intInput3;
				intInput3 = intSub;
			}
		}else if(intInput2 > intInput3){
			intSub = intInput2;
			intInput2 = intInput3;
			intInput3 = intSub;
		}
		if(intInput1 > intInput2){
			intSub = intInput1;
			intInput1 = intInput2;
			intInput2 = intSub;
			if(intInput2 > intInput3){
				intSub = intInput2;
				intInput2 = intInput3;
				intInput3 =intInput2;
			}
		}
		System.out.println(intInput1 + " " + intInput2 + " " + intInput3);
	}
}

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

import java.util.Scanner;

public class ThreeNumber {

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

		//System.out.println("??\???>>");

		Scanner scan = new Scanner(System.in);

		int box = 3;
		int ary[];
		ary = new int[box];
		for(int i = 0; i < ary.length ; i++){

			ary[i] = scan.nextInt();
			//System.out.println(i + ":"  + ary[i]);
		}

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

			for(int j = i + 1; j < ary.length; j++){

				if(ary[i] > ary[j]){
					int temp = ary[i];
					ary[i] = ary[j];
					ary[j] = temp;
				}
			}
			System.out.print(ary[i] + " ");
		}


	}

}

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

import java.util.Scanner;
class Main{
    Scanner sc = new Scanner(System.in);
	int[] stn;
	String A;
	int N=2
	
	void bc3(){
		stn = new int[N];
		stn[N] = sc.nextInt();
	
		
	
	
	public static void main(String[]agrs){
		new Main().bc3();
	}
}

Compiler output:
Main.java:6: error: ';' expected
	int N=2
	       ^
Main.java:15: error: illegal start of expression
	public static void main(String[]agrs){
	^
2 errors
Language: Java

import java.util.*;
class Main {
public static void main(String[]args)throws Exception {
Scanner sc = new Scanner(System.in);
int [] as = new int[3];
for(int i = 0; i < 3; i++) as[i] = sc.nextTnt();
Arrays.sort(as);
for(int i = 0; i < 3; i++) Sysem.out.print((i>0 ? " ":"") + as[i]);
System.out.println();
}
}

Compiler output:
Main.java:6: error: cannot find symbol
for(int i = 0; i < 3; i++) as[i] = sc.nextTnt();
                                     ^
  symbol:   method nextTnt()
  location: variable sc of type Scanner
Main.java:8: error: package Sysem does not exist
for(int i = 0; i < 3; i++) Sysem.out.print((i>0 ? " ":"") + as[i]);
                                ^
2 errors
Language: Java

import java.util.Scanner;

public class Main{
  public static void main(Stirng[] args){
    Scanner in = new Scanner(System.in);
    int a = in.nextInt();
    int b = in.nextInt();
    int c = in.nextInt();
    
    if( a > b ){
      int t = a;
      a = b;
      b = t;
    }
    if( b > c ){
      t = a;
      a = b;
      b = t;
    }
    if( a > b ){
      t = a;
      a = b;
      b = t;
    }
    System.out.println(""+a+" "+b+" "+c+"");
  }
}

Compiler output:
Main.java:4: error: cannot find symbol
  public static void main(Stirng[] args){
                          ^
  symbol:   class Stirng
  location: class Main
Main.java:16: error: cannot find symbol
      t = a;
      ^
  symbol:   variable t
  location: class Main
Main.java:18: error: cannot find symbol
      b = t;
          ^
  symbol:   variable t
  location: class Main
Main.java:21: error: cannot find symbol
      t = a;
      ^
  symbol:   variable t
  location: class Main
Main.java:23: error: cannot find symbol
      b = t;
          ^
  symbol:   variable t
  location: class Main
5 errors
Language: Java

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

public class ITP1_2_C {
    public static void main(String[] args) {
        Scanner sc = new Scanner (System.in);
        while(sc.hasNext()){
            String[] inputstr = sc.nextLine().split(" ");
            Arrays.sort(inputstr);
            int inputnum = Integer.parseInt(inputstr[0]);
            int inputnum2 = Integer.parseInt(inputstr[1]);
            int inputnum3 = Integer.parseInt(inputstr[2]);
            System.out.println(inputnum+" "+inputnum2+" "+inputnum3);
        }
    }
}

Compiler output:
Main.java:4: 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.*;

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

        String[] line = reader.readLine().split(" ");
        int[] num = new int[line.length];
        for (int i = 0; i < line.length; i++) {
            num[i] = Integer.parseInt(line[i]);
        }

        for (int i = 0; i < num.length - 1; i++) {
            int minValue = num[i];
            int minIndex = i;
            for (int j = i + 1; j < num.length; j++) {
                if (num[i] > num[j]) {
                    minValue = num[j];
                    minIndex = j;
                }
            }
            int w = num[i];
            num[i] = num[j];
            num[j] = w;
        }

        for (int i : num) {
            System.out.print(num + " ");
        }
    }
}

Compiler output:
Main.java:24: error: cannot find symbol
            num[i] = num[j];
                         ^
  symbol:   variable j
  location: class Main
Main.java:25: error: cannot find symbol
            num[j] = w;
                ^
  symbol:   variable j
  location: class Main
2 errors
Language: Java

import java.util.Scanner;
class Min{
public static void main(String[] args){
Scanner scan=new Scanner(System.in);
String A=scan.next();
String B=scan.next();
String C=scan.next();
int a=Integer.parseInt(A);
int b=Integer.parseInt(B);
int c=Integer.parseInt(C);
int okiba;
if(a>b){
okiba=a;
a=b;
b=okiba; 
}
if(b>c){
oiba=b;
b=c;
c=okiba; 
if(a>b){
okiba=a;
a=b;
b=okiba; 
}
}
println(a+" "+b+" "+c)
}
}

Compiler output:
Main.java:27: error: ';' expected
println(a+" "+b+" "+c)
                      ^
1 error
Language: Java

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

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

import java.io.*;
import java.util.*;
public class Main {
     public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	StringTokenizer s = new StringTokenizer(br.readLine()," ");
	input[3];
	input[0] = Integer.parseInt(s.nextToken());
	input[1] = Integer.parseInt(s.nextToken());
	input[2] = Integer.parseInt(s.nextToken());

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

Compiler output:
Main.java:7: error: not a statement
	input[3];
	     ^
1 error
Language: Java

import java.io.*;
import java.util.*;
public class Main {
     public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	StringTokenizer s = new StringTokenizer(br.readLine()," ");
	int[] input;
	input[0] = Integer.parseInt(s.nextToken());
	input[1] = Integer.parseInt(s.nextToken());
	input[2] = Integer.parseInt(s.nextToken());

	for(int i=input.length();i=0;i--){
		for(int j=0;j<i;j++){
		if(input[j]>input[j+1]){
			input[j] = input[j+1];
			}
		}
	}
	System.out.println(input[0] + input[1] + input[2]);
    }
}

Compiler output:
Main.java:12: error: cannot find symbol
	for(int i=input.length();i=0;i--){
	               ^
  symbol:   method length()
  location: variable input of type int[]
Main.java:12: error: incompatible types: int cannot be converted to boolean
	for(int i=input.length();i=0;i--){
	                          ^
2 errors
Language: Java

import java.io.*;
import java.util.*;
public class Main {
     public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	StringTokenizer s = new StringTokenizer(br.readLine()," ");
	int[] input;
	input[0] = Integer.parseInt(s.nextToken());
	input[1] = Integer.parseInt(s.nextToken());
	input[2] = Integer.parseInt(s.nextToken());

	for(int i=input.length;i=0;i--){
		for(int j=0;j<i;j++){
		if(input[j]>input[j+1]){
			input[j] = input[j+1];
			}
		}
	}
	System.out.println(input[0] + input[1] + input[2]);
    }
}

Compiler output:
Main.java:12: error: incompatible types: int cannot be converted to boolean
	for(int i=input.length;i=0;i--){
	                        ^
1 error
Language: Java

import java.io.*;
import java.util.*;
public class Main {
     public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	StringTokenizer s = new StringTokenizer(br.readLine()," ");
	int[] input;
	input[0] = Integer.parseInt(s.nextToken());
	input[1] = Integer.parseInt(s.nextToken());
	input[2] = Integer.parseInt(s.nextToken());

	for(int i=input.length;i==0;i--){
		for(int j=0;j<i;j++){
		if(input[j]>input[j+1]){
			input[j] = input[j+1];
			}
		}
	}
	System.out.println(input[0] + input[1] + input[2]);
    }
}

Compiler output:
Main.java:8: error: variable input might not have been initialized
	input[0] = Integer.parseInt(s.nextToken());
	^
1 error
Language: Java

import java.io.*;
import java.util.*;
public class Main {
     public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	StringTokenizer s = new StringTokenizer(br.readLine()," ");
	int[3] input;
	input[0] = Integer.parseInt(s.nextToken());
	input[1] = Integer.parseInt(s.nextToken());
	input[2] = Integer.parseInt(s.nextToken());

	for(int i=input.length;i==0;i--){
		for(int j=0;j<i;j++){
		if(input[j]>input[j+1]){
			input[j] = input[j+1];
			}
		}
	}
	System.out.println(input[0] + input[1] + input[2]);
    }
}

Compiler output:
Main.java:7: error: ']' expected
	int[3] input;
	    ^
Main.java:7: error: not a statement
	int[3] input;
	   ^
Main.java:7: error: not a statement
	int[3] input;
	       ^
3 errors
Language: Java

import java.io.*;
import java.util.*;
public class Main {
     public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	StringTokenizer s = new StringTokenizer(br.readLine()," ");
	int[] input = new int[3];
	input[0] = Integer.parseInt(s.nextToken());
	input[1] = Integer.parseInt(s.nextToken());
	input[2] = Integer.parseInt(s.nextToken());

	for(int i=input.length;i==0;i--){
		for(int j=0;j<i;j++){
		if(input[j]>input[j+1]){
			String temp = input[j];
			input[j] = input[j+1];
			input[j+1] = temp;
			}
		}
	}
	System.out.println(input[0] + input[1] + input[2]);
    }
}

Compiler output:
Main.java:15: error: incompatible types: int cannot be converted to String
			String temp = input[j];
			                   ^
Main.java:17: error: incompatible types: String cannot be converted to int
			input[j+1] = temp;
			             ^
2 errors
Language: Java

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[] hako = new int[] {a, b, c};
		
		 for(int i=0;i<hako.length-1;i++){
			 for(int j=hako.length-1;j>i;j--){
				if(hako[j]<hako[j-1]){
					  int t=hako[j];
					  hako[j]=hako[j-1];
					  hako[j-1]=t;
				}
			}
		}
		System.out.println(hako[0] + " " + hako[1] + " " + hako[2]);
	}
}

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

int s[]=new int[3];
		int i,j;
		j = 0;
		Scanner sc = new Scanner(System.in);
		
		for(i=0;i<s.length;i++){
		s[i]= sc.nextInt();
		}
		
		Arrays.sort(s);
		
		for(i = 0; i < s.length; i++){
			System.out.print(s[i]);
			if(i <s.length - 1){
				System.out.print(" ");
			}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
int s[]=new int[3];
^
Main.java:2: error: class, interface, enum, or record expected
		int i,j;
		^
Main.java:3: error: class, interface, enum, or record expected
		j = 0;
		^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
		Scanner sc = new Scanner(System.in);
		^
  (use --enable-preview to enable unnamed classes)
Main.java:6: error: class, interface, enum, or record expected
		for(i=0;i<s.length;i++){
		^
Main.java:6: error: class, interface, enum, or record expected
		for(i=0;i<s.length;i++){
		        ^
Main.java:6: error: class, interface, enum, or record expected
		for(i=0;i<s.length;i++){
		                   ^
Main.java:8: error: class, interface, enum, or record expected
		}
		^
Main.java:12: error: class, interface, enum, or record expected
		for(i = 0; i < s.length; i++){
		^
Main.java:12: error: class, interface, enum, or record expected
		for(i = 0; i < s.length; i++){
		           ^
Main.java:12: error: class, interface, enum, or record expected
		for(i = 0; i < s.length; i++){
		                         ^
Main.java:14: error: class, interface, enum, or record expected
			if(i <s.length - 1){
			^
Main.java:16: error: class, interface, enum, or record expected
			}
			^
13 errors
Language: Java

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

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

		int s[]=new int[3];
		int i,j;
		j = 0;
		Scanner sc = new Scanner(System.in);
		
		for(i=0;i<s.length;i++){
		s[i]= sc.nextInt();
		}
		
		Arrays.sort(s);
		
		System.out.println(s[0] + " " + s[1] + " " + s[2]);
		
		
	}

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

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

public class ITP1ITP12C {

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

		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        String[] st=br.readLine().split(" ");
        int[] in=new int[3];
        for(int i=0;i<3;i++){
        in[i]=Integer.parseInt(st[i]);}
        for(int i=0;i<2;i++){
            for(int j=i+1;j<3;j++){              
                if(in[i]>in[j]){int tmp=in[i];
                    in[i]=in[j];
                    in[j]=tmp;
                }
            }
        }System.out.println(in[0]+" "+in[1]+" "+in[2]);
		
	}

}

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

import java.util.Scanner;

public class Main {

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

		Scanner n = new Scanner(System.in);
		int a = n.nextInt();
		int b = n.nextInt();
		int c = n.nextInt();
		
		if ( a < b && b < c ) {
			System.out.println( a+" "+b" "+c );
		}
		
	}

}

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

import java.util.Scanner;

public class AOJ2_3 {


    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.println(a + " " + b + " " + c);
        }
        else if(a > b && b > c)
        {
        	System.out.println(c + " " + b + " " + a);
        }
        	else if(a > c)
        	{
        		System.out.println(c + " " + a + " " + b);
        	}
        	else
        	{
        		System.out.println(a + " " + c + " " + b);
        	}        			
        sc.close();
    }

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 && b < c)
        {
            System.out.println(a + " " + b + " " + c);
        }
        else if(a > b && b > c)
        {
        	System.out.println(c + " " + b + " " + a);
        }
        	else if(a > c)
        	{
        		System.out.println(c + " " + a + " " + b);
        	}
        	else
        	{
        		System.out.println(a + " " + c + " " + b);
        	}        			
        sc.close();
    }

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 && b < c)
        {
            System.out.println(a + " " + b + " " + c);
        }
        else if(a > b && b > c)
        {
        	System.out.println(c + " " + b + " " + a);
        }
        	else if(a > c)
        	{
        		System.out.println(c + " " + a + " " + b);
        	}
        	else
        	{
        		System.out.println(a + " " + c + " " + b);
        	}        			
        sc.close();
    }

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

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

public class Main {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        int [] n = new int[3];
        int n[0] = in.nextInt();
        int n[1] = in.nextInt();
        int n[2] = in.nextInt();

        Arrays.sort(n);

        for(int i=0; i<n.length; i++)
        	System.out.print(n[i] + " ");
        System.out.println();
    }
}

Compiler output:
Main.java:8: error: ']' expected
        int n[0] = in.nextInt();
              ^
Main.java:9: error: ']' expected
        int n[1] = in.nextInt();
              ^
Main.java:10: error: ']' expected
        int n[2] = in.nextInt();
              ^
3 errors
Language: Java

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

        String[] strarr = str.split(" ");
        int[] intarr = new int[3];

        for(int i=0; i<3; i++)
        {
            intarr[i] = Integer.parseInt(strarr[i]);
        }
        
        Arrays.sort(intarr);
        
        System.out.println(intarr[0] + " " + intarr[1] + " " + intarr[2]);
    }
}

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

import java.util.*;
class Main {
	public static void main (String[] args) throws java.lang.Exception {
		Scanner sc = new Scanner(System.in);
		int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt(), t;
		if(a > b) t = a, a = b, b = t;
		if(a > c) t = a, a = c, c = t;
		if(b > c) t = b, b = c, c = t;
		System.out.println(a + " " + b + " " + c);
	}
}

Compiler output:
Main.java:6: error: ';' expected
		if(a > b) t = a, a = b, b = t;
		               ^
Main.java:6: error: ';' expected
		if(a > b) t = a, a = b, b = t;
		                      ^
Main.java:7: error: ';' expected
		if(a > c) t = a, a = c, c = t;
		               ^
Main.java:7: error: ';' expected
		if(a > c) t = a, a = c, c = t;
		                      ^
Main.java:8: error: ';' expected
		if(b > c) t = b, b = c, c = t;
		               ^
Main.java:8: error: ';' expected
		if(b > c) t = b, b = c, c = t;
		                      ^
6 errors
Language: Java

import java.util.Scanner;

class Main {
    public static void main(String[] args) {
    Scanner sc = new Scanner(System.sc);
    
    int x = sc.next();
    int y = sc.next();
    int z = sc.next();
    
    int[] sort = new int[]{x, y, z};
    
    Arrays.sort(sort);
    
    for (int i = 0; i < sort.length; i++) {
         System.out.println(sort[i]);
    }
}

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

import java.util.Scanner;

class Main {
    public static void main(String[] args) {
    Scanner sc = new Scanner(System.sc);
    
    int x = sc.next();
    int y = sc.next();
    int z = sc.next();
    
    int[] sort = new int[]{x, y, z};
    
    Arrays.sort(sort);
    
    for (int i = 0; i < sort.length; i++) {
         System.out.println(sort[i]);
        }
    }
}

Compiler output:
Main.java:5: error: cannot find symbol
    Scanner sc = new Scanner(System.sc);
                                   ^
  symbol:   variable sc
  location: class System
Main.java:7: error: incompatible types: String cannot be converted to int
    int x = sc.next();
                   ^
Main.java:8: error: incompatible types: String cannot be converted to int
    int y = sc.next();
                   ^
Main.java:9: error: incompatible types: String cannot be converted to int
    int z = sc.next();
                   ^
Main.java:13: error: cannot find symbol
    Arrays.sort(sort);
    ^
  symbol:   variable Arrays
  location: class Main
5 errors
Language: Java

import java.util.Scanner;                                                   
import java.util.*;
 
class C2{
     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 [] arr = {a,b,c};
             Arrays.sort(arr);
             
             System.out.println(sort[0] + "sort[1] " + sort[2]);
         }
}

Compiler output:
Main.java:13: error: cannot find symbol
             System.out.println(sort[0] + "sort[1] " + sort[2]);
                                ^
  symbol:   variable sort
  location: class C2
Main.java:13: error: cannot find symbol
             System.out.println(sort[0] + "sort[1] " + sort[2]);
                                                       ^
  symbol:   variable sort
  location: class C2
2 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 [] arr = {a,b,c};
             Arrays.sort(arr);
             System.out.println(sort[0] + "sort[1]" + sort[2]);
         }
}

Compiler output:
Main.java:12: error: cannot find symbol
             System.out.println(sort[0] + "sort[1]" + sort[2]);
                                ^
  symbol:   variable sort
  location: class Main
Main.java:12: error: cannot find symbol
             System.out.println(sort[0] + "sort[1]" + sort[2]);
                                                      ^
  symbol:   variable sort
  location: class Main
2 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};
             Arrays.sort(arr);
             System.out.println("sort[0]" + "sort[1]" + "sort[2]");
         }
}

Compiler output:
Main.java:11: error: cannot find symbol
             Arrays.sort(arr);
                         ^
  symbol:   variable arr
  location: class Main
1 error
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;
               }
              }
             }
             for(int k=0; k<data.length; k++){
             System.out.print("sort[2]" + " " + "sort[1]" + " " sort[0]");

      }
   }
}

Compiler output:
Main.java:21: error: ')' or ',' expected
             System.out.print("sort[2]" + " " + "sort[1]" + " " sort[0]");
                                                               ^
Main.java:21: error: unclosed string literal
             System.out.print("sort[2]" + " " + "sort[1]" + " " sort[0]");
                                                                       ^
Main.java:21: error: not a statement
             System.out.print("sort[2]" + " " + "sort[1]" + " " sort[0]");
                                                                    ^
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:21: error: ')' or ',' expected
             System.out.print("sort[2]" + " " + "sort[1]" + " " sort[0]");
                                                               ^
Main.java:21: error: unclosed string literal
             System.out.print("sort[2]" + " " + "sort[1]" + " " sort[0]");
                                                                       ^
Main.java:21: error: not a statement
             System.out.print("sort[2]" + " " + "sort[1]" + " " sort[0]");
                                                                    ^
Main.java:25: error: class, interface, enum, or record expected
}
^
4 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[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]");
                                                                    ^
Main.java:25: error: class, interface, enum, or record expected
}
^
4 errors