Language: Java

#include <bits/stdc++.h>
using namespace std;

using ll = long long;
using ull = unsigned long long;
using ld = long double;

#define MOD 1000000007LL

#define rep(i, n) for(ll (i) = 0LL;(i) < (ll)(n);(i)++)
#define rep2(i, s, e) for(ll (i) = (ll)(s);(i) < (ll)(e);(i)++)
#define repi(i, n) for(ll (i) = 0LL;(i) <= (ll)(n);(i)++)
#define repi2(i, s, e) for(ll (i) = (ll)(s);(i) <= (ll)(e);(i)++)
#define per(i, n) for(ll (i) = (ll)(n) - 1LL;(i) >= 0LL;(i)--)
#define per2(i, s, e) for(ll (i) = (ll)(s) - 1LL;(i) >= (ll)(e);(i)--)
#define peri(i, n) for(ll (i) = (ll)(n);(i) >= 0LL;(i)--)
#define peri2(i, s, e) for(ll (i) = (ll)(s);(i) >= (ll)(e);(i)--)
#define iter(i, it) for(auto &(i): (it))

template<typename T, typename U> ostream& operator<<(ostream &s, const pair<T, U> m) {
    cout << "(" << m.first << ", " << m.second << ")";
    return s;
}
template<typename T, typename U> ostream& operator<<(ostream &s, const map<T, U> m) {
    ll c = 0;
    cout << "{ ";
    iter(i, m) cout << i << (c++ == m.size() - 1 ? " " : ", ");
    cout << "}";
    return s;
}
template<typename T> ostream& operator<<(ostream &s, const vector<T> &v) {
    cout << "{ ";
    rep(i, v.size()) cout << v[i] << (i == v.size() - 1 ? " " : ", ");
    cout << "}";
    return s;
}
template<typename T> ostream& operator<<(ostream &s, const list<T> &v) {
    ll c = 0;
    cout << "{ ";
    iter(i, v) cout << i << (c++ == v.size() - 1 ? " " : ", ");
    cout << "}";
    return s;
}

int main(void) {
    ll x;
    cin >> x;
    cout << !x << endl;
    return 0;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <bits/stdc++.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <bits/stdc++.h>
         ^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
using ll = long long;
^
  (use --enable-preview to enable unnamed classes)
Main.java:4: error: '.class' expected
using ll = long long;
                ^
Main.java:5: error: ';' expected
using ull = unsigned long long;
                    ^
Main.java:6: error: '.class' expected
using ld = long double;
                ^
Main.java:8: error: illegal character: '#'
#define MOD 1000000007LL
^
Main.java:8: error: class, interface, enum, or record expected
#define MOD 1000000007LL
        ^
Main.java:10: error: illegal character: '#'
#define rep(i, n) for(ll (i) = 0LL;(i) < (ll)(n);(i)++)
^
Main.java:10: error: class, interface, enum, or record expected
#define rep(i, n) for(ll (i) = 0LL;(i) < (ll)(n);(i)++)
                                   ^
Main.java:10: error: class, interface, enum, or record expected
#define rep(i, n) for(ll (i) = 0LL;(i) < (ll)(n);(i)++)
                                                 ^
Main.java:11: error: illegal character: '#'
#define rep2(i, s, e) for(ll (i) = (ll)(s);(i) < (ll)(e);(i)++)
^
Main.java:11: error: class, interface, enum, or record expected
#define rep2(i, s, e) for(ll (i) = (ll)(s);(i) < (ll)(e);(i)++)
                                           ^
Main.java:11: error: class, interface, enum, or record expected
#define rep2(i, s, e) for(ll (i) = (ll)(s);(i) < (ll)(e);(i)++)
                                                         ^
Main.java:12: error: illegal character: '#'
#define repi(i, n) for(ll (i) = 0LL;(i) <= (ll)(n);(i)++)
^
Main.java:12: error: class, interface, enum, or record expected
#define repi(i, n) for(ll (i) = 0LL;(i) <= (ll)(n);(i)++)
                                    ^
Main.java:12: error: class, interface, enum, or record expected
#define repi(i, n) for(ll (i) = 0LL;(i) <= (ll)(n);(i)++)
                                                   ^
Main.java:13: error: illegal character: '#'
#define repi2(i, s, e) for(ll (i) = (ll)(s);(i) <= (ll)(e);(i)++)
^
Main.java:13: error: class, interface, enum, or record expected
#define repi2(i, s, e) for(ll (i) = (ll)(s);(i) <= (ll)(e);(i)++)
                                            ^
Main.java:13: error: class, interface, enum, or record expected
#define repi2(i, s, e) for(ll (i) = (ll)(s);(i) <= (ll)(e);(i)++)
                                                           ^
Main.java:14: error: illegal character: '#'
#define per(i, n) for(ll (i) = (ll)(n) - 1LL;(i) >= 0LL;(i)--)
^
Main.java:14: error: class, interface, enum, or record expected
#define per(i, n) for(ll (i) = (ll)(n) - 1LL;(i) >= 0LL;(i)--)
                                             ^
Main.java:14: error: class, interface, enum, or record expected
#define per(i, n) for(ll (i) = (ll)(n) - 1LL;(i) >= 0LL;(i)--)
                                                        ^
Main.java:15: error: illegal character: '#'
#define per2(i, s, e) for(ll (i) = (ll)(s) - 1LL;(i) >= (ll)(e);(i)--)
^
Main.java:15: error: class, interface, enum, or record expected
#define per2(i, s, e) for(ll (i) = (ll)(s) - 1LL;(i) >= (ll)(e);(i)--)
                                                 ^
Main.java:15: error: class, interface, enum, or record expected
#define per2(i, s, e) for(ll (i) = (ll)(s) - 1LL;(i) >= (ll)(e);(i)--)
                                                                ^
Main.java:16: error: illegal character: '#'
#define peri(i, n) for(ll (i) = (ll)(n);(i) >= 0LL;(i)--)
^
Main.java:16: error: class, interface, enum, or record expected
#define peri(i, n) for(ll (i) = (ll)(n);(i) >= 0LL;(i)--)
                                        ^
Main.java:16: error: class, interface, enum, or record expected
#define peri(i, n) for(ll (i) = (ll)(n);(i) >= 0LL;(i)--)
                                                   ^
Main.java:17: error: illegal character: '#'
#define peri2(i, s, e) for(ll (i) = (ll)(s);(i) >= (ll)(e);(i)--)
^
Main.java:17: error: class, interface, enum, or record expected
#define peri2(i, s, e) for(ll (i) = (ll)(s);(i) >= (ll)(e);(i)--)
                                            ^
Main.java:17: error: class, interface, enum, or record expected
#define peri2(i, s, e) for(ll (i) = (ll)(s);(i) >= (ll)(e);(i)--)
                                                           ^
Main.java:18: error: illegal character: '#'
#define iter(i, it) for(auto &(i): (it))
^
Main.java:22: error: class, interface, enum, or record expected
    return s;
    ^
Main.java:23: error: class, interface, enum, or record expected
}
^
Main.java:26: error: class, interface, enum, or record expected
    cout << "{ ";
    ^
Main.java:27: error: class, interface, enum, or record expected
    iter(i, m) cout << i << (c++ == m.size() - 1 ? " " : ", ");
    ^
Main.java:28: error: class, interface, enum, or record expected
    cout << "}";
    ^
Main.java:29: error: class, interface, enum, or record expected
    return s;
    ^
Main.java:30: error: class, interface, enum, or record expected
}
^
Main.java:33: error: class, interface, enum, or record expected
    rep(i, v.size()) cout << v[i] << (i == v.size() - 1 ? " " : ", ");
    ^
Main.java:34: error: class, interface, enum, or record expected
    cout << "}";
    ^
Main.java:35: error: class, interface, enum, or record expected
    return s;
    ^
Main.java:36: error: class, interface, enum, or record expected
}
^
Main.java:39: error: class, interface, enum, or record expected
    cout << "{ ";
    ^
Main.java:40: error: class, interface, enum, or record expected
    iter(i, v) cout << i << (c++ == v.size() - 1 ? " " : ", ");
    ^
Main.java:41: error: class, interface, enum, or record expected
    cout << "}";
    ^
Main.java:42: error: class, interface, enum, or record expected
    return s;
    ^
Main.java:43: error: class, interface, enum, or record expected
}
^
Main.java:47: error: class, interface, enum, or record expected
    cin >> x;
    ^
Main.java:48: error: class, interface, enum, or record expected
    cout << !x << endl;
    ^
Main.java:49: error: class, interface, enum, or record expected
    return 0;
    ^
Main.java:50: error: class, interface, enum, or record expected
}
^
53 errors