Language: Java

#include <bits/stdc++.h>
using namespace std;
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
using ll = long long;
using P = pair<ll, ll>;
const long double PI = acos(-1.0L);
ll GCD(ll a, ll b) { return b?GCD(b, a%b):a; }
ll LCM(ll a, ll b) { return a/GCD(a, b)*b; }


int main() {
    int n; cin >> n;
    ll dp[100000000][10000000000];
}

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:3: error: class, interface, enum, or record expected
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
^
Main.java:3: error: '{' expected
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
                ^
Main.java:3: error: illegal start of type
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
                                                 ^
Main.java:3: error: > or ',' expected
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
                                                          ^
Main.java:3: error: illegal start of type
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return true; } return false; }
                                                                                    ^
Main.java:4: error: class, interface, enum, or record expected
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
^
Main.java:4: error: '{' expected
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
                ^
Main.java:4: error: illegal start of type
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
                                                 ^
Main.java:4: error: <identifier> expected
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
                                                      ^
Main.java:4: error: <identifier> expected
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
                                                          ^
Main.java:4: error: illegal start of type
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return true; } return false; }
                                                                                    ^
Main.java:5: 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:5: error: '.class' expected
using ll = long long;
                ^
Main.java:6: error: ';' expected
using P = pair<ll, ll>;
                     ^
Main.java:7: error: class, interface, enum, or record expected
const long double PI = acos(-1.0L);
^
Main.java:13: error: not a statement
    int n; cin >> n;
               ^
Main.java:14: error: ']' expected
    ll dp[100000000][10000000000];
          ^
19 errors