Language: C++

import java.util.Scanner;
import java.util.Arrays;
import acjava.util.Collections;

class Main{
	public static void main(String[] a){
			Scanner sc=new Scanner(System.in);
			int[] input=new input[10];
			for(int i=0;i<10;i++){
				input[i]=sc.nextLine();
			}
			Arrays.sort(input,Collections.reserveOrder());
		for(int j=0;j<3;j++){
		System.out.println(input[i]);
		}
	}
}

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:2:1: error: 'import' does not name a type
    2 | import java.util.Arrays;
      | ^~~~~~
a.cc:2:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: 'import' does not name a type
    3 | import acjava.util.Collections;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:15: error: expected ':' before 'static'
    6 |         public static void main(String[] a){
      |               ^~~~~~~
      |               :
a.cc:6:33: error: 'String' has not been declared
    6 |         public static void main(String[] a){
      |                                 ^~~~~~
a.cc:6:42: error: expected ',' or '...' before 'a'
    6 |         public static void main(String[] a){
      |                                          ^
a.cc:17:2: error: expected ';' after class definition
   17 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:7:25: error: 'Scanner' was not declared in this scope
    7 |                         Scanner sc=new Scanner(System.in);
      |                         ^~~~~~~
a.cc:8:28: error: structured binding declaration cannot have type 'int'
    8 |                         int[] input=new input[10];
      |                            ^~
a.cc:8:28: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:8:28: error: empty structured binding declaration
a.cc:8:31: error: expected initializer before 'input'
    8 |                         int[] input=new input[10];
      |                               ^~~~~
a.cc:10:33: error: 'input' was not declared in this scope; did you mean 'int'?
   10 |                                 input[i]=sc.nextLine();
      |                                 ^~~~~
      |                                 int
a.cc:10:42: error: 'sc' was not declared in this scope
   10 |                                 input[i]=sc.nextLine();
      |                                          ^~
a.cc:12:25: error: 'Arrays' was not declared in this scope
   12 |                         Arrays.sort(input,Collections.reserveOrder());
      |                         ^~~~~~
a.cc:12:37: error: 'input' was not declared in this scope; did you mean 'int'?
   12 |                         Arrays.sort(input,Collections.reserveOrder());
      |                                     ^~~~~
      |                                     int
a.cc:12:43: error: 'Collections' was not declared in this scope
   12 |                         Arrays.sort(input,Collections.reserveOrder());
      |                                           ^~~~~~~~~~~
a.cc:14:17: error: 'System' was not declared in this scope
   14 |                 System.out.println(input[i]);
      |                 ^~~~~~
a.cc:14:42: error: 'i' was not declared in this scope
   14 |                 System.out.println(input[i]);
      |                                          ^