Language: Java

#include <iostream>
#include <iomanip>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <cassert>
#include <algorithm>
#include <numeric>
#include <random>
#include <vector>
#include <array>
#include <bitset>
#include <queue>
#include <set>
#include <unordered_set>
#include <map>
#include <unordered_map>

using namespace std;
using uint = unsigned int;
using ll = long long;
using ull = unsigned long long;
constexpr ll TEN(int n) { return (n==0) ? 1 : 10*TEN(n-1); }
template<class T> using V = vector<T>;
template<class T> using VV = V<V<T>>;

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    cout << setprecision(20);
    char x, y;
    cin >> x >> y;
    if (x < y) cout << "<" << endl;
    else if (x == y) cout << "=" << endl;
    else cout << ">" << endl;
    return 0;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <iostream>
^
Main.java:2: error: illegal character: '#'
#include <iomanip>
^
Main.java:3: error: illegal character: '#'
#include <cstdio>
^
Main.java:4: error: illegal character: '#'
#include <cstdlib>
^
Main.java:5: error: illegal character: '#'
#include <cstring>
^
Main.java:6: error: illegal character: '#'
#include <cassert>
^
Main.java:7: error: illegal character: '#'
#include <algorithm>
^
Main.java:8: error: illegal character: '#'
#include <numeric>
^
Main.java:9: error: illegal character: '#'
#include <random>
^
Main.java:10: error: illegal character: '#'
#include <vector>
^
Main.java:11: error: illegal character: '#'
#include <array>
^
Main.java:12: error: illegal character: '#'
#include <bitset>
^
Main.java:13: error: illegal character: '#'
#include <queue>
^
Main.java:14: error: illegal character: '#'
#include <set>
^
Main.java:15: error: illegal character: '#'
#include <unordered_set>
^
Main.java:16: error: illegal character: '#'
#include <map>
^
Main.java:17: error: illegal character: '#'
#include <unordered_map>
^
Main.java:20: error: unnamed classes are a preview feature and are disabled by default.
using uint = unsigned int;
^
  (use --enable-preview to enable unnamed classes)
Main.java:20: error: ';' expected
using uint = unsigned int;
                     ^
Main.java:21: error: '.class' expected
using ll = long long;
                ^
Main.java:22: error: ';' expected
using ull = unsigned long long;
                    ^
Main.java:23: error: class, interface, enum, or record expected
constexpr ll TEN(int n) { return (n==0) ? 1 : 10*TEN(n-1); }
^
Main.java:23: error: class, interface, enum, or record expected
constexpr ll TEN(int n) { return (n==0) ? 1 : 10*TEN(n-1); }
                                                           ^
Main.java:24: error: '{' expected
template<class T> using V = vector<T>;
                ^
Main.java:24: error: class, interface, enum, or record expected
template<class T> using V = vector<T>;
                                  ^
Main.java:25: error: class, interface, enum, or record expected
template<class T> using VV = V<V<T>>;
^
Main.java:25: error: '{' expected
template<class T> using VV = V<V<T>>;
                ^
Main.java:25: error: class, interface, enum, or record expected
template<class T> using VV = V<V<T>>;
                              ^
Main.java:29: error: not a statement
    ios::sync_with_stdio(false);
    ^
Main.java:30: error: not a statement
    cout << setprecision(20);
         ^
Main.java:32: error: not a statement
    cin >> x >> y;
             ^
Main.java:33: error: not a statement
    if (x < y) cout << "<" << endl;
                           ^
Main.java:34: error: not a statement
    else if (x == y) cout << "=" << endl;
                                 ^
Main.java:35: error: not a statement
    else cout << ">" << endl;
                     ^
Main.java:29: error: ';' expected
    ios::sync_with_stdio(false);
                        ^
35 errors