Language: Java

#include "bits/stdc++.h"
using namespace std;
typedef long long ll;
// const ll INF = 1e18;
# define rep(i, n) for(ll i=0, i##_len=(n); i<i##_len; ++i)
# define reps(i, n) for(ll i=1, i##_len=(n); i<=i##_len; ++i)
# define rrep(i, n) for(ll i=((int)(n)-1); i>=0; --i)
# define rreps(i, n) for(ll i=((int)(n)); i>0; --i)
# define all(x) (x).begin(), (x).end()

ll N;

int Main() {
    cin >> N;
    ll sum = 0;
    reps(i, N) {
        reps(j, N) {
            reps(k, N) {
                sum += gcd(i,gcd(j,k));
            }
        }
    }
    
    cout << sum << endl;
    return 0;
}

int main(){ios::sync_with_stdio(0);cin.tie(0);Main();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:3: error: class, interface, enum, or record expected
typedef long long ll;
^
Main.java:5: error: illegal character: '#'
# define rep(i, n) for(ll i=0, i##_len=(n); i<i##_len; ++i)
^
Main.java:5: error: class, interface, enum, or record expected
# define rep(i, n) for(ll i=0, i##_len=(n); i<i##_len; ++i)
         ^
Main.java:5: error: illegal character: '#'
# define rep(i, n) for(ll i=0, i##_len=(n); i<i##_len; ++i)
                                ^
Main.java:5: error: illegal character: '#'
# define rep(i, n) for(ll i=0, i##_len=(n); i<i##_len; ++i)
                                 ^
Main.java:5: error: illegal character: '#'
# define rep(i, n) for(ll i=0, i##_len=(n); i<i##_len; ++i)
                                               ^
Main.java:5: error: illegal character: '#'
# define rep(i, n) for(ll i=0, i##_len=(n); i<i##_len; ++i)
                                                ^
Main.java:5: error: class, interface, enum, or record expected
# define rep(i, n) for(ll i=0, i##_len=(n); i<i##_len; ++i)
                                                       ^
Main.java:6: error: illegal character: '#'
# define reps(i, n) for(ll i=1, i##_len=(n); i<=i##_len; ++i)
^
Main.java:6: error: illegal character: '#'
# define reps(i, n) for(ll i=1, i##_len=(n); i<=i##_len; ++i)
                                 ^
Main.java:6: error: illegal character: '#'
# define reps(i, n) for(ll i=1, i##_len=(n); i<=i##_len; ++i)
                                  ^
Main.java:6: error: class, interface, enum, or record expected
# define reps(i, n) for(ll i=1, i##_len=(n); i<=i##_len; ++i)
                                             ^
Main.java:6: error: illegal character: '#'
# define reps(i, n) for(ll i=1, i##_len=(n); i<=i##_len; ++i)
                                                 ^
Main.java:6: error: illegal character: '#'
# define reps(i, n) for(ll i=1, i##_len=(n); i<=i##_len; ++i)
                                                  ^
Main.java:6: error: class, interface, enum, or record expected
# define reps(i, n) for(ll i=1, i##_len=(n); i<=i##_len; ++i)
                                                         ^
Main.java:7: error: illegal character: '#'
# define rrep(i, n) for(ll i=((int)(n)-1); i>=0; --i)
^
Main.java:7: error: class, interface, enum, or record expected
# define rrep(i, n) for(ll i=((int)(n)-1); i>=0; --i)
                                           ^
Main.java:7: error: class, interface, enum, or record expected
# define rrep(i, n) for(ll i=((int)(n)-1); i>=0; --i)
                                                 ^
Main.java:8: error: illegal character: '#'
# define rreps(i, n) for(ll i=((int)(n)); i>0; --i)
^
Main.java:8: error: class, interface, enum, or record expected
# define rreps(i, n) for(ll i=((int)(n)); i>0; --i)
                                          ^
Main.java:8: error: class, interface, enum, or record expected
# define rreps(i, n) for(ll i=((int)(n)); i>0; --i)
                                               ^
Main.java:9: error: illegal character: '#'
# define all(x) (x).begin(), (x).end()
^
Main.java:14: error: not a statement
    cin >> N;
        ^
Main.java:24: error: not a statement
    cout << sum << endl;
                ^
Main.java:13: error: unnamed classes are a preview feature and are disabled by default.
int Main() {
^
  (use --enable-preview to enable unnamed classes)
Main.java:16: error: ';' expected
    reps(i, N) {
              ^
Main.java:17: error: ';' expected
        reps(j, N) {
                  ^
Main.java:18: error: ';' expected
            reps(k, N) {
                      ^
Main.java:28: error: not a statement
int main(){ios::sync_with_stdio(0);cin.tie(0);Main();return 0;}
           ^
Main.java:28: error: ';' expected
int main(){ios::sync_with_stdio(0);cin.tie(0);Main();return 0;}
                               ^
32 errors