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

import java.util.Scanner;

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

Compiler output:
Main.java:3: 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 Teppei {
    public static void main(String[] args) {
// ?¨??????\???????????????????????????????????????
        Scanner sc = new Scanner(System.in);
// 3?????????????????????????????????????????´??°?????¨????????????????????????
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        if (a < b) {
            if (b < c) {
                System.out.printf("%d %d %d\n", a, b, c);
            } else if (a < c) {
                System.out.printf("%d %d %d\n", a, c, b);
            } else {
                System.out.printf("%d %d %d\n", c, a, b);
            }
        }
            else if(b<c){
            if (c<a) {
                System.out.printf("%d %d %d\n", b, c, a);
            }else {
                System.out.printf("%d %d %d\n", b, a, c);
            }
            }else{
            System.out.printf("%d %d %d\n", c, b, a);
        }
    }
}

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

import java.util.Scanner;

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

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

import java.util.Scanner;

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

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

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

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

import java.util.Scanner;

public class Sorting {

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

		Scanner sc = new Scanner(System.in);
		// 3?????????????????????????????????????????´??°?????¨????????????????????????
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		if (a < b) {
			if (b < c) {
				System.out.printf("%d %d %d\n", a, b, c);
			}
		}

		if (a < c) {
			if (c < b) {
				System.out.printf("%d %d %d\n", a, c, b);
			}
		}
		if (b < a) {
			if (a < c) {
				System.out.printf("%d %d %d\n", b, a, c);
			}
		}
		if (b < c) {
			if (c < a) {
				System.out.printf("%d %d %d\n", b, c, a);
			}
		}
		if (c < a) {
			if (a < b) {
				System.out.printf("%d %d %d\n", c, a, b);
			}
		}
		if (c < b) {
			if (b < a) {
				System.out.printf("%d %d %d\n", c, b, a);
			}
		}

	}
}

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

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		

		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		if (a < b) {
			if (b < c) {
				System.out.printf("%d %d %d\n", a, b, c);
			} else if (a < c) {
				System.out.printf("%d %d %d\n", a, c, b);
			}
		} else {
			System.out.printf("%d %d %d\n", c, b, a);
		}else{
		if (a < c) {
			System.out.printf("%d %d %d\n", b, a, c);
		} else if (b < c) {
			System.out.printf("%d %d %d\n", b, c, a);
		} else {
			System.out.printf("%d %d %d\n", c, b, a);
		}
	}
}
}

Compiler output:
Main.java:21: error: 'else' without 'if'
		}else{
		 ^
1 error
Language: Java

import java.util.Scanner;

public class Main {

	public static void main(String[] args) {
		

		Scanner sc = new Scanner(System.in);
		
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		if (a < b) {
			if (b < c) {
				System.out.printf("%d %d %d\n", a, b, c);
			} else if (a < c) {
				System.out.printf("%d %d %d\n", a, c, b);
			}
		} else {
			System.out.printf("%d %d %d\n", c, b, a);
		}else{
		if (a < c) {
			System.out.printf("%d %d %d\n", b, a, c);
		} else if (b < c) {
			System.out.printf("%d %d %d\n", b, c, a);
		} else {
			System.out.printf("%d %d %d\n", c, b, a);
		}
	}
}

Compiler output:
Main.java:21: error: 'else' without 'if'
		}else{
		 ^
Main.java:30: error: reached end of file while parsing
}
 ^
2 errors
Language: Java

import java.util.Scanner;

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

			}
		}
	}

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

import java.util.Scanner;

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

			}
		}
	}
}

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

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

			}
		}
	}
}

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

import java.util.Scanner;

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

			}
		}
	}
}

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

import java.util.Scanner;

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

			}
		}
	}
}

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

import java.util.*;

class Main{
    private static Scanner s = new Scanner(System.in);
    public static void main(String[] args){
	ArrayList<Integer> list = new ArrayList<Integer>();

	for(int i=0 ; i < 3 ; i++)
	    list.add(s.nextInt());

	Collections.sort(list);
	
	for(int i=0 ; i < 3 ; i++){
	    if(i)System.out.println(" ");
	    System.out.println(list.get(i));
	}
	System.out.println();
    }
}

Compiler output:
Main.java:14: error: incompatible types: int cannot be converted to boolean
	    if(i)System.out.println(" ");
	       ^
1 error
Language: Java

import java.util.Scanner;

public class AOJ10004{
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		int[] one = new int[3];

		for(int i = 0; i < one.length; i++){
			int p = sc.nextInt();
			if(p >= one[0]){
				int x = one[0];
				int y = one[1];
				
				one[0] = p;
				one[1] = x;
				one[2] = y;
			}else{
				if(p >= one[1]){
					int x = one[1];
					one[1] = p;
					one[2] = x;
				}else{
					one[2] = p;
				}
			}
		}

		int t = one[2];
		one[2] = one[0];
		one[0] = t;		
		System.out.println(one[0] + " " + one[1] + " " + one[2]);
	}
}

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

import java.util.Scanner;

public class p5 {
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		
		int a = input.nextInt();
		int b = input.nextInt();
		int c = input.nextInt();
		
		if(a <= b && a <= c){
			if(b > c){
				System.out.print(a + " " + c + " " + b);
			}
			else{
				System.out.print(a + " " + b + " " + c);
			}
		}
		else if(b <= a&& b <= c){
			if(a > c){
				System.out.print(b + " " + c + " " + a);
			}
			else{
				System.out.print(b + " " + a + " " + c);
			}
		}
		else{
			if(a > b){
				System.out.print(c + " " + b + " " + a);
			}
			else{
				System.out.print(c + " " + a + " " + c);
			}
		}
		
	}
}

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

import java.util.Scanner;

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

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

public class Main{
    public static void main(String[] args){
	int i, j, k;
	int[] data = new int[3];
	Scanner sc = new Scanner(System.in);
	for(i=0; i<data.length; i++)
	    data[i] = sc.nextInt();

	for(i=data.length-1; i>1; i--)
	    for(j=0; j<i; j++)
		if(data[j]>data[j+1]){
		    k = data[j];
		    data[j] = data[j+1];
		    data[j+1] = k;
		}
	for(i=0; i<data.length; i++)
	    System.out.print(data[i] + " ");
        System.out.println();
    }
}

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

import java.util.Scanner;

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

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

		int temp;

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

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

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

	}
}

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

import java.util.Scanner;


public class aoj10004 
{
	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		int[] a=new int[3];
		
		for(int i=0; i<3; i++)
			a[i] = sc.nextInt();
		sc.close();
		
		for(int i=0; i<3-1; i++)
		{
			for(int j=i; j<3; j++)
			{
				if(a[j] < a[i])
				{
					int tmp = a[i];
					a[i] = a[j];
					a[j] = tmp;
				}
			}
		}

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

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

public class Main {
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
		int x=sc.nextInt();
		int y=sc.nextInt();
		int z=sc.nextInt();
		int tmp;
		if(x>=y){
			tmp=x;
			x=y;
			y=tmp;
		}
		if(y>=z){
			tmp=y;
			y=z;
			z=tmp;
		}
		if(x>=y){
			tmp=x;
			x=y;
			y=tmp;
		}
		System.out.println(x+" "+y+" "+z);
	}
}

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

import Java.util.Scanner;

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

Compiler output:
Main.java:1: error: package Java.util does not exist
import Java.util.Scanner;
                ^
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
3 errors
Language: Java

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

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

import java.util.*;

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

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

import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a, b, c;
        String str = "";
        a = scan.nextInt();
        b = scan.nextInt();
        c = scan.nextInt();
        if(a < b) {
            if(a < c) {
                str += a + " ";
                if(b < c) {
                    str += b + " " + c;
                } else {
                    str += c + " " + b;
                }
            } else {
                str += c + " ";
                if(a < b) {
                    str += a + " " + b;
                } else {
                    str += b + " " + a;
                }
            }
        } else {
            if(c < b) {
                str += c + " ";
                if( < ) {
                    str +=  + " " +  + ;
                } else {
                    str +=  + " " +  + ;
                }
            } else {
                str += b + " ";
                if(a < c) {
                    str += a + " " + c;
                } else {
                    str += c + " " + a;
                }
            }
            System.out.println(str);
        }

Compiler output:
Main.java:30: error: illegal start of type
                if( < ) {
                      ^
Main.java:31: error: illegal start of expression
                    str +=  + " " +  + ;
                                       ^
Main.java:33: error: illegal start of expression
                    str +=  + " " +  + ;
                                       ^
Main.java:44: error: reached end of file while parsing
        }
         ^
4 errors
Language: Java

import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a, b, c;
        String str = "";
        a = scan.nextInt();
        b = scan.nextInt();
        c = scan.nextInt();
        if(a < b) {
            if(a < c) {
                str += a + " ";
                if(b < c) {
                    str += b + " " + c;
                } else {
                    str += c + " " + b;
                }
            } else {
                str += c + " ";
                if(a < b) {
                    str += a + " " + b;
                } else {
                    str += b + " " + a;
                }
            }
        } else {
            if(c < b) {
                str += c + " ";
                if(a < b) {
                    str += a + " " + b;
                } else {
                    str += b + " " + a;
                }
            } else {
                str += b + " ";
                if(a < c) {
                    str += a + " " + c;
                } else {
                    str += c + " " + a;
                }
            }
            System.out.println(str);
        }

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

import java.util.Scanner;

class Main {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        int a, b, c;
        String str = "";
        a = scan.nextInt();
        b = scan.nextInt();
        c = scan.nextInt();
        if(a < b) {
            if(a < c) {
                str += a + " ";
                if(b < c) {
                    str += b + " " + c;
                } else {
                    str += c + " " + b;
                }
            } else {
                str += c + " ";
                if(a < b) {
                    str += a + " " + b;
                } else {
                    str += b + " " + a;
                }
            }
        } else {
            if(c < b) {
                str += c + " ";
                if(a < b) {
                    str += a + " " + b;
                } else {
                    str += b + " " + a;
                }
            } else {
                str += b + " ";
                if(a < c) {
                    str += a + " " + c;
                } else {
                    str += c + " " + a;
                }
            }
            System.out.println(str);
        }
}

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

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

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

import java.util.Scanner;

class Main {
    public static void main (String[] args) {
        Scanner sc = new Scanner(System.in);
        String s1 = sc.next();
        String s2 = sc.next();
        String s3 = sc.next();
        int[] ia = {Integer.parseInt(s1);
                    Integer.parseInt(s2);
                    Integer.parseInt(s3)};
        java.util.Arrays.sort(ia);
        System.out.println(ia[0] + " " + ia[1] + " " + ia[2]);
    }
}

Compiler output:
Main.java:9: error: '}' expected
        int[] ia = {Integer.parseInt(s1);
                                        ^
Main.java:11: error: ';' expected
                    Integer.parseInt(s3)};
                                        ^
Main.java:12: error: <identifier> expected
        java.util.Arrays.sort(ia);
                             ^
Main.java:12: error: <identifier> expected
        java.util.Arrays.sort(ia);
                                ^
Main.java:13: error: <identifier> expected
        System.out.println(ia[0] + " " + ia[1] + " " + ia[2]);
                          ^
Main.java:13: error: ']' expected
        System.out.println(ia[0] + " " + ia[1] + " " + ia[2]);
                              ^
Main.java:15: error: class, interface, enum, or record expected
}
^
7 errors
Language: Java

import java.util.Scannerclass Main {

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

	}

}

Compiler output:
Main.java:1: error: ';' expected
import java.util.Scannerclass Main {
                             ^
Main.java:3: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args) {
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:30: error: class, interface, enum, or record expected
}
^
3 errors
Language: Java

mport java.util.Scanner;
 class Main {
	private static Scanner sc;
	public static void main(String[] args) {
		sc = new Scanner(System.in);
		int a = sc.nextInt();
		int b = sc.nextInt();
		int c = sc.nextInt();
		int x;
		if(a>=b){
			x=a;
			b=a;
			b=x;
		}
		if(b>=c){
			x=b;
			b=c;
			c=x;
			
		}
		if(a>=b){
			x=a;
			b=a;
			b=x;
		}
		System.out.println(a+" "+b+" "+c);
	}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.Scanner;
^
1 error
Language: Java

import java.util.Scanner;

public class AOJ10004 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String input = sc.nextLine();
		String[] inputArray = input.split(" ");
		
		if(inputArray.length == 3){
			int[] str = {0,0,0};
			int sub;
			for(int i = 0; i < 3; i++) str[i] = Integer.parseInt(inputArray[i]);
			if(str[0] > str[1]){
				sub = str[0];
				str[0] = str[1];
				str[1] = sub;
			}
			if(str[1] > str[2]){
				sub = str[1];
				str[1] = str[2];
				str[2] = sub;
			}
			if(str[0] > str[1]){
				sub = str[0];
				str[0] = str[1];
				str[1] = sub;
			}
			System.out.print(str[0]+" "+str[1]+" "+str[2]);
		}

	}

}

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

import java.util.Scanner;

public class AOJ10004.java {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		String input = sc.nextLine();
		String[] inputArray = input.split(" ");
		
		if(inputArray.length == 3){
			int[] str = {0,0,0};
			int sub;
			for(int i = 0; i < 3; i++) str[i] = Integer.parseInt(inputArray[i]);
			if(str[0] > str[1]){
				sub = str[0];
				str[0] = str[1];
				str[1] = sub;
			}
			if(str[1] > str[2]){
				sub = str[1];
				str[1] = str[2];
				str[2] = sub;
			}
			if(str[0] > str[1]){
				sub = str[0];
				str[0] = str[1];
				str[1] = sub;
			}
			System.out.print(str[0]+" "+str[1]+" "+str[2]);
		}

	}

}

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

mport java.io.*;
import java.util.Scanner;

class Main {
    public static void main (String[] args) throws IOException {
        long min, mid, max;
        Scanner in = new Scanner(System.in);
        long l1 = Long.parseLong(in.next());
        long l2 = Long.parseLong(in.next());
        long l3 = Long.parseLong(in.next());
        
        if (l1 < l2) {
            if (l3 < l1) {
                min = l3;
                mid = l1;
                max = l2;
            } else if (l2 < l3) {
                min = l1;
                mid = l2;
                max = l3;
            } else {
                min = l1;
                mid = l3;
                max = l2;
            }
        } else {
            if (l3 < l2) {
                min = l3;
                mid = l2;
                max = l1;
            } else if (l1 < l3) {
                min = l2;
                mid = l1;
                max = l3;
            } else {
                min = l2;
                mid = l3;
                max = l1;
            }
        }

        System.out.println(min + " " + mid + " " + max);
    }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.io.*;
^
Main.java:2: error: class, interface, enum, or record expected
import java.util.Scanner;
^
2 errors
Language: Java

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


public class Volume100_4 {

	public static void main(String[] args) throws IOException{
		BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
		String input = reader.readLine();
		String[] array = input.split(" ");
		int x = Integer.parseInt(array[0]);
		int y = Integer.parseInt(array[1]);
		int z = Integer.parseInt(array[2]);
		int[] intArray = {x,y,z};
		if(x <= z && z <= y){
			intArray[0] = x;
			intArray[1] = z;
			intArray[2] = y;
		}else if(x >= y && y >= z){
			intArray[0] = z;
			intArray[1] = y;
			intArray[2] = x;
		}else if(x >= y && x <= z){
			intArray[0] = y;
			intArray[1] = x;
			intArray[2] = z;
		}else if(x >= z && y >= x){
			intArray[0] = z;
			intArray[1] = x;
			intArray[2] = y;
		}else if(x >= z && y <= z){
			intArray[0] = y;
			intArray[1] = z;
			intArray[2] = x;
		}
		// Arrays.sort(intArray);
		System.out.println(intArray[0] + " "+ intArray[1]+" " +intArray[2]);
	}

}

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

#include <stdio.h>

int main(void)
{
int a, b, c;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
if(a > b){
if(b > c){
printf("%d %d %d\n", c, b, a);
}else{
if(a>c){
printf("%d %d %d\n", b, c, a);
}else{
printf("%d %d %d\n", b, a, c);
}}else{
if(b < c){
printf("%d %d %d\n", a, b, c);
}else{
if(a > c){
printf("%d %d %d\n", c, a, b);
}else{
printf("%d %d %d\n", a, c, b);
}}
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:17:3: error: expected '}' before 'else'
   17 | }}else{
      |   ^~~~
main.c:27:1: error: expected declaration or statement at end of input
   27 | }
      | ^
Language: C

#include <stdio.h>
 
int main(void)
{
int a, b, c;
scanf("%d", &a);
scanf("%d", &b);
scanf("%d", &c);
if(a > b){
if(b > c){
printf("%d %d %d\n", c, b, a);
}else{
if(a>c){
printf("%d %d %d\n", b, c, a);
}else{
printf("%d %d %d\n", b, a, c);
}}else{
if(b < c){
printf("%d %d %d\n", a, b, c);
}else{
if(a > c){
printf("%d %d %d\n", c, a, b);
}else{
printf("%d %d %d\n", a, c, b);
}}}
return 0;
}
 

Compiler output:
main.c: In function 'main':
main.c:17:3: error: expected '}' before 'else'
   17 | }}else{
      |   ^~~~
Language: C

#include<stdio.h>
int main(void)
{
  int a[3];

  scanf("%d",&a[0]);
  scanf("%d",&a[1]);
  scanf("%d",&a[2]);

  int i,j;
  int dummy;

  for(i = 0; i < 3; i++){
    for(j = i + 1; j < 3;j++){
      if(a[i] > a[j]){
        dummy = a[i];
        a[i] = a[j];
        a[j] = dummy;
      }
}
}

Compiler output:
main.c: In function 'main':
main.c:21:1: error: expected declaration or statement at end of input
   21 | }
      | ^
Language: C

#include<stdio.h>
int main(){
	int a[3]={0},d,i,j;
	scanf("%d %d %d",&a,&b,&c);
	for(j=2;j>0;j--){
		for(i=0;i<j;i--){
			if(a[i]>a[i+1]){
				d=a[i+1];
				a[i+1]=a[i];
				a[i]=d;
			}
		}
	}
	printf("%d %d %d",a[0],a[1],a[2]);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:30: error: 'b' undeclared (first use in this function)
    4 |         scanf("%d %d %d",&a,&b,&c);
      |                              ^
main.c:4:30: note: each undeclared identifier is reported only once for each function it appears in
main.c:4:33: error: 'c' undeclared (first use in this function)
    4 |         scanf("%d %d %d",&a,&b,&c);
      |                                 ^
Language: C

#include <stdio.h>
int main(){
    int a,b,c,tmp;
    scanf("%d %d %d",&a,&b,&c);
    if(a>b){
    tmp=a;
    a=b;
    b=tmp;
    }
   if(b>c){
    tmp=c;
    c=b;
    b=tmp;
    }
    if(a>b){
    tmp=a;
    a=b;
    b=tmp;
    }
    printf("%d %d %d\n",a,b,c,);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:20:31: error: expected expression before ')' token
   20 |     printf("%d %d %d\n",a,b,c,);
      |                               ^
Language: C

#include <stdio.h>
int main(void){

  int a,b,c;
  scanf("%d %d %d\n",&a,&b,&c)
    if(a < b){
      if(b < c){
	printf("%d %d %d\n",a,b,c)}
      if(b > c){
	if(a < c){}
	if(a > c){}
	if(a = c){}
      }
      if(b = c)
      printf("%d %d %d\n",a,b,c)
      else if ()

printf
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:31: error: expected ';' before 'if'
    5 |   scanf("%d %d %d\n",&a,&b,&c)
      |                               ^
      |                               ;
    6 |     if(a < b){
      |     ~~                         
main.c:20:1: error: expected declaration or statement at end of input
   20 | }
      | ^
Language: C

#include <stdio.h>
int main(void){

  int a,b,c;
  scanf("%d %d %d\n",&a,&b,&c)
    if(a < b){
      if(b < c){
	printf("%d %d %d\n",a,b,c)}
      if(b > c){
	if(a < c){}
	if(a > c){}
	if(a = c){}
      }
      if(b = c)
      printf("%d %d %d\n",a,b,c)
      else if ()

  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:31: error: expected ';' before 'if'
    5 |   scanf("%d %d %d\n",&a,&b,&c)
      |                               ^
      |                               ;
    6 |     if(a < b){
      |     ~~                         
main.c:19:1: error: expected declaration or statement at end of input
   19 | }
      | ^
Language: C

#include <stdio.h>

int main(void){
  int a[3];
  int c;
  int i, j;

  for (i = 0; i <= 3; i++){
    scanf("%d", a[i])l
  }
  for (i = 0; i < 2; i++){
    for (j = 0; j < 2; j++){
      if (a[j] >= a[j + 1]){
        c = a[j];
        a[j] = a[j + 1];
        a[j + 1] = c;
      }
    }
  }
  printf("%d %d %d\n", a[0], a[1], a[2]);

  return (0);
}

Compiler output:
main.c: In function 'main':
main.c:9:22: error: expected ';' before 'l'
    9 |     scanf("%d", a[i])l
      |                      ^
      |                      ;
Language: C

#include <stdio.h>
??
void swap(int *a, int *b)
{
????int tmp = *a;
????*a = *b;
????*b = tmp;
}
??
int main(void)
{
????int a, b, c;
????scanf("%d%d%d", &a, &b, &c);
????if (a > b) swap(&a, &b);
????if (b > c) swap(&b, &c);
????if (a > b) swap(&a, &b);
??
????printf("%d %d %d\n", a, b, c);
??
????return (0);
}

Compiler output:
main.c:2:1: error: expected identifier or '(' before '?' token
    2 | ??
      | ^
main.c:9:1: error: expected identifier or '(' before '?' token
    9 | ??
      | ^
Language: C

#include<iostream>
#include<algorithm>

using namespace std;

int main() {
	int a, b, c;
	cin >> a >> b >> c;

	if (a > b){
		swap(a, b);
	}
	if (b > c){
		swap(b, c);
	}
	if (a > b){
		swap(a, b);
	}
	cout << a << " " << b << " " << c << endl;
	return 0;
}

Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C

int x,y,z,road;
    scanf("%d %d %d",&x,&y,&z);
    if(x>y) 
    {
        road = x;
        x = y;
        y = road;
    }
    if(y>z)
    {
        road = y;
        y = z;
        z = road;
    }
    if(x>y)
    {
        road = x;
        x = y;
        y = road;
    }
    printf("%d %d %d\n",z,y,x);
    return 0;

Compiler output:
main.c:2:11: error: expected declaration specifiers or '...' before string constant
    2 |     scanf("%d %d %d",&x,&y,&z);
      |           ^~~~~~~~~~
main.c:2:22: error: expected declaration specifiers or '...' before '&' token
    2 |     scanf("%d %d %d",&x,&y,&z);
      |                      ^
main.c:2:25: error: expected declaration specifiers or '...' before '&' token
    2 |     scanf("%d %d %d",&x,&y,&z);
      |                         ^
main.c:2:28: error: expected declaration specifiers or '...' before '&' token
    2 |     scanf("%d %d %d",&x,&y,&z);
      |                            ^
main.c:3:5: error: expected identifier or '(' before 'if'
    3 |     if(x>y)
      |     ^~
main.c:9:5: error: expected identifier or '(' before 'if'
    9 |     if(y>z)
      |     ^~
main.c:15:5: error: expected identifier or '(' before 'if'
   15 |     if(x>y)
      |     ^~
main.c:21:12: error: expected declaration specifiers or '...' before string constant
   21 |     printf("%d %d %d\n",z,y,x);
      |            ^~~~~~~~~~~~
main.c:21:25: error: expected declaration specifiers or '...' before 'z'
   21 |     printf("%d %d %d\n",z,y,x);
      |                         ^
main.c:21:27: error: expected declaration specifiers or '...' before 'y'
   21 |     printf("%d %d %d\n",z,y,x);
      |                           ^
main.c:21:29: error: expected declaration specifiers or '...' before 'x'
   21 |     printf("%d %d %d\n",z,y,x);
      |                             ^
main.c:22:5: error: expected identifier or '(' before 'return'
   22 |     return 0;
      |     ^~~~~~
Language: C

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

Compiler output:
main.c:2:11: error: expected declaration specifiers or '...' before string constant
    2 |     scanf("%d %d %d", &a[0], &a[1], &a[2]);
      |           ^~~~~~~~~~
main.c:2:23: error: expected declaration specifiers or '...' before '&' token
    2 |     scanf("%d %d %d", &a[0], &a[1], &a[2]);
      |                       ^
main.c:2:30: error: expected declaration specifiers or '...' before '&' token
    2 |     scanf("%d %d %d", &a[0], &a[1], &a[2]);
      |                              ^
main.c:2:37: error: expected declaration specifiers or '...' before '&' token
    2 |     scanf("%d %d %d", &a[0], &a[1], &a[2]);
      |                                     ^
main.c:6:5: error: expected identifier or '(' before 'for'
    6 |     for(i=0; i<3; i++){
      |     ^~~
main.c:6:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    6 |     for(i=0; i<3; i++){
      |               ^
main.c:6:20: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    6 |     for(i=0; i<3; i++){
      |                    ^~
main.c:16:12: error: expected declaration specifiers or '...' before string constant
   16 |     printf("%d %d %d\n", a[0], a[1], a[2]);
      |            ^~~~~~~~~~~~
main.c:16:26: error: expected declaration specifiers or '...' before 'a'
   16 |     printf("%d %d %d\n", a[0], a[1], a[2]);
      |                          ^
main.c:16:32: error: expected declaration specifiers or '...' before 'a'
   16 |     printf("%d %d %d\n", a[0], a[1], a[2]);
      |                                ^
main.c:16:38: error: expected declaration specifiers or '...' before 'a'
   16 |     printf("%d %d %d\n", a[0], a[1], a[2]);
      |                                      ^
Language: C

#include <stdio.h>

int main() {
  double r;
  scanf("%lf", &r);
  printff("%f %f\n", r * r * 3.141592653589, r * 2 * 3.141592653589);
  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:6:3: error: implicit declaration of function 'printff'; did you mean 'printf'? [-Wimplicit-function-declaration]
    6 |   printff("%f %f\n", r * r * 3.141592653589, r * 2 * 3.141592653589);
      |   ^~~~~~~
      |   printf
Language: C

#include <stdio.h>
int main(void)
{
  int a,b,c;
  scanf("%d %d %d", &a, &b, &c);

   else if (a < b && b < c)
   {
      printf("%d %d %d\n",a ,b ,c);
   }

   else if (a < c && c < b)
   {
      printf("%d %d %d\n",a ,c ,b);
   }

   else if (b < a && a < c)
   {
      printf("%d %d %d\n",b ,a ,c);
   }

   else if (b < c && c < a)
   {
      printf("%d %d %d\n",b ,c ,a);
   }

   else if (c < a && a < b)
   {
      printf("%d %d %d\n",c ,a ,b);
   }

   else if (c < b && b < a)
   {
      printf("%d %d %d\n",c ,b ,a);
   }
   return (0);
}

Compiler output:
main.c: In function 'main':
main.c:7:4: error: 'else' without a previous 'if'
    7 |    else if (a < b && b < c)
      |    ^~~~
Language: C

#include<stdio.h>

int main(void){

  int a[3] , i , j , n = 0;
  
  a[2]=0;

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

Compiler output:
main.c: In function 'main':
main.c:9:33: error: expected expression before '[' token
    9 |   scanf("%d %d %d",&a[0],&a[1],&[2]);
      |                                 ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:8:28: error: 'a' undeclared (first use in this function)
    8 |                         if(a[j] < a[i]){
      |                            ^
main.c:8:28: note: each undeclared identifier is reported only once for each function it appears in
Language: C

import java.io.*;
import java.util.*;
public class Main{
    public static void main(String[] args) throws Exception {
        String[] s;
        int[] a=new int[3];
        BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
        s=br.readLine().split(" ");
        a[0]=Integer.parseInt(s[0]);
        a[1]=Integer.parseInt(s[1]);
        a[2]=Integer.parseInt(s[2]); 
        Arrays.sort(a);
        System.out.println(a[0]+" "+a[1]+" "+a[2]);
    }
}
//by TTTMongolia 10/05/2012

Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.io.*;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.io.*;
      |            ^
main.c:2:1: error: unknown type name 'import'
    2 | import java.util.*;
      | ^~~~~~
main.c:2:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    2 | import java.util.*;
      |            ^
main.c:3:1: error: unknown type name 'public'
    3 | public class Main{
      | ^~~~~~
main.c:3:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'Main'
    3 | public class Main{
      |              ^~~~
Language: C

#include<stdio.h>
int main(){
  int i,j,data[100],temp; 
  for(i=0;i<3;i++){
    scanf("%d",&data[i]);
  }  
  for(i=0;i<2;i++){
    for(j=2;j>i;j--){
      if(data[j]<data[j-1]){
	temp=data[j];
	data[j]=data[j-1];
	data[j-1]=temp;
      }
    }
  }
  for(i=0;i<3;i++){
    printf("%d ",data[i]);
  }
  printf("\n")
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:19:15: error: expected ';' before 'return'
   19 |   printf("\n")
      |               ^
      |               ;
   20 |     return 0;
      |     ~~~~~~
Language: C

#include <stdio.h>

int
main(void)
{
  int a[3];
  scanf("%d %d %d", a[0], a[1], a[2]);
  if (a[0] < a[1])
    if (a[1] < a[2])
      printf("%d %d %d\n", a[0], a[1], a[2]);
    else if (a[0] < a[2])
      printf("%d %d %d\n", a[0], a[2], a[1]);
    else
      printf("%d %d %d\n", a[2], a[0], a[1]);
  else
    if (a[1] > a[2])
      printf("%d %d %d\n", a[2], a[1], a[0]);
    else if (a[0] < a[2])
      printf("%d %d %d\n", a[1], a[0], a[2]);
    else
      printf("%d %d %d\n", a[1], a[2], a[0]);

  return 0;
}
}

Compiler output:
main.c:25:1: error: expected identifier or '(' before '}' token
   25 | }
      | ^
Language: C


#include <stdio.h>

int main(){
	int a,b,c,t;
	scanf("%d %d %d",&a,&b,&c);

	if( a > b ) {
		t = b;
		a = b
		b = t;
	}
	if( b > c ) {
		t = b;
		b = c;
		c = t;
	if( a > c ) {
		t = a;
		a = c;
		c = t;
	}
	printf("%d %d %d", a, b, c);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:22: error: expected ';' before 'b'
   10 |                 a = b
      |                      ^
      |                      ;
   11 |                 b = t;
      |                 ~     
main.c:24:1: error: expected declaration or statement at end of input
   24 | }
      | ^