Language: C++

import java.util.*;

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

    Scanner scanner = new Scanner(System.in);
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    int c = scanner.nextInt();

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

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

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

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

    else if (a == b && b > c){
      System.out.printf("%d %d %d\n", a , b , c);
    }

    else if (a == c && c > b){
      System.out.printf("%d %d %d\n", a , c , b);
    }

    else if (b == c && c > a){
      System.out.printf("%d %d %d\n", b , c , a);
    }

  }
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:9: error: expected ':' before 'static'
    4 |   public static void main(String[] args) {
      |         ^~~~~~~
      |         :
a.cc:4:27: error: 'String' has not been declared
    4 |   public static void main(String[] args) {
      |                           ^~~~~~
a.cc:4:36: error: expected ',' or '...' before 'args'
    4 |   public static void main(String[] args) {
      |                                    ^~~~
a.cc:46:2: error: expected ';' after class definition
   46 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:6:5: error: 'Scanner' was not declared in this scope
    6 |     Scanner scanner = new Scanner(System.in);
      |     ^~~~~~~
a.cc:7:13: error: 'scanner' was not declared in this scope
    7 |     int a = scanner.nextInt();
      |             ^~~~~~~
a.cc:12:7: error: 'System' was not declared in this scope
   12 |       System.out.printf("%d %d %d\n", c, b, a);
      |       ^~~~~~
a.cc:15:7: error: 'System' was not declared in this scope
   15 |       System.out.printf("%d %d %d\n", c , a , b);
      |       ^~~~~~
a.cc:18:7: error: 'System' was not declared in this scope
   18 |       System.out.printf("%d %d %d\n", a , b , c);
      |       ^~~~~~
a.cc:22:7: error: 'System' was not declared in this scope
   22 |       System.out.printf("%d %d %d\n", a , b , c);
      |       ^~~~~~
a.cc:26:7: error: 'System' was not declared in this scope
   26 |       System.out.printf("%d %d %d\n", b , a, c);
      |       ^~~~~~
a.cc:30:7: error: 'System' was not declared in this scope
   30 |       System.out.printf("%d %d %d\n", b , c , a);
      |       ^~~~~~
a.cc:34:7: error: 'System' was not declared in this scope
   34 |       System.out.printf("%d %d %d\n", a , b , c);
      |       ^~~~~~
a.cc:38:7: error: 'System' was not declared in this scope
   38 |       System.out.printf("%d %d %d\n", a , c , b);
      |       ^~~~~~
a.cc:42:7: error: 'System' was not declared in this scope
   42 |       System.out.printf("%d %d %d\n", b , c , a);
      |       ^~~~~~