Language: C++

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

}
}



Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.Scanner;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:8: error: expected ':' before 'static'
    4 |  public static void main(String[] args){
      |        ^~~~~~~
      |        :
a.cc:4:26: error: 'String' has not been declared
    4 |  public static void main(String[] args){
      |                          ^~~~~~
a.cc:4:35: error: expected ',' or '...' before 'args'
    4 |  public static void main(String[] args){
      |                                   ^~~~
a.cc:27:2: error: expected ';' after class definition
   27 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:6:2: error: 'Scanner' was not declared in this scope
    6 |  Scanner sc = new Scanner(System.in);
      |  ^~~~~~~
a.cc:8:13: error: 'sc' was not declared in this scope
    8 |     int a = sc.nextInt();
      |             ^~
a.cc:13:1: error: 'System' was not declared in this scope
   13 | System.out.println(a+" "+b+" "+c);
      | ^~~~~~
a.cc:13:27: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
   13 | System.out.println(a+" "+b+" "+c);
      |                    ~~~~~~~^~~~
      |                         |  |
      |                         |  const char [2]
      |                         const char*
a.cc:15:1: error: 'System' was not declared in this scope
   15 | System.out.println(a+" "+c+" "+b);
      | ^~~~~~
a.cc:15:27: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
   15 | System.out.println(a+" "+c+" "+b);
      |                    ~~~~~~~^~~~
      |                         |  |
      |                         |  const char [2]
      |                         const char*
a.cc:17:1: error: 'System' was not declared in this scope
   17 | System.out.println(b+" "+a+" "+c);
      | ^~~~~~
a.cc:17:27: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
   17 | System.out.println(b+" "+a+" "+c);
      |                    ~~~~~~~^~~~
      |                         |  |
      |                         |  const char [2]
      |                         const char*
a.cc:19:1: error: 'System' was not declared in this scope
   19 | System.out.println(b+" "+c+" "+a);
      | ^~~~~~
a.cc:19:27: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
   19 | System.out.println(b+" "+c+" "+a);
      |                    ~~~~~~~^~~~
      |                         |  |
      |                         |  const char [2]
      |                         const char*
a.cc:21:1: error: 'System' was not declared in this scope
   21 | System.out.println(c+" "+a+" "+b);
      | ^~~~~~
a.cc:21:27: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
   21 | System.out.println(c+" "+a+" "+b);
      |                    ~~~~~~~^~~~
      |                         |  |
      |                         |  const char [2]
      |                         const char*
a.cc:23:1: error: 'System' was not declared in this scope
   23 | System.out.println(c+" "+b+" "+a);
      | ^~~~~~
a.cc:23:27: error: invalid operands of types 'const char*' and 'const char [2]' to binary 'operator+'
   23 | System.out.println(c+" "+b+" "+a);
      |                    ~~~~~~~^~~~
      |                         |  |
      |                         |  const char [2]
      |                         const char*