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

import java.util.Arrays;

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

class Main{
  public static void main(String[] args){
    try{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      String str = br.readLine();
      String[] str2 = str.split(" ");
      Int[] x = new int[str2.length()];
      for (int i = 0; i < str2.length(); i++){
        x[i] = Integer.parseInt(str2[i]);
      }
      Array.sort(x);
      System.out.println(x[0] + " " + x[1] + " " + x[2]);
    } catch (IOException e){
      System.err.println(e.toString());
    }
  }
}


Compiler output:
Main.java:13: error: cannot find symbol
      Int[] x = new int[str2.length()];
      ^
  symbol:   class Int
  location: class Main
Main.java:13: error: cannot find symbol
      Int[] x = new int[str2.length()];
                            ^
  symbol:   method length()
  location: variable str2 of type String[]
Main.java:14: error: cannot find symbol
      for (int i = 0; i < str2.length(); i++){
                              ^
  symbol:   method length()
  location: variable str2 of type String[]
Main.java:17: error: cannot find symbol
      Array.sort(x);
      ^
  symbol:   variable Array
  location: class Main
4 errors
Language: Java

import java.util.Arrays;

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

class Main{
  public static void main(String[] args){
    try{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      String str = br.readLine();
      String[] str2 = str.split(" ");
      int x = 0;
      int a = Integer.parseInt(str2[0]);
      int b = Integer.parseInt(str2[1]);
      int c = Integer.parseInt(str2[2]);
      if (a <= b && b <= c){
        } else if (b > c){
          x = b;
          b = c;
          c = x;
        }
      } else if (a > b){
        x = a;
        a = b;
        b = x;
        if (b > c){
          x = b;
          b = c;
          c = x;
        }
      }
      System.out.println(a);
      System.out.println(b);
      System.out.println(c);
      System.out.println(a + " " + b + " " + c);
    } catch (IOException e){
      System.err.println(e.toString());
    }
  }
}


Compiler output:
Main.java:9: error: 'try' without 'catch', 'finally' or resource declarations
    try{
    ^
Main.java:23: error: 'else' without 'if'
      } else if (a > b){
        ^
Main.java:37: error: illegal start of type
    } catch (IOException e){
      ^
Main.java:37: error: ';' expected
    } catch (IOException e){
                          ^
Main.java:41: error: class, interface, enum, or record expected
}
^
5 errors
Language: Java

import java.util.Arrays;

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

class Main{
  public static void main(String[] args){
    try{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      String str = br.readLine();
      String[] str2 = str.split(" ");
      int x = 0;
      int a = Integer.parseInt(str2[0]);
      int b = Integer.parseInt(str2[1]);
      int c = Integer.parseInt(str2[2]);
      int[] x = {a, b, c};
      if (a > b && b > c && a > c){
        x = a;
        a = c;
        c = x;
      } else if(a > b && b < c && a ){
        x = a;
        b = a;
        a = x;
      } else if(a < b && b > c){
        x = b;
        b = c;
        }
      System.out.println(a);
      System.out.println(b);
      System.out.println(c);
      System.out.println(a + " " + b + " " + c);
    } catch (IOException e){
      System.err.println(e.toString());
    }
  }
}


Compiler output:
Main.java:17: error: variable x is already defined in method main(String[])
      int[] x = {a, b, c};
            ^
Main.java:19: error: incompatible types: int cannot be converted to int[]
        x = a;
            ^
Main.java:21: error: incompatible types: int[] cannot be converted to int
        c = x;
            ^
Main.java:22: error: bad operand types for binary operator '&&'
      } else if(a > b && b < c && a ){
                               ^
  first type:  boolean
  second type: int
Main.java:23: error: incompatible types: int cannot be converted to int[]
        x = a;
            ^
Main.java:25: error: incompatible types: int[] cannot be converted to int
        a = x;
            ^
Main.java:27: error: incompatible types: int cannot be converted to int[]
        x = b;
            ^
7 errors
Language: Java

import java.util.Arrays;

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

class Main{
  public static void main(String[] args){
    try{
      BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
      String str = br.readLine();
      String[] str2 = str.split(" ");
      int a = Integer.parseInt(str2[0]);
      int b = Integer.parseInt(str2[1]);
      int c = Integer.parseInt(str2[2]);
      int[] x = {a, b, c};
      if (a > b && b > c && a > c){
        x = a;
        a = c;
        c = x;
      } else if(a > b && b < c && a ){
        x = a;
        b = a;
        a = x;
      } else if(a < b && b > c){
        x = b;
        b = c;
        }
      System.out.println(a);
      System.out.println(b);
      System.out.println(c);
      System.out.println(a + " " + b + " " + c);
    } catch (IOException e){
      System.err.println(e.toString());
    }
  }
}


Compiler output:
Main.java:18: error: incompatible types: int cannot be converted to int[]
        x = a;
            ^
Main.java:20: error: incompatible types: int[] cannot be converted to int
        c = x;
            ^
Main.java:21: error: bad operand types for binary operator '&&'
      } else if(a > b && b < c && a ){
                               ^
  first type:  boolean
  second type: int
Main.java:22: error: incompatible types: int cannot be converted to int[]
        x = a;
            ^
Main.java:24: error: incompatible types: int[] cannot be converted to int
        a = x;
            ^
Main.java:26: error: incompatible types: int cannot be converted to int[]
        x = b;
            ^
6 errors
Language: Java

class Main
  str = gets
  str = str.split(" ")
  str.map { |n| n.to_i }
  str.sort_by! { |x| x }
end


Compiler output:
Main.java:1: error: '{' expected
class Main
          ^
Main.java:4: error: illegal start of type
  str.map { |n| n.to_i }
            ^
Main.java:4: error: <identifier> expected
  str.map { |n| n.to_i }
              ^
Main.java:4: error: <identifier> expected
  str.map { |n| n.to_i }
                      ^
Main.java:5: error: class, interface, enum, or record expected
  str.sort_by! { |x| x }
  ^
5 errors
Language: Java

class Main
  str = gets
  str = str.split(" ")
  str.map { |n| n.to_i }
  str.sort_by! { |x| x }
  puts "#{str[0]} #{str[1]} #{str[2]}"
end


Compiler output:
Main.java:1: error: '{' expected
class Main
          ^
Main.java:4: error: illegal start of type
  str.map { |n| n.to_i }
            ^
Main.java:4: error: <identifier> expected
  str.map { |n| n.to_i }
              ^
Main.java:4: error: <identifier> expected
  str.map { |n| n.to_i }
                      ^
Main.java:5: error: class, interface, enum, or record expected
  str.sort_by! { |x| x }
  ^
5 errors
Language: Java

import java.util.Scanner;

public class Main {

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

		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();

		int array[] = { a, b, c };
		for (int k = 0; k < array.length - 1; k++) {
			for (int i = 0; i < array.length - 1; i++) {
				if (array[i] > array[i + 1]) {
					int x = array[i];
					array[i] = array[i + 1];
					array[i + 1] = x;
				}
			}
		}
		for (int j = 0; j < array.length-1; j++) {
			System.out.print(array[j]);
		}
System.out.println(array[3])

	}

}


Compiler output:
Main.java:25: error: ';' expected
System.out.println(array[3])
                            ^
1 error
Language: Java

import java.util.io.*;

public class Main{
   public static void main(String [] args){
      BufferedReader(new Inputstreamreader(System.in));
      int a,b,c;
      String c = in.readLine();
      String[] arange = str.split(" ", 0);
      a = Integer.parseInt(arange[0]);
      b = Integer.parseInt(arange[1]);
      c = Integer.parseInt(arange[2]);
      if(a<b&&a<c){
        if(b<c)
          System.out.println(a+" "+b+" "+c);
        else
           System.out.println(a+" "+c+" "+b);
      }else  if(b<a&&b<c){
        if(a<c)
          System.out.println(b+" "a+" "+c);
        else
          System.out.println(b+" "+c+" "+a);
      }else  if(c<a&&c<b){
        if(a<b)
          System.out.println(c+" "+a+" "+b);
        else
          System.out.println(c+" "+b+" "+a);
      }

   }
}


Compiler output:
Main.java:19: error: ')' or ',' expected
          System.out.println(b+" "a+" "+c);
                                  ^
Main.java:19: error: not a statement
          System.out.println(b+" "a+" "+c);
                                       ^
Main.java:19: error: ';' expected
          System.out.println(b+" "a+" "+c);
                                         ^
Main.java:20: error: 'else' without 'if'
        else
        ^
4 errors
Language: Java

import java.util.io.*;

public class Main{
   public static void main(String [] args){
      BufferedReader(new Inputstreamreader(System.in));
      int a,b,c;
      String c = in.readLine();
      String[] arange = str.split(" ", 0);
      a = Integer.parseInt(arange[0]);
      b = Integer.parseInt(arange[1]);
      c = Integer.parseInt(arange[2]);
      if(a<b&&a<c){
        if(b<c)
          System.out.println(a+" "+b+" "+c);
        else
           System.out.println(a+" "+c+" "+b);
      }else  if(b<a&&b<c){
        if(a<c)
          System.out.println(b+" "+a+" "+c);
        else
          System.out.println(b+" "+c+" "+a);
      }else  if(c<a&&c<b){
        if(a<b)
          System.out.println(c+" "+a+" "+b);
        else
          System.out.println(c+" "+b+" "+a);
      }

   }
}


Compiler output:
Main.java:1: error: package java.util.io does not exist
import java.util.io.*;
^
Main.java:5: error: cannot find symbol
      BufferedReader(new Inputstreamreader(System.in));
                         ^
  symbol:   class Inputstreamreader
  location: class Main
Main.java:7: error: variable c is already defined in method main(String[])
      String c = in.readLine();
             ^
Main.java:7: error: cannot find symbol
      String c = in.readLine();
                 ^
  symbol:   variable in
  location: class Main
Main.java:8: error: cannot find symbol
      String[] arange = str.split(" ", 0);
                        ^
  symbol:   variable str
  location: class Main
Main.java:11: error: incompatible types: int cannot be converted to String
      c = Integer.parseInt(arange[2]);
                          ^
Main.java:12: error: bad operand types for binary operator '<'
      if(a<b&&a<c){
               ^
  first type:  int
  second type: String
Main.java:13: error: bad operand types for binary operator '<'
        if(b<c)
            ^
  first type:  int
  second type: String
Main.java:17: error: bad operand types for binary operator '<'
      }else  if(b<a&&b<c){
                      ^
  first type:  int
  second type: String
Main.java:18: error: bad operand types for binary operator '<'
        if(a<c)
            ^
  first type:  int
  second type: String
Main.java:22: error: bad operand types for binary operator '<'
      }else  if(c<a&&c<b){
                 ^
  first type:  String
  second type: int
Main.java:22: error: bad operand types for binary operator '<'
      }else  if(c<a&&c<b){
                      ^
  first type:  String
  second type: int
12 errors
Language: Java

import java.util.io.*;

public class Main{
   public static void main(String [] args){
      BufferedReader(new InputStreamReader(System.in));
      int a,b,c;
      String c = in.readLine();
      String[] arange = str.split(" ", 0);
      a = Integer.parseInt(arange[0]);
      b = Integer.parseInt(arange[1]);
      c = Integer.parseInt(arange[2]);
      if(a<b&&a<c){
        if(b<c)
          System.out.println(a+" "+b+" "+c);
        else
           System.out.println(a+" "+c+" "+b);
      }else  if(b<a&&b<c){
        if(a<c)
          System.out.println(b+" "+a+" "+c);
        else
          System.out.println(b+" "+c+" "+a);
      }else  if(c<a&&c<b){
        if(a<b)
          System.out.println(c+" "+a+" "+b);
        else
          System.out.println(c+" "+b+" "+a);
      }

   }
}


Compiler output:
Main.java:1: error: package java.util.io does not exist
import java.util.io.*;
^
Main.java:5: error: cannot find symbol
      BufferedReader(new InputStreamReader(System.in));
                         ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:7: error: variable c is already defined in method main(String[])
      String c = in.readLine();
             ^
Main.java:7: error: cannot find symbol
      String c = in.readLine();
                 ^
  symbol:   variable in
  location: class Main
Main.java:8: error: cannot find symbol
      String[] arange = str.split(" ", 0);
                        ^
  symbol:   variable str
  location: class Main
Main.java:11: error: incompatible types: int cannot be converted to String
      c = Integer.parseInt(arange[2]);
                          ^
Main.java:12: error: bad operand types for binary operator '<'
      if(a<b&&a<c){
               ^
  first type:  int
  second type: String
Main.java:13: error: bad operand types for binary operator '<'
        if(b<c)
            ^
  first type:  int
  second type: String
Main.java:17: error: bad operand types for binary operator '<'
      }else  if(b<a&&b<c){
                      ^
  first type:  int
  second type: String
Main.java:18: error: bad operand types for binary operator '<'
        if(a<c)
            ^
  first type:  int
  second type: String
Main.java:22: error: bad operand types for binary operator '<'
      }else  if(c<a&&c<b){
                 ^
  first type:  String
  second type: int
Main.java:22: error: bad operand types for binary operator '<'
      }else  if(c<a&&c<b){
                      ^
  first type:  String
  second type: int
12 errors
Language: Java

import java.io.*;

public class Main{
   public static void main(String [] args){
      BufferedReader(new InputStreamReader(System.in));
      int a,b,c;
      String c = in.readLine();
      String[] arange = str.split(" ", 0);
      a = Integer.parseInt(arange[0]);
      b = Integer.parseInt(arange[1]);
      c = Integer.parseInt(arange[2]);
      if(a<b&&a<c){
        if(b<c)
          System.out.println(a+" "+b+" "+c);
        else
           System.out.println(a+" "+c+" "+b);
      }else  if(b<a&&b<c){
        if(a<c)
          System.out.println(b+" "+a+" "+c);
        else
          System.out.println(b+" "+c+" "+a);
      }else  if(c<a&&c<b){
        if(a<b)
          System.out.println(c+" "+a+" "+b);
        else
          System.out.println(c+" "+b+" "+a);
      }

   }
}


Compiler output:
Main.java:5: error: cannot find symbol
      BufferedReader(new InputStreamReader(System.in));
      ^
  symbol:   method BufferedReader(InputStreamReader)
  location: class Main
Main.java:7: error: variable c is already defined in method main(String[])
      String c = in.readLine();
             ^
Main.java:7: error: cannot find symbol
      String c = in.readLine();
                 ^
  symbol:   variable in
  location: class Main
Main.java:8: error: cannot find symbol
      String[] arange = str.split(" ", 0);
                        ^
  symbol:   variable str
  location: class Main
Main.java:11: error: incompatible types: int cannot be converted to String
      c = Integer.parseInt(arange[2]);
                          ^
Main.java:12: error: bad operand types for binary operator '<'
      if(a<b&&a<c){
               ^
  first type:  int
  second type: String
Main.java:13: error: bad operand types for binary operator '<'
        if(b<c)
            ^
  first type:  int
  second type: String
Main.java:17: error: bad operand types for binary operator '<'
      }else  if(b<a&&b<c){
                      ^
  first type:  int
  second type: String
Main.java:18: error: bad operand types for binary operator '<'
        if(a<c)
            ^
  first type:  int
  second type: String
Main.java:22: error: bad operand types for binary operator '<'
      }else  if(c<a&&c<b){
                 ^
  first type:  String
  second type: int
Main.java:22: error: bad operand types for binary operator '<'
      }else  if(c<a&&c<b){
                      ^
  first type:  String
  second type: int
11 errors
Language: Java

import java.io.*;

public class Main{
   public static void main(String [] args){
      BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
      int a,b,c;
      String c = in.readLine();
      String[] arange = str.split(" ", 0);
      a = Integer.parseInt(arange[0]);
      b = Integer.parseInt(arange[1]);
      c = Integer.parseInt(arange[2]);
      if(a<b&&a<c){
        if(b<c)
          System.out.println(a+" "+b+" "+c);
        else
           System.out.println(a+" "+c+" "+b);
      }else  if(b<a&&b<c){
        if(a<c)
          System.out.println(b+" "+a+" "+c);
        else
          System.out.println(b+" "+c+" "+a);
      }else  if(c<a&&c<b){
        if(a<b)
          System.out.println(c+" "+a+" "+b);
        else
          System.out.println(c+" "+b+" "+a);
      }

   }
}


Compiler output:
Main.java:7: error: variable c is already defined in method main(String[])
      String c = in.readLine();
             ^
Main.java:8: error: cannot find symbol
      String[] arange = str.split(" ", 0);
                        ^
  symbol:   variable str
  location: class Main
Main.java:11: error: incompatible types: int cannot be converted to String
      c = Integer.parseInt(arange[2]);
                          ^
Main.java:12: error: bad operand types for binary operator '<'
      if(a<b&&a<c){
               ^
  first type:  int
  second type: String
Main.java:13: error: bad operand types for binary operator '<'
        if(b<c)
            ^
  first type:  int
  second type: String
Main.java:17: error: bad operand types for binary operator '<'
      }else  if(b<a&&b<c){
                      ^
  first type:  int
  second type: String
Main.java:18: error: bad operand types for binary operator '<'
        if(a<c)
            ^
  first type:  int
  second type: String
Main.java:22: error: bad operand types for binary operator '<'
      }else  if(c<a&&c<b){
                 ^
  first type:  String
  second type: int
Main.java:22: error: bad operand types for binary operator '<'
      }else  if(c<a&&c<b){
                      ^
  first type:  String
  second type: int
9 errors
Language: Java

import java.io.*;

public class Main{
   public static void main(String [] args){
      BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
      int a,b,c;
      String s = in.readLine();
      String[] arange = str.split(" ", 0);
      a = Integer.parseInt(arange[0]);
      b = Integer.parseInt(arange[1]);
      c = Integer.parseInt(arange[2]);
      if(a<b&&a<c){
        if(b<c)
          System.out.println(a+" "+b+" "+c);
        else
           System.out.println(a+" "+c+" "+b);
      }else  if(b<a&&b<c){
        if(a<c)
          System.out.println(b+" "+a+" "+c);
        else
          System.out.println(b+" "+c+" "+a);
      }else  if(c<a&&c<b){
        if(a<b)
          System.out.println(c+" "+a+" "+b);
        else
          System.out.println(c+" "+b+" "+a);
      }

   }
}


Compiler output:
Main.java:8: error: cannot find symbol
      String[] arange = str.split(" ", 0);
                        ^
  symbol:   variable str
  location: class Main
1 error
Language: Java

import java.io.*;

public class Main{
   public static void main(String [] args){
      BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
      int a,b,c;
      String s = in.readLine();
      String[] arange = str.split(" ", 0);

      a = Integer.parseInt(arange[0]);
      b = Integer.parseInt(arange[1]);
      c = Integer.parseInt(arange[2]);
      if(a<b&&a<c){
        if(b<c)
          System.out.println(a+" "+b+" "+c);
        else
           System.out.println(a+" "+c+" "+b);
      }else  if(b<a&&b<c){
        if(a<c)
          System.out.println(b+" "+a+" "+c);
        else
          System.out.println(b+" "+c+" "+a);
      }else  if(c<a&&c<b){
        if(a<b)
          System.out.println(c+" "+a+" "+b);
        else
          System.out.println(c+" "+b+" "+a);
      }

   }
}


Compiler output:
Main.java:8: error: cannot find symbol
      String[] arange = str.split(" ", 0);
                        ^
  symbol:   variable str
  location: class Main
1 error
Language: Java

import java.io.*;

public class Main{
   public static void main(String [] args){
      BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
      int a,b,c;
      String s = in.readLine();
      String[] arange = s.split(" ", 0);

      a = Integer.parseInt(arange[0]);
      b = Integer.parseInt(arange[1]);
      c = Integer.parseInt(arange[2]);
      if(a<b&&a<c){
        if(b<c)
          System.out.println(a+" "+b+" "+c);
        else
           System.out.println(a+" "+c+" "+b);
      }else  if(b<a&&b<c){
        if(a<c)
          System.out.println(b+" "+a+" "+c);
        else
          System.out.println(b+" "+c+" "+a);
      }else  if(c<a&&c<b){
        if(a<b)
          System.out.println(c+" "+a+" "+b);
        else
          System.out.println(c+" "+b+" "+a);
      }

   }
}


Compiler output:
Main.java:7: error: unreported exception IOException; must be caught or declared to be thrown
      String s = in.readLine();
                            ^
1 error
Language: Java

import java.io.*;

public class Main{
   public static void main(String [] args){
      BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
      int a,b,c;
     try{ 
      String s = in.readLine();
      String[] arange = s.split(" ", 0);
     }catch (Exception e){
     }
      a = Integer.parseInt(arange[0]);
      b = Integer.parseInt(arange[1]);
      c = Integer.parseInt(arange[2]);
      if(a<b&&a<c){
        if(b<c)
          System.out.println(a+" "+b+" "+c);
        else
           System.out.println(a+" "+c+" "+b);
      }else  if(b<a&&b<c){
        if(a<c)
          System.out.println(b+" "+a+" "+c);
        else
          System.out.println(b+" "+c+" "+a);
      }else  if(c<a&&c<b){
        if(a<b)
          System.out.println(c+" "+a+" "+b);
        else
          System.out.println(c+" "+b+" "+a);
      }

   }
}


Compiler output:
Main.java:12: error: cannot find symbol
      a = Integer.parseInt(arange[0]);
                           ^
  symbol:   variable arange
  location: class Main
Main.java:13: error: cannot find symbol
      b = Integer.parseInt(arange[1]);
                           ^
  symbol:   variable arange
  location: class Main
Main.java:14: error: cannot find symbol
      c = Integer.parseInt(arange[2]);
                           ^
  symbol:   variable arange
  location: class Main
3 errors
Language: Java

import java.io.*;

public class Main{
   public static void main(String [] args){
      BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
      int a,b,c;
      String[] arange;
     try{ 
      arange = in.readLine().split(" ", 0);
     }catch (Exception e){
     }
      a = Integer.parseInt(arange[0]);
      b = Integer.parseInt(arange[1]);
      c = Integer.parseInt(arange[2]);
      if(a<b&&a<c){
        if(b<c)
          System.out.println(a+" "+b+" "+c);
        else
           System.out.println(a+" "+c+" "+b);
      }else  if(b<a&&b<c){
        if(a<c)
          System.out.println(b+" "+a+" "+c);
        else
          System.out.println(b+" "+c+" "+a);
      }else  if(c<a&&c<b){
        if(a<b)
          System.out.println(c+" "+a+" "+b);
        else
          System.out.println(c+" "+b+" "+a);
      }

   }
}


Compiler output:
Main.java:12: error: variable arange might not have been initialized
      a = Integer.parseInt(arange[0]);
                           ^
1 error
Language: Java

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

public class Sorting {

	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[] data = { a, b, c };

		Arrays.sort(data);
		for (int data1 : data) {
			System.out.print(data1 + " ");
		}
	}
}


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

import java.util.Scanner;

public class Aim {

	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 t;

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

}



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

import java.util.Scanner;

public class Maine {

	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 t;

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

}



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

import java.util.Scanner;

public class ITP1_02_C {

	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 t;

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

}



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

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
int a = sc.nextInt();
int[] num =　a.split(" ", 0);

	
Arrays.sort(num);

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

  }
}


Compiler output:
Main.java:7: error: illegal character: '\u3000'
int[] num =?a.split(" ", 0);
           ^
1 error
Language: Java

import java.util.*;

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[] nums;

nums[0]=a;

nums[1]=b;

nums[2]=c;


Arrays.sort(nums);


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


Compiler output:
Main.java:13: error: variable nums might not have been initialized
nums[0]=a;
^
1 error
Language: Java

import java.util.*;

public class Main {
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
javascript:void(0)
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();

int[] nums;

nums = new int[3];

nums[0]=a;

nums[1]=b;

nums[2]=c;


Arrays.sort(nums);


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


Compiler output:
Main.java:6: error: illegal start of expression
javascript:void(0)
           ^
Main.java:6: error: ';' expected
javascript:void(0)
               ^
2 errors
Language: Java

import java.util.*;

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

  Scanner sc = new Scanner(System.in);
  int[] data = {0,0,0};
    int a = sc.nextInt();
    int b = sc.nextInt();
    int c = sc.nextInt();
     data[0] = a;
     data[1] = b;
     data[2] = c;
     for(int i = 0; i <data.length-1; i++){
       for(int j = i+1; j <data.length; j++){
         if(data[i] > data[j]){
           int k = data[i];
           data[i] = data[j];
           data[j] = k;
         }
       }
     }
     for(int i = 0; i < data.length-1; i++){
       System.out.print(data[i] + " ");
     }
     System.out.print(data[2]);
     System.out.print("\n");
     }
   }




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

 int num[] = new int[3];
  int i=0,j=0;
  int tmp = 0;
  num[0] = sc.nextInt();
  num[1] = sc.nextInt();
  num[2] = sc.nextInt();
  for(i = 0 ; i < 2 ; i++)
  {
   for(j = 2 ; j > i ; j--)
   {
    if(num[j - 1] > num[j])
    {
     tmp = num[j - 1];
     num[j - 1] = num[j];
     num[j] = tmp;
    }
   }
  }
  System.out.printf("%d %d %d\n",num[0],num[1],num[2]);
 }
}


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
 int num[] = new int[3];
 ^
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
  int i=0,j=0;
  ^
  (use --enable-preview to enable unnamed classes)
Main.java:4: error: class, interface, enum, or record expected
  num[0] = sc.nextInt();
  ^
Main.java:5: error: class, interface, enum, or record expected
  num[1] = sc.nextInt();
  ^
Main.java:6: error: class, interface, enum, or record expected
  num[2] = sc.nextInt();
  ^
Main.java:7: error: class, interface, enum, or record expected
  for(i = 0 ; i < 2 ; i++)
  ^
Main.java:7: error: class, interface, enum, or record expected
  for(i = 0 ; i < 2 ; i++)
              ^
Main.java:7: error: class, interface, enum, or record expected
  for(i = 0 ; i < 2 ; i++)
                      ^
Main.java:9: error: class, interface, enum, or record expected
   for(j = 2 ; j > i ; j--)
               ^
Main.java:9: error: class, interface, enum, or record expected
   for(j = 2 ; j > i ; j--)
                       ^
Main.java:14: error: class, interface, enum, or record expected
     num[j - 1] = num[j];
     ^
Main.java:15: error: class, interface, enum, or record expected
     num[j] = tmp;
     ^
Main.java:16: error: class, interface, enum, or record expected
    }
    ^
Main.java:20: error: class, interface, enum, or record expected
 }
 ^
14 errors
Language: Java

import java.util.Scanner;
public class c{
 public static void main(String[] args){
  Scanner sc = new Scanner(System.in);
  int num[] = new int[3];
  int i=0,j=0;
  int tmp = 0;
  num[0] = sc.nextInt();
  num[1] = sc.nextInt();
  num[2] = sc.nextInt();
  for(i = 0 ; i < 2 ; i++)
  {
   for(j = 2 ; j > i ; j--)
   {
    if(num[j - 1] > num[j])
    {
     tmp = num[j - 1];
     num[j - 1] = num[j];
     num[j] = tmp;
    }
   }
  }
  System.out.printf("%d %d %d\n",num[0],num[1],num[2]);
 }
}


Compiler output:
Main.java:2: 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 AOJ2{
    public static void main(String[] args){
        int max=0 ,mid=0 ,min=0;
        Scanner scan = new Scanner(System.in);
        int a = scan.nextInt();
        int b = scan.nextInt();
        int c = scan.nextInt();
        max = a;
        if(b > max){
            max = b;
            if(a > c){
                mid = a;
                min = c;
            }else{
                mid = c;
                min = a;
            }
        }
        if(c > max){
            max = c; 
            if(a > b){
                mid = a;
                min = b;
            }else{
                mid = b;
                min = a;
            }
        }
        System.out.println(min+" "+mid+" "+max);
        scan.close();
    }
}


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

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


Compiler output:
Main.java:17: error: illegal start of type
       else if(b < a && a < c){
       ^
Main.java:17: error: > or ',' expected
       else if(b < a && a < c){
                     ^
Main.java:17: error: > or ',' expected
       else if(b < a && a < c){
                             ^
Main.java:20: error: illegal start of type
       else if(b < c && c < a){
       ^
Main.java:20: error: > or ',' expected
       else if(b < c && c < a){
                     ^
Main.java:20: error: > or ',' expected
       else if(b < c && c < a){
                             ^
Main.java:23: error: illegal start of type
       else if(c < a && a < b){
       ^
Main.java:23: error: > or ',' expected
       else if(c < a && a < b){
                     ^
Main.java:23: error: > or ',' expected
       else if(c < a && a < b){
                             ^
Main.java:26: error: illegal start of type
      else{
      ^
Main.java:30: error: class, interface, enum, or record expected
}
^
11 errors
Language: Java

import java.util.Scanner;
class Main
 {
   public static void main(String[] args)
      {
      Scanner S = new Scanner(System.in);
      int a = S.nextInt();
      int b = S.nextInt();
      int c = S.nextInt();
      if(a<b && b<c){
      System.out.prinf("%d %d %d\n", a, b, c);
              }
      else if(a<b && 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{
      System.out.println("%d %d %d\n", c, b, a);
 }
}
}


Compiler output:
Main.java:11: error: cannot find symbol
      System.out.prinf("%d %d %d\n", a, b, c);
                ^
  symbol:   method prinf(String,int,int,int)
  location: variable out of type PrintStream
Main.java:26: error: no suitable method found for println(String,int,int,int)
      System.out.println("%d %d %d\n", c, b, a);
                ^
    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)
2 errors
Language: Java

#include <stdio.h>

int main(void)
{ 
	int a[3];
	int i,j,m;
	for(i=0;i<3;i++) scanf("%d",&a[i]);
	for(i=0;i<3;i++){
		for(j=i+1;j<3;j++){
			if(a[i]>a[j]){
				m=a[i];
				a[i]=a[j];
				a[j]=m;
			}
		}
	}
	printf("%d %d %d\n",a[0],a[1],a[2]);
	return 0;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:6: error: class, interface, enum, or record expected
	int i,j,m;
	^
Main.java:7: error: class, interface, enum, or record expected
	for(i=0;i<3;i++) scanf("%d",&a[i]);
	^
Main.java:7: error: class, interface, enum, or record expected
	for(i=0;i<3;i++) scanf("%d",&a[i]);
	        ^
Main.java:7: error: class, interface, enum, or record expected
	for(i=0;i<3;i++) scanf("%d",&a[i]);
	            ^
Main.java:8: error: class, interface, enum, or record expected
	for(i=0;i<3;i++){
	^
Main.java:8: error: class, interface, enum, or record expected
	for(i=0;i<3;i++){
	        ^
Main.java:8: error: class, interface, enum, or record expected
	for(i=0;i<3;i++){
	            ^
Main.java:9: error: class, interface, enum, or record expected
		for(j=i+1;j<3;j++){
		          ^
Main.java:9: error: class, interface, enum, or record expected
		for(j=i+1;j<3;j++){
		              ^
Main.java:12: error: class, interface, enum, or record expected
				a[i]=a[j];
				^
Main.java:13: error: class, interface, enum, or record expected
				a[j]=m;
				^
Main.java:14: error: class, interface, enum, or record expected
			}
			^
Main.java:18: error: class, interface, enum, or record expected
	return 0;
	^
Main.java:19: error: class, interface, enum, or record expected
}
^
16 errors
Language: Java


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

public class Main {

	public static void main(String[] args) throws IOException {
		BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
		Scanner sc = new Scanner(br.readLine());
		int a=sc.nextInt();
		int b=sc.nextInt();
		int c=sc.nextInt();
		shou(a,b,c);
	}
	static void shou(int...is ){int tmp=0;
		int l=is.length;
		for(int i=0;i<l-1;i++){
			for(int n=i+1;n<l;n++){
				if(is[i]>is[n]){
					tmp=is[i];
					is[i]=is[n];
					is[n]=tmp;
				}
			}
			}System.out.println(is[0]+" "+is[1]+" "+is[2])
		}}
	

Compiler output:
Main.java:27: error: ';' expected
			}System.out.println(is[0]+" "+is[1]+" "+is[2])
			                                              ^
1 error
Language: Java

import java.util.Scanner;
public class　Main {
	
	public static void main(String[] args) {
		int i,j,wk;

		Scanner scan=new Scanner(System.in);
		int a[]=new int [3];
		
		for( i=0;i<3;i++){
			 a[i]=scan.nextInt();
		}
		
		scan.close();
		
		for( i=0;i<a.length-1;i++){
			wk=i;
			for( j=i+1;j<a.length;j++){
				if(a[wk]>a[j])
					wk=j;
			}
			if(wk!=i){
				int temp=0;
				temp=a[wk];
				a[wk]=a[i];
				a[i]=temp;
			}
		}
		
		for(i=0;i<a.length-1;i++){ 
			System.out.print(a[i]+" ");
		}
	 System.out.print(a[i]+"\n");
	}

}

Compiler output:
Main.java:2: error: illegal character: '\u3000'
public class?Main {
            ^
1 error
Language: Java


import java.util.Map;
import java.util.Scanner;
import java.util.TreeMap;

public class Main {
    private static Scanner scan;

    public static void main(String[] args) {
        scan = new Scanner(System.in);d
        System.out.println(sort(scan.nextInt() , scan.nextInt(), scan.nextInt()));
    }

    /**
     * ソートして返します。
     */
    private static String sort(int a, int b, int c) {
        String value = "";
        Map<Integer, Integer> map = new TreeMap<Integer, Integer>();
        map.put(a, a);
        map.put(b, b);
        map.put(c, c);
        for(Integer hoge : map.values()) {
            value += hoge + " ";
        }
        return value;
    }
}

Compiler output:
Main.java:11: error: ';' expected
        System.out.println(sort(scan.nextInt() , scan.nextInt(), scan.nextInt()));
              ^
1 error
Language: Java

class Main {
	static Scanner sc =new Scanner(System.in);
	static int a;
	static int b;
	static int c;
    static int [] x;
		public static void main (String[]agrs){
			a=sc.nextInt();
			b=sc.nextInt();
			c=sc.nextInt();
			int[]x=new int[]{a,b,c};
			
			Arrays.sort(x);
			for(int i = 0;i<x.length;i++){
				System.out.print(x[i]+" ");
			}
		}
}

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

class Main {
	static Scanner sc =new Scanner(System.in);
	static int a;
	static int b;
	static int c;
    static int [] x;
		public static void main (String[]agrs){
			a=sc.nextInt();
			b=sc.nextInt();
			c=sc.nextInt();
			int[]x=new int[]{a,b,c};
			
			Arrays.sort(x);
			for(int i = 0;i<x.length;i++){
				System.out.print(" "+x[i]);
			}
		}
}

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

class Main {
    static Scanner sc =new Scanner(System.in);
    static int a;
    static int b;
    static int c;
    static int [] x;
        public static void main (String[]agrs){
            a=sc.nextInt();
            b=sc.nextInt();
            c=sc.nextInt();
            int[]x=new int[]{a,b,c};
             
            Arrays.sort(x);
            for(int i = 0;i<x.length;i++){
                System.out.print(" "+x[i]);
            }
        }
}

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

class Main {
	static Scanner sc =new Scanner(System.in);
	static int a;
	static int b;
	static int c;
    static int [] x;
		public static void main (String[]agrs){
			a=sc.nextInt();
			b=sc.nextInt();
			c=sc.nextInt();
			int[]x=new int[]{a,b,c};
			
			Arrays.sort(x);
			for(int i = 0;i<x.length;i++){
				System.out.print(" "+x[i]);
			}
			System.out.println();
		}
}

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

import java.util.*;

class Main{
    public static void main(String[] args);
    final Scanner sc=new Scanner(Syatem.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 System.out.println(a+" "+c+" "+b);
    }
    if(b<c){
	if(c<a) System.out.println(b+" "+c+" "+a);
	else System.out.println(b+" "+a+" "+c);
    }
    if(c<a){
	if(a<b) System.out.println(c+" "+a+" "+b);
	else System.out.println(c+" "+b+" "+a);
    }
}

Compiler output:
Main.java:9: error: illegal start of type
    if(a<b){
    ^
Main.java:9: error: > or ',' expected
    if(a<b){
          ^
Main.java:13: error: illegal start of type
    if(b<c){
    ^
Main.java:13: error: > or ',' expected
    if(b<c){
          ^
Main.java:17: error: illegal start of type
    if(c<a){
    ^
Main.java:17: error: > or ',' expected
    if(c<a){
          ^
6 errors
Language: Java

import java.util.*;


public class Main
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		List<Integer> list = new ArrayList<Integer>();
		
	    int a = sc.nextInt();
	    int b = sc.nextInt();
	    int c = sc.nextInt();
		
	    list.add(a);
	    list.add(b);a
	    list.add(c);

	    Collections.sort(list);

	    for ( int i = 0; i < list.size(); i++ ) {
			int item = list.get(i);
			System.out.printf("%d ", item);

			
		}
		
	}

}

Compiler output:
Main.java:17: error: ';' expected
	    list.add(c);
	        ^
1 error
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(" ").sort();
????????????
        int x = Integer.parseInt(str_div[0]);
        int y = Integer.parseInt(str_div[1]);
        int z = Integer.parseInt(str_div[2]);
        
        if(x < y && y< z )
        System.out.println("Yes");
        else
        System.out.println("No");
 }
}
   

Compiler output:
Main.java:8: error: illegal start of expression
????????????
^
Main.java:8: error: illegal start of expression
????????????
 ^
Main.java:8: error: illegal start of expression
????????????
  ^
Main.java:8: error: illegal start of expression
????????????
   ^
Main.java:8: error: illegal start of expression
????????????
    ^
Main.java:8: error: illegal start of expression
????????????
     ^
Main.java:8: error: illegal start of expression
????????????
      ^
Main.java:8: error: illegal start of expression
????????????
       ^
Main.java:8: error: illegal start of expression
????????????
        ^
Main.java:8: error: illegal start of expression
????????????
         ^
Main.java:8: error: illegal start of expression
????????????
          ^
Main.java:8: error: illegal start of expression
????????????
           ^
Main.java:9: error: '.class' expected
        int x = Integer.parseInt(str_div[0]);
            ^
Main.java:9: error: : expected
        int x = Integer.parseInt(str_div[0]);
                                            ^
14 errors
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(" ").sort();
????????????
        int x = Integer.parseInt(str_div[0]);
        int y = Integer.parseInt(str_div[1]);
        int z = Integer.parseInt(str_div[2]);
        
        if(x < y && y< z )
        System.out.println("Yes");
        else
        System.out.println("No");
 }
}
   

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