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) {println(a " " b " " c);

} else if (a < c) { println(a " " c " " b);

}else{ println(c " " a " " b);

}


} else if (a < c) {println(b " " a " " c); 

}else if(b < c) {println(b " " c " " a);

}else{ println(c " " b " " a);

}


}
}

Compiler output:
Main.java:18: error: ')' or ',' expected
if (b < c) {println(a " " b " " c);
                     ^
Main.java:18: error: not a statement
if (b < c) {println(a " " b " " c);
                          ^
Main.java:18: error: ';' expected
if (b < c) {println(a " " b " " c);
                           ^
Main.java:18: error: not a statement
if (b < c) {println(a " " b " " c);
                                ^
Main.java:18: error: ';' expected
if (b < c) {println(a " " b " " c);
                                 ^
Main.java:20: error: ')' or ',' expected
} else if (a < c) { println(a " " c " " b);
                             ^
Main.java:20: error: not a statement
} else if (a < c) { println(a " " c " " b);
                                  ^
Main.java:20: error: ';' expected
} else if (a < c) { println(a " " c " " b);
                                   ^
Main.java:20: error: not a statement
} else if (a < c) { println(a " " c " " b);
                                        ^
Main.java:20: error: ';' expected
} else if (a < c) { println(a " " c " " b);
                                         ^
Main.java:22: error: ')' or ',' expected
}else{ println(c " " a " " b);
                ^
Main.java:22: error: not a statement
}else{ println(c " " a " " b);
                     ^
Main.java:22: error: ';' expected
}else{ println(c " " a " " b);
                      ^
Main.java:22: error: not a statement
}else{ println(c " " a " " b);
                           ^
Main.java:22: error: ';' expected
}else{ println(c " " a " " b);
                            ^
Main.java:27: error: ')' or ',' expected
} else if (a < c) {println(b " " a " " c); 
                            ^
Main.java:27: error: not a statement
} else if (a < c) {println(b " " a " " c); 
                                 ^
Main.java:27: error: ';' expected
} else if (a < c) {println(b " " a " " c); 
                                  ^
Main.java:27: error: not a statement
} else if (a < c) {println(b " " a " " c); 
                                       ^
Main.java:27: error: ';' expected
} else if (a < c) {println(b " " a " " c); 
                                        ^
Main.java:29: error: ')' or ',' expected
}else if(b < c) {println(b " " c " " a);
                          ^
Main.java:29: error: not a statement
}else if(b < c) {println(b " " c " " a);
                               ^
Main.java:29: error: ';' expected
}else if(b < c) {println(b " " c " " a);
                                ^
Main.java:29: error: not a statement
}else if(b < c) {println(b " " c " " a);
                                     ^
Main.java:29: error: ';' expected
}else if(b < c) {println(b " " c " " a);
                                      ^
Main.java:31: error: ')' or ',' expected
}else{ println(c " " b " " a);
                ^
Main.java:31: error: not a statement
}else{ println(c " " b " " a);
                     ^
Main.java:31: error: ';' expected
}else{ println(c " " b " " a);
                      ^
Main.java:31: error: not a statement
}else{ println(c " " b " " a);
                           ^
Main.java:31: error: ';' expected
}else{ println(c " " b " " a);
                            ^
30 errors