Language: C++

import std.stdio;
import std.array;
import std.conv;
import std.algorithm;
struct Reader {
    char[][] inputs;
    ulong idx;
    bool nextLine() {
        char[] buf;
        if(readln(buf)==0) return 0;
        inputs=split(buf);
        idx=0;
        return 1;
    }
    char[] nextItem() {
        if(idx==inputs.length) {
            nextLine();
            idx=0;
        }
        return inputs[idx++];
    }
    int nxtInt() {
        return to!int(nextItem());
    }
    double nxtDouble() {
        return to!double(nextItem());
    }
    char[] nxtStr() {
        return nextItem();
    }
}
void main() {
    Reader r;
    int N=r.nxtInt();
    int[] a;
    for(int i=0;i<N;i++) a~=r.nxtInt();
    a.length-=a.sort.uniq.copy(a).length;
    writeln(a.length);
}

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import std.stdio;
      | ^~~~~~
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 std.array;
      | ^~~~~~
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 std.conv;
      | ^~~~~~
a.cc:3:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'import' does not name a type
    4 | import std.algorithm;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:6:9: error: expected unqualified-id before '[' token
    6 |     char[][] inputs;
      |         ^
a.cc:7:5: error: 'ulong' does not name a type; did you mean 'long'?
    7 |     ulong idx;
      |     ^~~~~
      |     long
a.cc:15:9: error: expected unqualified-id before '[' token
   15 |     char[] nextItem() {
      |         ^
a.cc:28:9: error: expected unqualified-id before '[' token
   28 |     char[] nxtStr() {
      |         ^
a.cc:31:2: error: expected ';' after struct definition
   31 | }
      |  ^
      |  ;
a.cc: In member function 'bool Reader::nextLine()':
a.cc:9:13: error: structured binding declaration cannot have type 'char'
    9 |         char[] buf;
      |             ^~
a.cc:9:13: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:9:13: error: empty structured binding declaration
a.cc:9:16: error: expected initializer before 'buf'
    9 |         char[] buf;
      |                ^~~
a.cc:10:19: error: 'buf' was not declared in this scope
   10 |         if(readln(buf)==0) return 0;
      |                   ^~~
a.cc:10:12: error: 'readln' was not declared in this scope
   10 |         if(readln(buf)==0) return 0;
      |            ^~~~~~
a.cc:11:9: error: 'inputs' was not declared in this scope
   11 |         inputs=split(buf);
      |         ^~~~~~
a.cc:11:22: error: 'buf' was not declared in this scope
   11 |         inputs=split(buf);
      |                      ^~~
a.cc:11:16: error: 'split' was not declared in this scope
   11 |         inputs=split(buf);
      |                ^~~~~
a.cc:12:9: error: 'idx' was not declared in this scope
   12 |         idx=0;
      |         ^~~
a.cc: In member function 'int Reader::nxtInt()':
a.cc:23:16: error: 'to' was not declared in this scope
   23 |         return to!int(nextItem());
      |                ^~
a.cc:23:18: error: expected ';' before '!' token
   23 |         return to!int(nextItem());
      |                  ^
a.cc:23:23: error: 'nextItem' was not declared in this scope
   23 |         return to!int(nextItem());
      |                       ^~~~~~~~
a.cc: In member function 'double Reader::nxtDouble()':
a.cc:26:16: error: 'to' was not declared in this scope
   26 |         return to!double(nextItem());
      |                ^~
a.cc:26:18: error: expected ';' before '!' token
   26 |         return to!double(nextItem());
      |                  ^
a.cc:26:26: error: 'nextItem' was not declared in this scope
   26 |         return to!double(nextItem());
      |                          ^~~~~~~~
a.cc: At global scope:
a.cc:32:1: error: '::main' must return 'int'
   32 | void main() {
      | ^~~~
a.cc: In function 'int main()':
a.cc:35:8: error: structured binding declaration cannot have type 'int'
   35 |     int[] a;
      |        ^~
a.cc:35:8: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:35:8: error: empty structured binding declaration
a.cc:35:11: error: expected initializer before 'a'
   35 |     int[] a;
      |           ^
a.cc:36:26: error: 'a' was not declared in this scope
   36 |     for(int i=0;i<N;i++) a~=r.nxtInt();
      |                          ^
a.cc:37:5: error: 'a' was not declared in this scope
   37 |     a.length-=a.sort.uniq.copy(a).length;
      |     ^
a.cc:38:5: error: 'writeln' was not declared in this scope
   38 |     writeln(a.length);
      |     ^~~~~~~