Language: C++

import java.util.*;class Main{public static void main(String[]z){Scanner s=new Scanner(System.in);int r=0,n,t;for(t=n=s.nextInt();t-->0;)r+=s.nextInt();System.out.println(r/n);}}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;class Main{public static void main(String[]z){Scanner s=new Scanner(System.in);int r=0,n,t;for(t=n=s.nextInt();t-->0;)r+=s.nextInt();System.out.println(r/n);}}
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:1:37: error: expected ':' before 'static'
    1 | import java.util.*;class Main{public static void main(String[]z){Scanner s=new Scanner(System.in);int r=0,n,t;for(t=n=s.nextInt();t-->0;)r+=s.nextInt();System.out.println(r/n);}}
      |                                     ^~~~~~~
      |                                     :
a.cc:1:55: error: 'String' has not been declared
    1 | import java.util.*;class Main{public static void main(String[]z){Scanner s=new Scanner(System.in);int r=0,n,t;for(t=n=s.nextInt();t-->0;)r+=s.nextInt();System.out.println(r/n);}}
      |                                                       ^~~~~~
a.cc:1:63: error: expected ',' or '...' before 'z'
    1 | import java.util.*;class Main{public static void main(String[]z){Scanner s=new Scanner(System.in);int r=0,n,t;for(t=n=s.nextInt();t-->0;)r+=s.nextInt();System.out.println(r/n);}}
      |                                                               ^
a.cc:1:179: error: expected ';' after class definition
    1 | import java.util.*;class Main{public static void main(String[]z){Scanner s=new Scanner(System.in);int r=0,n,t;for(t=n=s.nextInt();t-->0;)r+=s.nextInt();System.out.println(r/n);}}
      |                                                                                                                                                                                   ^
      |                                                                                                                                                                                   ;
a.cc: In static member function 'static void Main::main(int*)':
a.cc:1:66: error: 'Scanner' was not declared in this scope
    1 | import java.util.*;class Main{public static void main(String[]z){Scanner s=new Scanner(System.in);int r=0,n,t;for(t=n=s.nextInt();t-->0;)r+=s.nextInt();System.out.println(r/n);}}
      |                                                                  ^~~~~~~
a.cc:1:119: error: 's' was not declared in this scope
    1 | import java.util.*;class Main{public static void main(String[]z){Scanner s=new Scanner(System.in);int r=0,n,t;for(t=n=s.nextInt();t-->0;)r+=s.nextInt();System.out.println(r/n);}}
      |                                                                                                                       ^
a.cc:1:153: error: 'System' was not declared in this scope
    1 | import java.util.*;class Main{public static void main(String[]z){Scanner s=new Scanner(System.in);int r=0,n,t;for(t=n=s.nextInt();t-->0;)r+=s.nextInt();System.out.println(r/n);}}
      |                                                                                                                                                         ^~~~~~