Language: C++

import java.io.IOException;
import java.io.InputStream;
import java.util.Map;
import java.util.NoSuchElementException;

class FastScanner {
    private final InputStream in = System.in;
    private final byte[] buffer = new byte[1024];
    private int ptr = 0;
    private int buflen = 0;

    private boolean hasNextByte() {
        if (ptr < buflen) {
            return true;
        } else {
            ptr = 0;
            try {
                buflen = in.read(buffer);
            } catch (IOException e) {
                e.printStackTrace();
            }
            if (buflen <= 0) {
                return false;
            }
        }
        return true;
    }

    private int readByte() {
        if (hasNextByte())
            return buffer[ptr++];
        else
            return -1;
    }

    private static boolean isPrintableChar(int c) {
        return 33 <= c && c <= 126;
    }

    public boolean hasNext() {
        while (hasNextByte() && !isPrintableChar(buffer[ptr]))
            ptr++;
        return hasNextByte();
    }

    public String next() {
        if (!hasNext())
            throw new NoSuchElementException();
        StringBuilder sb = new StringBuilder();
        int b = readByte();
        while (isPrintableChar(b)) {
            sb.appendCodePoint(b);
            b = readByte();
        }
        return sb.toString();
    }

    public long nextLong() {
        if (!hasNext())
            throw new NoSuchElementException();
        long n = 0;
        boolean minus = false;
        int b = readByte();
        if (b == '-') {
            minus = true;
            b = readByte();
        }
        if (b < '0' || '9' < b) {
            throw new NumberFormatException();
        }
        while (true) {
            if ('0' <= b && b <= '9') {
                n *= 10;
                n += b - '0';
            } else if (b == -1 || !isPrintableChar(b)) {
                return minus ? -n : n;
            } else {
                throw new NumberFormatException();
            }
            b = readByte();
        }
    }

    public int nextInt() {
        long nl = nextLong();
        if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)
            throw new NumberFormatException();
        return (int) nl;
    }

    public double nextDouble() {
        return Double.parseDouble(next());
    }
}

public class Main {
    static int[] w = new int[100010];
    static int[] v = new int[100010];
    static int[][] dp = new int[110][100010];
    static int k;

    static int chmin(int a, int b) {
        if (a > b) {
            a = b;
            return a;
        }
        return a;
    }

    static int chmax(int a, int b) {
        if (a < b) {
            a = b;
            return a;
        }
        return a;
    }

    static int calcNumOfCombination(int n, int r) {
        int num = 1;
        for (int i = 1; i <= r; i++) {
            num = num * (n - i + 1) / i;
        }
        return num;
    }

    static long lcm(long a, long b) {
        long temp;
        long c = a;
        c *= b;
        while ((temp = a % b) != 0) {
            a = b;
            b = temp;
        }
        return (long) (c / b);
    }

    static long f(long n, Map<Long, Long> map) {
        if (n < 2)
            return 1;
        else if (map.containsKey(n)) {
            return map.get(n);
        } else {
            map.put(n, n * f(n - 2, map));
            return map.get(n);
        }

    }

    public long factorialUsingRecursion(int n) {
        if (n <= 2) {
            return n;
        }
        return n * factorialUsingRecursion(n - 1);
    }

    public static void main(String[] args) {
        FastScanner fs = new FastScanner();
        int ans = 0;
        int n = fs.nextInt();
        int x = fs.nextInt();
        if (n == x)
            System.out.println("Yes");
        else
            System.out.println("No");
    }
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.IOException;
      | ^~~~~~
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.io.InputStream;
      | ^~~~~~
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 java.util.Map;
      | ^~~~~~
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 java.util.NoSuchElementException;
      | ^~~~~~
a.cc:4:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:7:12: error: expected ':' before 'final'
    7 |     private final InputStream in = System.in;
      |            ^~~~~~
      |            :
a.cc:7:13: error: 'final' does not name a type
    7 |     private final InputStream in = System.in;
      |             ^~~~~
a.cc:8:12: error: expected ':' before 'final'
    8 |     private final byte[] buffer = new byte[1024];
      |            ^~~~~~
      |            :
a.cc:8:13: error: 'final' does not name a type
    8 |     private final byte[] buffer = new byte[1024];
      |             ^~~~~
a.cc:9:12: error: expected ':' before 'int'
    9 |     private int ptr = 0;
      |            ^~~~
      |            :
a.cc:10:12: error: expected ':' before 'int'
   10 |     private int buflen = 0;
      |            ^~~~
      |            :
a.cc:12:12: error: expected ':' before 'boolean'
   12 |     private boolean hasNextByte() {
      |            ^~~~~~~~
      |            :
a.cc:12:13: error: 'boolean' does not name a type; did you mean 'bool'?
   12 |     private boolean hasNextByte() {
      |             ^~~~~~~
      |             bool
a.cc:29:12: error: expected ':' before 'int'
   29 |     private int readByte() {
      |            ^~~~
      |            :
a.cc:36:12: error: expected ':' before 'static'
   36 |     private static boolean isPrintableChar(int c) {
      |            ^~~~~~~
      |            :
a.cc:36:20: error: 'boolean' does not name a type; did you mean 'bool'?
   36 |     private static boolean isPrintableChar(int c) {
      |                    ^~~~~~~
      |                    bool
a.cc:40:11: error: expected ':' before 'boolean'
   40 |     public boolean hasNext() {
      |           ^~~~~~~~
      |           :
a.cc:40:12: error: 'boolean' does not name a type; did you mean 'bool'?
   40 |     public boolean hasNext() {
      |            ^~~~~~~
      |            bool
a.cc:46:11: error: expected ':' before 'String'
   46 |     public String next() {
      |           ^~~~~~~
      |           :
a.cc:46:12: error: 'String' does not name a type
   46 |     public String next() {
      |            ^~~~~~
a.cc:58:11: error: expected ':' before 'long'
   58 |     public long nextLong() {
      |           ^~~~~
      |           :
a.cc:84:11: error: expected ':' before 'int'
   84 |     public int nextInt() {
      |           ^~~~
      |           :
a.cc:91:11: error: expected ':' before 'double'
   91 |     public double nextDouble() {
      |           ^~~~~~~
      |           :
a.cc:94:2: error: expected ';' after class definition
   94 | }
      |  ^
      |  ;
a.cc: In member function 'int FastScanner::readByte()':
a.cc:30:13: error: 'hasNextByte' was not declared in this scope
   30 |         if (hasNextByte())
      |             ^~~~~~~~~~~
a.cc:31:20: error: 'buffer' was not declared in this scope; did you mean 'buflen'?
   31 |             return buffer[ptr++];
      |                    ^~~~~~
      |                    buflen
a.cc: In member function 'long int FastScanner::nextLong()':
a.cc:59:14: error: 'hasNext' was not declared in this scope
   59 |         if (!hasNext())
      |              ^~~~~~~
a.cc:60:23: error: expected type-specifier before 'NoSuchElementException'
   60 |             throw new NoSuchElementException();
      |                       ^~~~~~~~~~~~~~~~~~~~~~
a.cc:62:9: error: 'boolean' was not declared in this scope; did you mean 'bool'?
   62 |         boolean minus = false;
      |         ^~~~~~~
      |         bool
a.cc:65:13: error: 'minus' was not declared in this scope
   65 |             minus = true;
      |             ^~~~~
a.cc:69:23: error: expected type-specifier before 'NumberFormatException'
   69 |             throw new NumberFormatException();
      |                       ^~~~~~~~~~~~~~~~~~~~~
a.cc:75:36: error: 'isPrintableChar' was not declared in this scope
   75 |             } else if (b == -1 || !isPrintableChar(b)) {
      |                                    ^~~~~~~~~~~~~~~
a.cc:76:24: error: 'minus' was not declared in this scope
   76 |                 return minus ? -n : n;
      |                        ^~~~~
a.cc:78:27: error: expected type-specifier before 'NumberFormatException'
   78 |                 throw new NumberFormatException();
      |                           ^~~~~~~~~~~~~~~~~~~~~
a.cc: In member function 'int FastScanner::nextInt()':
a.cc:86:18: error: 'Integer' was not declared in this scope
   86 |         if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)
      |                  ^~~~~~~
a.cc:87:23: error: expected type-specifier before 'NumberFormatException'
   87 |             throw new NumberFormatException();
      |                       ^~~~~~~~~~~~~~~~~~~~~
a.cc: In member function 'double FastScanner::nextDouble()':
a.cc:92:16: error: 'Double' was not declared in this scope; did you mean 'double'?
   92 |         return Double.parseDouble(next());
      |                ^~~~~~
      |                double
a.cc:92:35: error: 'next' was not declared in this scope; did you mean 'nextInt'?
   92 |         return Double.parseDouble(next());
      |                                   ^~~~
      |                                   nextInt
a.cc: At global scope:
a.cc:96:1: error: expected unqualified-id before 'public'
   96 | public class Main {
      | ^~~~~~