Language: Java

#include <bits/stdc++.h>
using namespace std;
 
#define MOD 1000000007
#define INF 100000000
#define MAX 100001
#define int ll
#define ll long long
#define ld long double
#define vi vector<int>
#define pa pair<int, int>
#define pb push_back
#define mp make_pair
 
#define INIT ios::sync_with_stdio(false);cin.tie(0);
#define VAR(type, ...)type __VA_ARGS__;MACRO_VAR_Scan(__VA_ARGS__);
template<typename T> void MACRO_VAR_Scan(T& t) { cin >> t; }
template<typename First, typename...Rest>void MACRO_VAR_Scan(First& first, Rest&...rest) { cin >> first; MACRO_VAR_Scan(rest...); }
#define VEC(type, c, n) vector<type> c(n);for(auto& i:c)cin>>i;
#define MAT(type, c, m, n) vector<vector<type>> c(m, vector<type>(n));for(auto& r:c)for(auto& i:r)cin>>i;
 
#define BR cout << "\n";
#define SP cout << " ";
#define ENDL cout<<endl;
#define OUT(d) cout<<(d);
#define OUTL(d) cout<<(d)<<endl;
#define YES OUTL("YES")
#define Yes OUTL("Yes")
#define NO OUTL("NO")
#define No OUTL("No")
#define RET return 0;
 
#define REP(i, n) for(int i=0;i<(n);i++)
#define RREP(i, n) for(int i=n-1;i>=0;--i)
#define FOR(i, m, n) for(int i = m;i < n; i++)
#define RFOR(i, a, b) for(int i=(a)-1;i>=(b);--i)
#define AREP(a, n) for(auto (a):(n))
#define ALL(a) (a).begin(),(a).end()
#define IN(n, a, b) ((a)<=(n)&&(n)<(b))

signed main(){ INIT;
    VAR(int, n);
    int t[n], x[n], y[n];
    REP(i, n) cin >> t[i] >> x[i] >> y[i];
    int a = 0, b = 0;
    REP(i, n){
        int d = abs(x[i] - (i ? x[i-1]: 0)) + abs(y[i] - (i ? y[i-1] : 0));
        if(t[i] < d || (t[i] - (i ? t[i-1] : 0) - d) % 2){ No; RET; }
        a = x[i]; b = y[i];
    }
    Yes;
RET;}


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: illegal character: '#'
#define MOD 1000000007
^
Main.java:4: error: class, interface, enum, or record expected
#define MOD 1000000007
        ^
Main.java:5: error: illegal character: '#'
#define INF 100000000
^
Main.java:6: error: illegal character: '#'
#define MAX 100001
^
Main.java:7: error: illegal character: '#'
#define int ll
^
Main.java:8: error: illegal character: '#'
#define ll long long
^
Main.java:9: error: illegal character: '#'
#define ld long double
^
Main.java:10: error: illegal character: '#'
#define vi vector<int>
^
Main.java:11: error: illegal character: '#'
#define pa pair<int, int>
^
Main.java:12: error: illegal character: '#'
#define pb push_back
^
Main.java:13: error: illegal character: '#'
#define mp make_pair
^
Main.java:15: error: illegal character: '#'
#define INIT ios::sync_with_stdio(false);cin.tie(0);
^
Main.java:15: error: class, interface, enum, or record expected
#define INIT ios::sync_with_stdio(false);cin.tie(0);
                                         ^
Main.java:16: error: illegal character: '#'
#define VAR(type, ...)type __VA_ARGS__;MACRO_VAR_Scan(__VA_ARGS__);
^
Main.java:16: error: class, interface, enum, or record expected
#define VAR(type, ...)type __VA_ARGS__;MACRO_VAR_Scan(__VA_ARGS__);
        ^
Main.java:16: error: class, interface, enum, or record expected
#define VAR(type, ...)type __VA_ARGS__;MACRO_VAR_Scan(__VA_ARGS__);
                                       ^
Main.java:17: error: class, interface, enum, or record expected
template<typename T> void MACRO_VAR_Scan(T& t) { cin >> t; }
^
Main.java:17: error: class, interface, enum, or record expected
template<typename T> void MACRO_VAR_Scan(T& t) { cin >> t; }
                                                           ^
Main.java:18: error: class, interface, enum, or record expected
template<typename First, typename...Rest>void MACRO_VAR_Scan(First& first, Rest&...rest) { cin >> first; MACRO_VAR_Scan(rest...); }
                                                                                                         ^
Main.java:18: error: class, interface, enum, or record expected
template<typename First, typename...Rest>void MACRO_VAR_Scan(First& first, Rest&...rest) { cin >> first; MACRO_VAR_Scan(rest...); }
                                                                                                                                  ^
Main.java:19: error: illegal character: '#'
#define VEC(type, c, n) vector<type> c(n);for(auto& i:c)cin>>i;
^
Main.java:19: error: class, interface, enum, or record expected
#define VEC(type, c, n) vector<type> c(n);for(auto& i:c)cin>>i;
                                          ^
Main.java:20: error: illegal character: '#'
#define MAT(type, c, m, n) vector<vector<type>> c(m, vector<type>(n));for(auto& r:c)for(auto& i:r)cin>>i;
^
Main.java:20: error: class, interface, enum, or record expected
#define MAT(type, c, m, n) vector<vector<type>> c(m, vector<type>(n));for(auto& r:c)for(auto& i:r)cin>>i;
        ^
Main.java:20: error: class, interface, enum, or record expected
#define MAT(type, c, m, n) vector<vector<type>> c(m, vector<type>(n));for(auto& r:c)for(auto& i:r)cin>>i;
                                                                      ^
Main.java:22: error: illegal character: '#'
#define BR cout << "\n";
^
Main.java:22: error: class, interface, enum, or record expected
#define BR cout << "\n";
        ^
Main.java:23: error: illegal character: '#'
#define SP cout << " ";
^
Main.java:23: error: class, interface, enum, or record expected
#define SP cout << " ";
        ^
Main.java:24: error: illegal character: '#'
#define ENDL cout<<endl;
^
Main.java:24: error: class, interface, enum, or record expected
#define ENDL cout<<endl;
        ^
Main.java:25: error: illegal character: '#'
#define OUT(d) cout<<(d);
^
Main.java:25: error: class, interface, enum, or record expected
#define OUT(d) cout<<(d);
        ^
Main.java:26: error: illegal character: '#'
#define OUTL(d) cout<<(d)<<endl;
^
Main.java:26: error: class, interface, enum, or record expected
#define OUTL(d) cout<<(d)<<endl;
        ^
Main.java:27: error: illegal character: '#'
#define YES OUTL("YES")
^
Main.java:28: error: illegal character: '#'
#define Yes OUTL("Yes")
^
Main.java:29: error: illegal character: '#'
#define NO OUTL("NO")
^
Main.java:30: error: illegal character: '#'
#define No OUTL("No")
^
Main.java:31: error: illegal character: '#'
#define RET return 0;
^
Main.java:33: error: illegal character: '#'
#define REP(i, n) for(int i=0;i<(n);i++)
^
Main.java:27: error: unnamed classes are a preview feature and are disabled by default.
#define YES OUTL("YES")
        ^
  (use --enable-preview to enable unnamed classes)
Main.java:33: error: class, interface, enum, or record expected
#define REP(i, n) for(int i=0;i<(n);i++)
        ^
Main.java:33: error: class, interface, enum, or record expected
#define REP(i, n) for(int i=0;i<(n);i++)
                              ^
Main.java:33: error: class, interface, enum, or record expected
#define REP(i, n) for(int i=0;i<(n);i++)
                                    ^
Main.java:34: error: illegal character: '#'
#define RREP(i, n) for(int i=n-1;i>=0;--i)
^
Main.java:34: error: class, interface, enum, or record expected
#define RREP(i, n) for(int i=n-1;i>=0;--i)
                                 ^
Main.java:34: error: class, interface, enum, or record expected
#define RREP(i, n) for(int i=n-1;i>=0;--i)
                                      ^
Main.java:35: error: illegal character: '#'
#define FOR(i, m, n) for(int i = m;i < n; i++)
^
Main.java:35: error: class, interface, enum, or record expected
#define FOR(i, m, n) for(int i = m;i < n; i++)
                                   ^
Main.java:35: error: class, interface, enum, or record expected
#define FOR(i, m, n) for(int i = m;i < n; i++)
                                          ^
Main.java:36: error: illegal character: '#'
#define RFOR(i, a, b) for(int i=(a)-1;i>=(b);--i)
^
Main.java:36: error: class, interface, enum, or record expected
#define RFOR(i, a, b) for(int i=(a)-1;i>=(b);--i)
                                      ^
Main.java:36: error: class, interface, enum, or record expected
#define RFOR(i, a, b) for(int i=(a)-1;i>=(b);--i)
                                             ^
Main.java:37: error: illegal character: '#'
#define AREP(a, n) for(auto (a):(n))
^
Main.java:38: error: illegal character: '#'
#define ALL(a) (a).begin(),(a).end()
^
Main.java:39: error: illegal character: '#'
#define IN(n, a, b) ((a)<=(n)&&(n)<(b))
^
Main.java:42: error: class, interface, enum, or record expected
    VAR(int, n);
    ^
Main.java:43: error: class, interface, enum, or record expected
    int t[n], x[n], y[n];
    ^
Main.java:44: error: class, interface, enum, or record expected
    REP(i, n) cin >> t[i] >> x[i] >> y[i];
    ^
Main.java:46: error: class, interface, enum, or record expected
    REP(i, n){
    ^
Main.java:48: error: class, interface, enum, or record expected
        if(t[i] < d || (t[i] - (i ? t[i-1] : 0) - d) % 2){ No; RET; }
        ^
Main.java:48: error: class, interface, enum, or record expected
        if(t[i] < d || (t[i] - (i ? t[i-1] : 0) - d) % 2){ No; RET; }
                                                               ^
Main.java:48: error: class, interface, enum, or record expected
        if(t[i] < d || (t[i] - (i ? t[i-1] : 0) - d) % 2){ No; RET; }
                                                                    ^
Main.java:49: error: class, interface, enum, or record expected
        a = x[i]; b = y[i];
                  ^
Main.java:50: error: class, interface, enum, or record expected
    }
    ^
Main.java:52: error: class, interface, enum, or record expected
RET;}
^
Main.java:52: error: class, interface, enum, or record expected
RET;}
    ^
70 errors