criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using namespace atcoder;
#define rep(i, n) for(int i=0, i##_len=(n); i<i##_len; ++i)
#define reps(i, n) for(int i=1, i##_len=(n); i<=i##_len; ++i)
#define rrep(i, n) for(int i=((int)(n)-1); i>=0; --i)
#define rreps(i, n) for(int i=((int)(n)); i>0; --i)
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()
#define sz(x) ((int)(x).size())
#define pl(s) cout << (s) << "\n";
#define pls(...) {bool space = false; for(auto i : __VA_ARGS__) (cout << (space?" ":"") << i), space = true; cout << "\n";}
#define plexit(s) {cout << (s) << "\n"; exit(0);}
#define yes(s) cout << ((s)?"Yes":"No") << "\n";
#ifdef __LOCAL
#include <dump.hpp>
#define dump(...) DUMPOUT << "  " << string(#__VA_ARGS__) << ": " << "[" << to_string(__LINE__) << ":" << __FUNCTION__ << "]" << endl << "    ", dump_func(__VA_ARGS__)
#else
#define dump(...)
#endif
template<typename T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<typename T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
struct IOInit { IOInit() { cin.tie(nullptr); ios::sync_with_stdio(false); dump("READY"); /*cout << unitbuf;*/} } IO_INIT;
using ll = long long; using ull = unsigned long long; using ld = long double;
template<typename T = int> using V = vector<T>; template<typename T = int> using P = pair<T, T>;
using Vi = V<int>; using Vl = V<ll>; using Vd = V<ld>; using VVi = V<Vi>; using VVl = V<Vl>; using Pi = P<int>; using Pl = P<ll>; using Pd = P<ld>;
constexpr ll MOD = 1000000007; constexpr int INF = (1 << 30) - 1; constexpr ll INFL = 1LL << 60; constexpr ld EPS = 1e-12; constexpr ld PI = 3.141592653589793238462643383279;



signed main(void) {
  int n; cin >> n;
  rep(i,n) {
    int t, x, y; cin >> t >> x >> y;
    if (t < x + y || (t-x-y)%2) plexit("No")
  }
  yes(1)
  return 0;
}


Compiler output:
a.cc:2:10: fatal error: atcoder/all: No such file or directory
    2 | #include <atcoder/all>
      |          ^~~~~~~~~~~~~
compilation terminated.
Language: Java

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
		int tb = 0;
      	int xb = 0;
      	int yb = 0;
      	int ta = 0;
      	int xa = 0;
      	int ya = 0;
      	int dt = 0;
      	int dx = 0;
      	int dy = 0;   
      
     	for(int i = 0 ; i < n ; i ++){
      		ta =  sc.nextInt();
			xa =  sc.nextInt();
         	ya =  sc.nextInt();
          
			dt = ta - tb;
          	dx = Math.abs(xa - xb);
          	dy = Math.abs(ya - yb);
          
          	System.out.println("Yes");
          	
          	if(dt < dx + dy || (dx + dy)%2 != 0 ){
            	System.out.println("No");
            	break;
            }
        }
   	}
}


Compiler output:
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: Java

class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
		int tb = 0;
      	int xb = 0;
      	int yb = 0;
      	int ta = 0;
      	int xa = 0;
      	int ya = 0;
      	int dt = 0;
      	int dx = 0;
      	int dy = 0;   
      
     	for(int i = 0 ; i < n ; i ++){
      		ta =  sc.nextInt();
			xa =  sc.nextInt();
         	ya =  sc.nextInt();
          
			dt = ta - tb;
          	dx = Math.abs(xa - xb);
          	dy = Math.abs(ya - yb);
          	
          	if(dt < dx + dy || (dx + dy)%2 != 0 ){
            	System.out.println("No");
            	break;
            }else{  
            	System.out.println("No");
            }
          
        }
   }
}


Compiler output:
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
        ^
  symbol:   class Scanner
  location: class Main
Main.java:3: error: cannot find symbol
        Scanner sc = new Scanner(System.in);
                         ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include<iostream>

using namespace std;

int main(){
  int N;
  cin>>N;
  int y=0,x=0,t=0;
  for(int i=0;i<N;i++){
    int ti,xi,yi;
    cin>>ti>>xi>>yi;
    auto d=abs(y-yi)+abs(x-xi);
    auto td=ti-t;
    f|=td<d||d-td&1;
    t=ti;
    y=yi;
    x=xi;
  }
  cout<<(f?"No":"Yes")<<endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:14:5: error: 'f' was not declared in this scope
   14 |     f|=td<d||d-td&1;
      |     ^
a.cc:19:10: error: 'f' was not declared in this scope
   19 |   cout<<(f?"No":"Yes")<<endl;
      |          ^
Language: C++

#define _GLIBCXX_DEBUG
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < (n); ++i)
#define REPS(I, a, b) for (int i = (a); i < (b); ++i)
using namespace std;
using ll = long long;

int main() {
  int n;
  cin >> n;
  REP(i,n){
    int t,x,y;
    cin >> t >> x >> y;
    if(t >= (x+y)){
      if((t-(x+y)) % 2 == 0){
        continue;
      }
      else{
        cout << "No" << endl;
        return 0;
      }
    else{
      cout << "No" << endl;
        return 0;
    }
  }
  cout << "Yes" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:5: error: expected '}' before 'else'
   22 |     else{
      |     ^~~~
a.cc:14:19: note: to match this '{'
   14 |     if(t >= (x+y)){
      |                   ^
Language: C

N = int(input())
T = []
X = []
Y = []
for _ in range(N):
    t,x,y = map(int, input().split())
    T.append(t)
    X.append(x)
    Y.append(y)

before_t = before_x = before_y = 0

for t,x,y in zip(T,X,Y):

    if before_t == 0:
        if t != x + y:
            print('No')
            exit()

    d = abs(x + y - before_x - before_y)

    if t - before_t >= d:
        if (t - before_t) % 2 == 0 and d % 2 == 0:
            pass
        elif (t - before_t) % 2 != 0 and d % 2 != 0:
            pass
        else:
            print('No')
            exit()
    else:
        print('No')
        exit()

    before_t = t
    before_x = x
    before_y = y

else:
    print('Yes')

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | N = int(input())
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'N' [-Wimplicit-int]
main.c:1:5: error: expected expression before 'int'
    1 | N = int(input())
      |     ^~~
main.c:17:19: warning: multi-character character constant [-Wmultichar]
   17 |             print('No')
      |                   ^~~~
main.c:28:19: warning: multi-character character constant [-Wmultichar]
   28 |             print('No')
      |                   ^~~~
main.c:31:15: warning: multi-character character constant [-Wmultichar]
   31 |         print('No')
      |               ^~~~
main.c:39:11: warning: multi-character character constant [-Wmultichar]
   39 |     print('Yes')
      |           ^~~~~
Language: C++

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

int main(){
	int n,a,b,c,x=0,y=0,t=0,pos=1;
  	scanf("%d",&n);
    while(n--){
    	scanf("%d%d%d",&a,&b,&c);
        int step = abs(x-a) + abs(y-b);
        x = a, y = b;
        pos = (c-t-step >= 0 && c-t-step&1 == 0);
    }
    if(pos)printf("Yes");
    else printf("No\n");
    return 0;
}

Compiler output:
a.cc:1:9: fatal error: bits/std++.h: No such file or directory
    1 | #include<bits/std++.h>
      |         ^~~~~~~~~~~~~~
compilation terminated.
Language: C

import java.util.*;

class Main{
    static Scanner sc = new Scanner(System.in);
    static StringBuffer sb = new StringBuffer();
    public static void main(String args[]){
        int N=sc.nextInt();
        TreeMap<Integer,Pair> plan=new TreeMap<>();
        plan.put(0,new Pair(0,0));
        for(int i=0;i<N;i++){
            plan.put(sc.nextInt(),new Pair(sc.nextInt(),sc.nextInt()));
        }
        int before=0,distance=0;
        String res="Yes";
        for(int key:plan.keySet()){
            distance=Math.abs(plan.get(key).a-plan.get(before).a)+Math.abs(plan.get(key).b-plan.get(before).b);
            if(key-before-distance<0||(key-before-distance)%2==1){
                res="No";
                break;
            }
        }
        System.out.println(res);
    }
}
class Pair{
    int a,b;
    public Pair(int a,int b){
        this.a=a;
        this.b=b;
    }
}


Compiler output:
main.c:1:1: error: unknown type name 'import'
    1 | import java.util.*;
      | ^~~~~~
main.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before '.' token
    1 | import java.util.*;
      |            ^
main.c:3:1: error: unknown type name 'class'
    3 | class Main{
      | ^~~~~
main.c:3:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
    3 | class Main{
      |           ^
main.c:25:1: error: unknown type name 'class'
   25 | class Pair{
      | ^~~~~
main.c:25:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before '{' token
   25 | class Pair{
      |           ^
Language: C++

#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cstdlib>

using namespace std;



int main() {
	
	int N;
	cin >> N;

	vector<int> t(110000); vector<int> x(110000); vector<int> y(110000);

	for (int i = 0; i < N; i++) {
		cin >> t.at(i + 1);
		cin >> x.at(i + 1);
		cin >> y.at(i + 1);
	}

	bool flag = true;

	for (int i = 0; i < N; i++) {
		int a = (x.at(i + 1) + x.at(i)) + (y.at(i + 1) + (y.at(i)));
		int b = t.at(i + 1) + t.at(i);

		if (a > b) flag = false;
		if (a % 2 != b % 2) flag = false;
	}

	if (flag) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}

	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:41:18: error: expected '}' at end of input
   41 |         return 0;
      |                  ^
a.cc:11:12: note: to match this '{'
   11 | int main() {
      |            ^
Language: C++

#include <string>
#include <algorithm>
#include <vector>
#include <cstdlib>

using namespace std;



int main() {
	
	int N;
	cin >> N;

	vector<int> t(100000); vector<int> x(100000); vector<int> y(100000);

	for (int i = 0; i < N; i++) {
		cin >> t.at(i + 1);
		cin >> x.at(i + 1);
		cin >> y.at(i + 1);
	}

	bool flag = true;

	for (int i = 0; i < N; i++) {
		int a = (x.at(i + 1) + x.at(i)) + (y.at(i + 1) + (y.at(i)));
		int b = t.at(i + 1) + t.at(i);

		if (a > b) flag = false;
		if (a % 2 != b % 2) flag = false;
	}

	if (flag) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'cin' was not declared in this scope
   13 |         cin >> N;
      |         ^~~
a.cc:5:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    4 | #include <cstdlib>
  +++ |+#include <iostream>
    5 | 
a.cc:34:17: error: 'cout' was not declared in this scope
   34 |                 cout << "Yes" << endl;
      |                 ^~~~
a.cc:34:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:34:34: error: 'endl' was not declared in this scope
   34 |                 cout << "Yes" << endl;
      |                                  ^~~~
a.cc:5:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    4 | #include <cstdlib>
  +++ |+#include <ostream>
    5 | 
a.cc:37:17: error: 'cout' was not declared in this scope
   37 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:37:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:37:33: error: 'endl' was not declared in this scope
   37 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:37:33: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <string>
#include <algorithm>
#include <vector>

using namespace std;



int main() {
	
	int N;
	cin >> N;

	vector<int> t(100000); vector<int> x(100000); vector<int> y(100000);

	for (int i = 0; i < N; i++) {
		cin >> t.at(i + 1);
		cin >> x.at(i + 1);
		cin >> y.at(i + 1);
	}

	bool flag = true;

	for (int i = 0; i < N; i++) {
		int a = (x.at(i + 1) + x.at(i)) + (y.at(i + 1) + (y.at(i)));
		int b = t.at(i + 1) + t.at(i);

		if (a > b) flag = false;
		if (a % 2 != b % 2) flag = false;
	}

	if (flag) {
		cout << "Yes" << endl;
	}
	else {
		cout << "No" << endl;
	}

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'cin' was not declared in this scope
   12 |         cin >> N;
      |         ^~~
a.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #include <vector>
  +++ |+#include <iostream>
    4 | 
a.cc:33:17: error: 'cout' was not declared in this scope
   33 |                 cout << "Yes" << endl;
      |                 ^~~~
a.cc:33:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:33:34: error: 'endl' was not declared in this scope
   33 |                 cout << "Yes" << endl;
      |                                  ^~~~
a.cc:4:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    3 | #include <vector>
  +++ |+#include <ostream>
    4 | 
a.cc:36:17: error: 'cout' was not declared in this scope
   36 |                 cout << "No" << endl;
      |                 ^~~~
a.cc:36:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:36:33: error: 'endl' was not declared in this scope
   36 |                 cout << "No" << endl;
      |                                 ^~~~
a.cc:36:33: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <iostream>
#include <cmath>

int main(){
  	int N;
  	int x = 0, y = 0;
  	int t = 0;
  	std::cin >> N;
  	int i;
  	for (i=0;i<N;i++){
      	int t_new, x_new, y_new;
      	std::cin >>　t_new >> x_new >> y_new;
      	ds = abs(x-x_new) + abs(y-y_new);
        dt = t_new-t;
      	if( ds > dt || ds%2 != dt%2) break; 
      	x = x_new;
      	y = y_new;
      	t = t_new;
    }
  	if(i == N) std::cout << "Yes" << std::endl;
  	else std::cout << "No" << std::endl;
}

Compiler output:
a.cc:12:20: error: extended character 　 is not valid in an identifier
   12 |         std::cin >>　t_new >> x_new >> y_new;
      |                    ^
a.cc: In function 'int main()':
a.cc:12:20: error: '\U00003000t_new' was not declared in this scope; did you mean 't_new'?
   12 |         std::cin >>　t_new >> x_new >> y_new;
      |                    ^~~~~~~
      |                    t_new
a.cc:13:9: error: 'ds' was not declared in this scope
   13 |         ds = abs(x-x_new) + abs(y-y_new);
      |         ^~
a.cc:14:9: error: 'dt' was not declared in this scope; did you mean 't'?
   14 |         dt = t_new-t;
      |         ^~
      |         t
Language: C++

#include <iostream>
#include <cmath>

int main(){
  	int N;
  	int x = 0, y = 0;
  	int t = 0;
  	std::cin >> N;
  	int i;
  	for (i=0;i<N;i++){
      	int t_new, x_new, y_new;
      	std::cin >>　t_new >> x_new >> y_new;
      	if(abs(x-x_new) + abs(y-y_new) > t_new-t) break; 
      	x = x_new;
      	y = y_new;
      	t = t_new;
    }
  	if(i == N) std::cout << "Yes" << std::endl;
  	else std::cout << "No" << std::endl;
}

Compiler output:
a.cc:12:20: error: extended character 　 is not valid in an identifier
   12 |         std::cin >>　t_new >> x_new >> y_new;
      |                    ^
a.cc: In function 'int main()':
a.cc:12:20: error: '\U00003000t_new' was not declared in this scope; did you mean 't_new'?
   12 |         std::cin >>　t_new >> x_new >> y_new;
      |                    ^~~~~~~
      |                    t_new
Language: C

#include<stdio.h>
#include <stdlib.h>
int main(){
	int a = 0, b = 0, N = 0, i, t[110000], x[110000], y[110000];
	int q = 1;
	scanf("%d", &N);
	t[0] = 0;
	x[0] = 0;
	y[0] = 0;
	for (i = 0; i < N; i++) {
		scanf("%d %d %d", &t[i + 1], &x[i + 1], &y[i + 1]);
	}
	for (i = 0; i < N; i++) {
		 a = t[i + 1] - t[i];
		 b = abs(x[i + 1] - x[i]) + abs(y[i + 1] - y[i]);
		 if (a < b) {
			 q = 0;
		 }
		 if(a % 2 != b % 2){
			 q = 0;
		 }
	}
	if (q == 1) {
		printf("YES");
	}

Compiler output:
main.c: In function 'main':
main.c:25:9: error: expected declaration or statement at end of input
   25 |         }
      |         ^
Language: C

#include<stdio.h>
#include <stdlib.h>
int main(){
	int a = 0, b = 0, N = 0, i, t[10000], x[10000], y[10000];
	int q = 1;
	scanf("%d", &N);
	t[0] = 0;
	x[0] = 0;
	y[0] = 0;
	for (i = 0; i < N; i++) {
		scanf("%d %d %d", &t[i + 1], &x[i + 1], &y[i + 1]);
	}
	for (i = 0; i < N; i++) {
		 a = t[i + 1] - t[i];
		 b = abs(x[i + 1] - x[i]) + abs(y[i + 1] - y[i]);
		 if (a < b) {
			 q = 0;
		 }
		 if(a % 2 != b % 2){
			 q = 0;
		 }
	}
	if (q == 1) {
		printf("YES");
	}

Compiler output:
main.c: In function 'main':
main.c:25:9: error: expected declaration or statement at end of input
   25 |         }
      |         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
 
int main(){
    int n; cin >> n;
    vector<pair<int, int>> p(n);
    vector<int> t(n);
    rep(i, n){
        cin >> t[i] >> p[i].first >> p[i].second;
    }
    bool ok = true;
    int xi = 0, yi = 0, ti = 0;
    rep(i, n){
        int x = p[i].first, y = p[i].second;
        if (abs(x - xi) + abs(y - yi) > t[i] - c) ok = false;
        else if ((t[i] - ti)%2 != (abs(x - xi) + abs(y - yi))%2) ok = false;
        xi = x; yi = y; ti = t[i];
    }
    if (ok) cout << "Yes" << endl;
    else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:48: error: 'c' was not declared in this scope
   16 |         if (abs(x - xi) + abs(y - yi) > t[i] - c) ok = false;
      |                                                ^
Language: C++

#include <map>
#include <iostream>
#include <algorithm>
using namespace std;

int main(){
	int n;
	cin>>n;
	int px=0, py=0, pt=0;
	int x,y,t;
	for(int i=1;i<=n;i++){
		cin>>x>>y>>t;
		int p=abs(x - px) + abs(y - py);
		int tt=t-p;
		if(tt < 0 || tt%2) {
			cout << "No" << endl;
			return 0;
		}
		px=x, py=y, pt=t
	}
	cout<<"Yes"<<endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:33: error: expected ';' before '}' token
   19 |                 px=x, py=y, pt=t
      |                                 ^
      |                                 ;
   20 |         }
      |         ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
using vi = vector<int>;
using vvi = vector<vector<int>>;
using vl = vector<ll>;
using vvl = vector<vector<ll>>;
#define all(x) x.begin(),x.end()
#define rep(i,j,n) for (long long i = j; i < (long long)(n); i++)
#define _GLIBCXX_DEBUG
#define MOD 1000000007
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
//name[i][j]-> vvl name(i,vl(j))
//map<int,int>mp
//余りを切り上げる =>  (a + b - 1) / b 

using pl = pair<ll,ll>;
signed main(){
	ll n; cin>>n; 
	vector<pl> v(n+1);
	vl t(n+1);
	v[0]=make_pair(0,0);
	rep(i,1,n+1){
		cin>>t[i];
		cin>>v[i].first>>v[i].second;
	}
	rep(i,1,n+1){
		ll x=abs(v[i].first-v[i-1].first);
		ll y=abs(v[i].second-v[i-1].second);
		//cout<<"x:"<<x<<" y:"<<y<<endl;
		if(t[i]-t[i-1]<x+y || (t[i]-t[i-1])%(x+y)==1){
			//cout<<i<<endl;
			cout<<"No"<<endl;
			return 0;
		}
	}a
	cout<<"Yes"<<endl;
	
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:10: error: 'a' was not declared in this scope
   37 |         }a
      |          ^
Language: C++

#include <iostream>
#include <string>
using namespace std;

int main(){
    int N;
    cin >> N;
    int t1=0,t2,x1=0,x2,y1=0,y2;
    int i;
    string ans="Yes";

    for(i=0; i<N; i++){
        cin >> t2 >> x2 >> y2;
        if(ans="Yes"){
            if((t2+x2+y2)%2==0 && (t2-t1)>=(x2-x1)+(y2-y1)){
            x1=x2;
            t1=t2;
            y1=y2;
        }
            else ans="No"
        }
    }

    cout << ans << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: could not convert 'ans.std::__cxx11::basic_string<char>::operator=(((const char*)"Yes"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   14 |         if(ans="Yes"){
      |            ~~~^~~~~~
      |               |
      |               std::__cxx11::basic_string<char>
a.cc:20:26: error: expected ';' before '}' token
   20 |             else ans="No"
      |                          ^
      |                          ;
   21 |         }
      |         ~
Language: C++


#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
const ll INF = 1LL << 60;

int main(){
    int n;
    cin >> n;
    int time=0;
    pair<int,int> loc=makepair(0,0);
    for(int i=0; i<n; i++){
        int t, x, y;
        cin >> t >> x >> y;
        //時間内に行けるところより遠くにいる場合
        if(t-time < abs(x-loc.first)+abs(y-loc.second)){
            cout << "No" << endl;
            return 0;
        }
        //偶奇が合わない場所にはいけない
        else if((t-time)%2==0 && (abs(x-loc.first)+abs(y-loc.second))%2 == 1){
            cout << "No" << endl;
            return 0;
        }
        else if((t-time)%2==1 && (abs(x-loc.first)+abs(y-loc.second))%2 == 0){
            cout << "No" << endl;
            return 0;
        }

        loc.first = x;
        loc.second = y;
        time += t;
    }
    cout << "Yes" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:23: error: 'makepair' was not declared in this scope
   13 |     pair<int,int> loc=makepair(0,0);
      |                       ^~~~~~~~
Language: C++


#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
const ll INF = 1LL << 60;

int main(){
    int n;
    cin >> n;
    int time=0;
    <int,int> loc=makepair(0,0);
    for(int i=0; i<n; i++){
        int t, x, y;
        cin >> t >> x >> y;
        //時間内に行けるところより遠くにいる場合
        if(t-time < abs(x-loc.first)+abs(y-loc.second)){
            cout << "No" << endl;
            return 0;
        }
        //偶奇が合わない場所にはいけない
        else if((t-time)%2==0 && (abs(x-loc.first)+abs(y-loc.second))%2 == 1){
            cout << "No" << endl;
            return 0;
        }
        else if((t-time)%2==1 && (abs(x-loc.first)+abs(y-loc.second))%2 == 0){
            cout << "No" << endl;
            return 0;
        }

        loc.first = x;
        loc.second = y;
        time += t;
    }
    cout << "Yes" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: expected primary-expression before '<' token
   13 |     <int,int> loc=makepair(0,0);
      |     ^
a.cc:13:6: error: expected primary-expression before 'int'
   13 |     <int,int> loc=makepair(0,0);
      |      ^~~
a.cc:18:27: error: 'loc' was not declared in this scope; did you mean 'log'?
   18 |         if(t-time < abs(x-loc.first)+abs(y-loc.second)){
      |                           ^~~
      |                           log
a.cc:32:9: error: 'loc' was not declared in this scope; did you mean 'log'?
   32 |         loc.first = x;
      |         ^~~
      |         log
Language: C++


#include <bits/stdc++.h>
using namespace std;
using ll = long long;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
const ll INF = 1LL << 60;

int main(){
    int n;
    cin >> n;
    int time=0;
    loc=makepair(0,0);
    for(int i=0; i<n; i++){
        int t, x, y;
        cin >> t >> x >> y;
        //時間内に行けるところより遠くにいる場合
        if(t-time < abs(x-loc.first)+abs(y-loc.second)){
            cout << "No" << endl;
            return 0;
        }
        //偶奇が合わない場所にはいけない
        else if((t-time)%2==0 && (abs(x-loc.first)+abs(y-loc.second))%2 == 1){
            cout << "No" << endl;
            return 0;
        }
        else if((t-time)%2==1 && (abs(x-loc.first)+abs(y-loc.second))%2 == 0){
            cout << "No" << endl;
            return 0;
        }

        loc.first = x;
        loc.second = y;
        time += t;
    }
    cout << "Yes" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'loc' was not declared in this scope; did you mean 'log'?
   13 |     loc=makepair(0,0);
      |     ^~~
      |     log
a.cc:13:9: error: 'makepair' was not declared in this scope
   13 |     loc=makepair(0,0);
      |         ^~~~~~~~
Language: C++

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



int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
//    ll x;
//    x=1ll << 59;
//    ll y=(1ll << 59) - 1ll;
//    cout<<((double)(x)==(double)(x-1))<<endl;
    ll n;
    cin>>n;
    ll t[n+1],x[n+1],y[n+1];t[0]=0,x[0]=0,y[0]=0,d=0;
    for(int i=1;i<=n;i++){
        cin>>t[i]>>x[i]>>y[i];
        ll a=t[i]-t[i-1],b=abs(x[i]-x[i-1]),c=abs(y[i]-y[i-1]);
        if(b+c==a);
        else if(a>(b+c)&& (a-b-c)%2==0);
        else{
            d=2;break;
        }
    }
    if(d==2)cout<<"No";
    else cout<<"Yes";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:50: error: 'd' was not declared in this scope
   17 |     ll t[n+1],x[n+1],y[n+1];t[0]=0,x[0]=0,y[0]=0,d=0;
      |                                                  ^
Language: C++

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

int main() {
  int n;
  cin >> n;
  vector<int> t(n),x(n),y(n);
  for(int i=0;i<n;i++){
  	cin >> t[i] >> x[i] >> y[i];
  }
  bool flg=true;
  if(x[0]+y[0]>t[0]){flg=false;}
  if(x[0]+y[0]<t[0]){
  	if(a[0]+b[0]-t[0]%2==1){flg=false;}
  }
  for(int i=1;i<n;i++){
  	int a=x[i]-x[i-1];
    int b=y[i]-y[i-1];
    int c=t[i]-t[i-1];
    if(a+b>c){
    	flg=false;
      break;
    }
    if(a+b<c){
    	if((a+b-c)%2==1){
        	flg=false;
          break;
        }
    }
  }
  if(flg){cout << "YES" << endl;}
  else{cout << "NO" << endl;}
}



Compiler output:
a.cc: In function 'int main()':
a.cc:14:12: error: 'a' was not declared in this scope
   14 |         if(a[0]+b[0]-t[0]%2==1){flg=false;}
      |            ^
a.cc:14:17: error: 'b' was not declared in this scope
   14 |         if(a[0]+b[0]-t[0]%2==1){flg=false;}
      |                 ^
Language: C++

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

int main() {
  int n;
  cin >> n;
  vector<int> t(n),x(n),y(n);
  for(int i=0;i<n;i++){
  	cin >> t[i] >> x[i] >> y[i];
  }
  bool flg=true;
  if(a[0]+b[0]>t[0]){flg=false;}
  if(a[0]+b[0]<t[0]){
  	if(a[0]+b[0]-t[0]%2==1){flg=false;}
  }
  for(int i=1;i<n;i++){
  	int a=x[i]-x[i-1];
    int b=y[i]-y[i-1];
    int c=t[i]-t[i-1];
    if(a+b>c){
    	flg=false;
      break;
    }
    if(a+b<c){
    	if((a+b-c)%2==1){
        	flg=false;
          break;
        }
    }
  }
  if(flg){cout << "YES" << endl;}
  else{cout << "NO" << endl;}
}



Compiler output:
a.cc: In function 'int main()':
a.cc:12:6: error: 'a' was not declared in this scope
   12 |   if(a[0]+b[0]>t[0]){flg=false;}
      |      ^
a.cc:12:11: error: 'b' was not declared in this scope
   12 |   if(a[0]+b[0]>t[0]){flg=false;}
      |           ^
a.cc:13:6: error: 'a' was not declared in this scope
   13 |   if(a[0]+b[0]<t[0]){
      |      ^
a.cc:13:11: error: 'b' was not declared in this scope
   13 |   if(a[0]+b[0]<t[0]){
      |           ^
Language: C++

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

int main() {
  int n;
  cin >> n;
  tuple<int,int,int>data=make_tuple(0,0,0);
  for(int i=0;i<n;i++){
    int t,x,y;
    cin >> t >> x >> y;
    if((x+y+t)%2==1||abs(t-get<0>(data))<abs(x-get<1>(data))+abs(y-get<2>(data))){
      cout << "No" << endl;
      return 0;
    }
    data=make_tuple(x,y,z);
  }
  cout << "Yes" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:25: error: 'z' was not declared in this scope
   15 |     data=make_tuple(x,y,z);
      |                         ^
Language: C++

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

int main() {
  int n;
  cin >> n;
  tuple<int,int,int>data=make_tuple(0,0,0);
  for(int i=0;i<n;i++){
    int t,x,y;
    cin >> t >> x >> y;
    if((x+y+t)%2==1||(t-get<0>(data))<(x-get<1>(data))+(y-get<2>(data))){
      cout << "No" << endl;
      return 0;
    }
    data=make_tuple(x,y,z);
  }
  cout << "Yes" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:25: error: 'z' was not declared in this scope
   15 |     data=make_tuple(x,y,z);
      |                         ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int N, ;
  	cin>>N;
    for(cin>>n; N; N--)
    {
        int t,x,y;
        cin>>t>>x>>y;
        if(t<x+y||(t-x-y)&1)
          cout<<"No"<<;
    }
    return cout<<"Yes",0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:12: error: expected unqualified-id before ';' token
    5 |     int N, ;
      |            ^
a.cc:7:14: error: 'n' was not declared in this scope
    7 |     for(cin>>n; N; N--)
      |              ^
a.cc:12:23: error: expected primary-expression before ';' token
   12 |           cout<<"No"<<;
      |                       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin >> N;
  vector<vector<int>> vec(N+1, vector<int>(3)); 
  vec.at(0).at(0) = 0;
  vec.at(0).at(1) = 0;
  vec.at(0).at(2) = 0;
  
  for (int i = 0; i < N; i++) {
    cin >> vec.at(i+1).at(0) >> vec.at(i+1).at(1) >> vec.at(i+1).at(2);
  }
  
  bool can = true;
  int dist, time;
  for (int i = 0; i < N; i++) {
    dist = vec.at(i + 1).at(1) + vec.at(i + 1).at(2) - vec.at(i).at(1) - vec.at(i).at(2);
    time = vec.at(i + 1).at(0) - vec.at(i).at(0);
    
    if (dist > time || dist % 2 != dt % 2) {
      can = false;
    }   
  } 
  
  if (can) cout << "Yes";
  else cout << "No";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:36: error: 'dt' was not declared in this scope
   22 |     if (dist > time || dist % 2 != dt % 2) {
      |                                    ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N;
  cin >> N;
  vector<vector<int>> vec(N, vector<int>(3)); 
  
  for (int i = 0; i < N; i++) {
    cin >> vec.at(i).at(0) >> vec.at(i).at(1) >> vec.at(i).at(2);
  }
  
  bool can = false;
  for (int i = 0; i < N; i++) {
    int dist;
    if (i = 0) {
      dist = vec.at(i).at(1) + vec.at(i).at(2);
      time = vec.at(i).at(0);
    } else {
      dist = vec.at(i + 1).at(1) + vec.at(i + 1).at(2) - vec.at(i).at(1) - vec.at(i).at(2);
      time = vec.at(i + 1).at(0) - vec.at(i).at(0);
    }
    
    if (dist == time || (time - dist) % 2 == 0) {
      can = true;
    } else {
      can = false;
      break;
    }
  } 
    if (can) cout << "Yes";
    else cout << "No";
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:12: error: assignment of function 'time_t time(time_t*)'
   18 |       time = vec.at(i).at(0);
      |       ~~~~~^~~~~~~~~~~~~~~~~
a.cc:21:12: error: assignment of function 'time_t time(time_t*)'
   21 |       time = vec.at(i + 1).at(0) - vec.at(i).at(0);
      |       ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:24:14: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   24 |     if (dist == time || (time - dist) % 2 == 0) {
      |         ~~~~~^~~~~~~
a.cc:24:31: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   24 |     if (dist == time || (time - dist) % 2 == 0) {
      |                          ~~~~~^~~~~~
a.cc:24:39: error: invalid operands of types 'time_t (*)(time_t*) noexcept' {aka 'long int (*)(long int*) noexcept'} and 'int' to binary 'operator%'
   24 |     if (dist == time || (time - dist) % 2 == 0) {
      |                         ~~~~~~~~~~~~~ ^ ~
      |                               |         |
      |                               |         int
      |                               time_t (*)(time_t*) noexcept {aka long int (*)(long int*) noexcept}
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
using ld=long double;
using st=string;
using ch=char;
typedef pair<ll,ll> P;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef vector<P> vP;
typedef vector<ch> vc;
typedef vector<vc> vvc;
#define FOR(i,a,b) for(ll i=a;i<b;i++)
#define rep(i,n) FOR(i,0,n)
#define ROF(i,a,b) for(ll i=a;i>=b;i--)
#define per(i,a) ROF(i,a,0)
const ll MOD=1000000007;
const ll MOD2=998244353;
const ld PI=acos(-1);
const ll INF=1e18;
st abc="abcdefghijklmnopqrstuvwxyz";
st ABC="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
struct edge{ll to,cost;};

int main() {
  ll n;
  bool b=true;
  cin >> n;
  ll nowx=0,nowy=0,nowt=0;
  rep(i,n){
    ll t,x,y;
    cin >> t >> x >> y;
    if(!(abs(x-nowx)+abs(y-now)<=t&&(t-abs(x-nowx)-abs(y-nowy))%2==0)){
      b=false;
    }
  }
  if(b){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:28: error: 'now' was not declared in this scope; did you mean 'nowt'?
   33 |     if(!(abs(x-nowx)+abs(y-now)<=t&&(t-abs(x-nowx)-abs(y-nowy))%2==0)){
      |                            ^~~
      |                            nowt
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
using ld=long double;
using st=string;
using ch=char;
typedef pair<ll,ll> P;
typedef vector<ll> vl;
typedef vector<vl> vvl;
typedef vector<P> vP;
typedef vector<ch> vc;
typedef vector<vc> vvc;
#define FOR(i,a,b) for(ll i=a;i<b;i++)
#define rep(i,n) FOR(i,0,n)
#define ROF(i,a,b) for(ll i=a;i>=b;i--)
#define per(i,a) ROF(i,a,0)
const ll MOD=1000000007;
const ll MOD2=998244353;
const ld PI=acos(-1);
const ll INF=1e18;
st abc="abcdefghijklmnopqrstuvwxyz";
st ABC="ABCDEFGHIJKLMNOPQRSTUVWXYZ";
struct edge{ll to,cost;};

int main() {
  ll n;
  bool b=true;
  cin >> n;
  ll nowx=0,nowy=0,nowt=0;
  rep(i,n){
    cin >> t >> x >> y;
    if(!(abs(x-nowx)+abs(y-now)<=t&&(t-abs(x-nowx)-abs(y-nowy))%2==0)){
      b=false;
    }
  }
  if(b){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:12: error: 't' was not declared in this scope
   31 |     cin >> t >> x >> y;
      |            ^
a.cc:31:17: error: 'x' was not declared in this scope
   31 |     cin >> t >> x >> y;
      |                 ^
a.cc:31:22: error: 'y' was not declared in this scope
   31 |     cin >> t >> x >> y;
      |                      ^
a.cc:32:28: error: 'now' was not declared in this scope; did you mean 'nowt'?
   32 |     if(!(abs(x-nowx)+abs(y-now)<=t&&(t-abs(x-nowx)-abs(y-nowy))%2==0)){
      |                            ^~~
      |                            nowt
Language: Java

import java.io.EOFException;
import java.util.Scanner;

public class Main {
    public static void main(final String[] args) {
        final Scanner sc = new Scanner(System.in);
        final int N = sc.nextInt();
        
        for (int i=0; i<N; i++) {
            final int[] txy = {sc.nextInt(),sc.nextInt(),sc.nextInt()};
            if(judgeValidMove(txy) == false) {
                System.out.println("No");
                return;
            }
        }
        System.out.println("Yes");
        sc.close();
    }

    public static boolean judgeValidMove(int[] txy){
        final int minDist = Math.abs(txy[1]) + Math.abs(txy[2]);
        final int difDist = Math.abs(txy[0]) - minDist;
      	if(diffDist == 0){
            throw new NullPointerException();	
        }
        // 到達可能な距離か
        if(difDist < 0){
            return false;
        }else if(difDist == 0){
            return true; 
        }
        else if(minDist == 0){
            throw new NullPointerException();
        }
        if(difDist % 2 == 0){
            return true;
        } else {
            return false;
        }
    }
}

Compiler output:
Main.java:23: error: cannot find symbol
      	if(diffDist == 0){
      	   ^
  symbol:   variable diffDist
  location: class Main
1 error
Language: C++

using namespace std;

int main() {
    int N;
    int t[110000], x[110000], y[110000];
    cin >> N;
    t[0] = x[0] = y[0] = 0;  // 初期状態
    for (int i = 0; i < N; ++i) cin >> t[i+1] >> x[i+1] >> y[i+1];  // 1-index にしておく

    bool can = true;
    for (int i = 0; i < N; ++i) {
        int dt = t[i+1] - t[i];
        int dist = abs(x[i+1] - x[i]) + abs(y[i+1] - y[i]);
        if (dt < dist) can = false;
        if (dist % 2 != dt % 2) can = false;  // dist と dt の偶奇は一致する必要あり！
  

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin >> N;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:13:20: error: 'abs' was not declared in this scope
   13 |         int dist = abs(x[i+1] - x[i]) + abs(y[i+1] - y[i]);
      |                    ^~~
a.cc:15:45: error: expected '}' at end of input
   15 |         if (dist % 2 != dt % 2) can = false;  // dist と dt の偶奇は一致する必要あり！
      |                                             ^
a.cc:11:33: note: to match this '{'
   11 |     for (int i = 0; i < N; ++i) {
      |                                 ^
a.cc:15:45: error: expected '}' at end of input
   15 |         if (dist % 2 != dt % 2) can = false;  // dist と dt の偶奇は一致する必要あり！
      |                                             ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<n; i++)

bool correct_move(int &a[3], int &b[3]){
  int t = b[0]-a[0];
  int x = abs(b[1]-a[1]);
  int y = abs(b[2]-a[2]);
  
  vector<int> count;
  
  while(t >= 0){
    count.push_back(t);
    t -= 2;
  }
  
  rep(i,count.size()){
    if(count[i] == x+y) return true;
  }
  
  return false;
}
             

int main(){
  int N;
  cin >> N;
  
  vector<vector<int>> data(N, vector<int>(3));
  rep(i,N+1){
    if(i == 0){
      data[0][0] = 0;
      data[0][1] = 0;
      data[0][2] = 0;
    }
    else cin >> data[i][0] >> data[i][1] >> data[i][2];
  }
  
  int count_final = 0;
  rep(i,N){
    if(correct_move(data[i], data[i+1]) == false){
      cout << "NO" << endl;
      break;
    }
    
    else count_final++;
  }
  
  if(count_final == N) cout << "YES" << endl;
}


Compiler output:
a.cc:5:24: error: declaration of 'a' as array of references
    5 | bool correct_move(int &a[3], int &b[3]){
      |                        ^
a.cc:5:28: error: expected ')' before ',' token
    5 | bool correct_move(int &a[3], int &b[3]){
      |                  ~         ^
      |                            )
a.cc:5:30: error: expected unqualified-id before 'int'
    5 | bool correct_move(int &a[3], int &b[3]){
      |                              ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<n; i++)

bool correct_move(vector<int> &a(3), vector<int> &b(3)){
  int t = b[0]-a[0];
  int x = abs(b[1]-a[1]);
  int y = abs(b[2]-a[2]);
  
  vector<int> count;
  
  while(t >= 0){
    count.push_back(t);
    t -= 2;
  }
  
  rep(i,count.size()){
    if(count[i] == x+y) return true;
  }
  
  return false;
}
             

int main(){
  int N;
  cin >> N;
  
  vector<vector<int>> data(N, vector<int>(3));
  rep(i,N+1){
    if(i == 0){
      data[0][0] = 0;
      data[0][1] = 0;
      data[0][2] = 0;
    }
    else cin >> data[i][0] >> data[i][1] >> data[i][2];
  }
  
  int count_final = 0;
  rep(i,N){
    if(correct_move(data[i], data[i+1]) == false){
      cout << "NO" << endl;
      break;
    }
    
    else count_final++;
  }
  
  if(count_final == N) cout << "YES" << endl;
}


Compiler output:
a.cc:5:33: error: expected ',' or '...' before '(' token
    5 | bool correct_move(vector<int> &a(3), vector<int> &b(3)){
      |                                 ^
a.cc: In function 'bool correct_move(std::vector<int>&)':
a.cc:6:11: error: 'b' was not declared in this scope
    6 |   int t = b[0]-a[0];
      |           ^
a.cc: In function 'int main()':
a.cc:41:20: error: too many arguments to function 'bool correct_move(std::vector<int>&)'
   41 |     if(correct_move(data[i], data[i+1]) == false){
      |        ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~
a.cc:5:6: note: declared here
    5 | bool correct_move(vector<int> &a(3), vector<int> &b(3)){
      |      ^~~~~~~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<n; i++)

bool correct_move(vector<int> &a(3), vector<int> &b(3)){
  int t = b[0]-a[0];
  int x = abs(b[1]-a[1]);
  int y = abs(b[2]-a[2]);
  
  vector<int> count;
  
  while(t >= 0){
    count.push_back(t);
    t -= 2;
  }
  
  rep(i,count.size()){
    if(count[i] == x+y) return true;
  }
  
  return false;
}
             

int main(){
  int N;
  cin >> N;
  
  vector<vector<<int>> data(N, vector<int>(3));
  rep(i,N+1){
    if(i == 0){
      data[0][0] = 0;
      data[0][1] = 0;
      data[0][2] = 0;
    }
    else cin >> data[i][0] >> data[i][1] >> data[i][2];
  }
  
  int count_final = 0;
  rep(i,N){
    if(correct_move(data[i], data[i+1]) == false){
      cout << "NO" << endl;
      break;
    }
    
    else count_final++;
  }
  
  if(count_final == N) cout << "YES" << endl;
}

Compiler output:
a.cc:5:33: error: expected ',' or '...' before '(' token
    5 | bool correct_move(vector<int> &a(3), vector<int> &b(3)){
      |                                 ^
a.cc: In function 'bool correct_move(std::vector<int>&)':
a.cc:6:11: error: 'b' was not declared in this scope
    6 |   int t = b[0]-a[0];
      |           ^
a.cc: In function 'int main()':
a.cc:29:21: error: template argument 1 is invalid
   29 |   vector<vector<<int>> data(N, vector<int>(3));
      |                     ^~
a.cc:29:21: error: template argument 2 is invalid
a.cc:29:46: error: expression list treated as compound expression in initializer [-fpermissive]
   29 |   vector<vector<<int>> data(N, vector<int>(3));
      |                                              ^
a.cc:29:32: error: cannot convert 'std::vector<int>' to 'int' in initialization
   29 |   vector<vector<<int>> data(N, vector<int>(3));
      |                                ^~~~~~~~~~~~~~
      |                                |
      |                                std::vector<int>
a.cc:32:11: error: invalid types 'int[int]' for array subscript
   32 |       data[0][0] = 0;
      |           ^
a.cc:33:11: error: invalid types 'int[int]' for array subscript
   33 |       data[0][1] = 0;
      |           ^
a.cc:34:11: error: invalid types 'int[int]' for array subscript
   34 |       data[0][2] = 0;
      |           ^
a.cc:36:21: error: invalid types 'int[int]' for array subscript
   36 |     else cin >> data[i][0] >> data[i][1] >> data[i][2];
      |                     ^
a.cc:36:35: error: invalid types 'int[int]' for array subscript
   36 |     else cin >> data[i][0] >> data[i][1] >> data[i][2];
      |                                   ^
a.cc:36:49: error: invalid types 'int[int]' for array subscript
   36 |     else cin >> data[i][0] >> data[i][1] >> data[i][2];
      |                                                 ^
a.cc:41:25: error: invalid types 'int[int]' for array subscript
   41 |     if(correct_move(data[i], data[i+1]) == false){
      |                         ^
a.cc:41:34: error: invalid types 'int[int]' for array subscript
   41 |     if(correct_move(data[i], data[i+1]) == false){
      |                                  ^
Language: C++

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

const int max=10e6;
int a[max][3], n;
bool check = true;;

int main(){
	cin >> n;
	for(int i=0; i<n; i++){
		cin >> a[i][0] >> a[i][1] >> a[i][2];
	}

	for(int i=0; i<n; i++){
		if(a[i][0]%2 != (a[i][1]+a[i][2])%2){
			check = false
			break;
		}
		if(a[i][0] < a[i][1]+a[i][2]){
			check = false;
			break;
		}
	}

	if(check){
		cout << "Yes" << endl;
	}
	else{
		cout << "No" << endl;
	}
}

Compiler output:
a.cc:6:7: error: reference to 'max' is ambiguous
    6 | int a[max][3], n;
      |       ^~~
In file included from /usr/include/c++/14/algorithm:61,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidates are: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:                 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
In file included from /usr/include/c++/14/algorithm:60:
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:                 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:                 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
a.cc:5:11: note:                 'const int max'
    5 | const int max=10e6;
      |           ^~~
a.cc: In function 'int main()':
a.cc:12:24: error: 'a' was not declared in this scope
   12 |                 cin >> a[i][0] >> a[i][1] >> a[i][2];
      |                        ^
a.cc:16:20: error: 'a' was not declared in this scope
   16 |                 if(a[i][0]%2 != (a[i][1]+a[i][2])%2){
      |                    ^
a.cc:17:38: error: expected ';' before 'break'
   17 |                         check = false
      |                                      ^
      |                                      ;
   18 |                         break;
      |                         ~~~~~         
a.cc:20:20: error: 'a' was not declared in this scope
   20 |                 if(a[i][0] < a[i][1]+a[i][2]){
      |                    ^
Language: C++

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

int main() {
  int n; cin >> n;
  int data[n+1][3];
  for (int j = 0; j < 3; i++)
    data[0][j] = 0;
  for (int i = 0; i < N; i++)
    for (int j = 0; j < 3; i++)
      cin >> data[i+1][j];
  bool count = true;
  for (int i = 0; i < N; i++){
    int dt = data[0][i+1] -data[0][i];
    int dl = abs(data[1][i+1] -data[1][i]) + abs(data[2][i+1] -data[2][i]); 
    if (dt < dl) count = false;
    if ((dt-dl)%2 != 0) count = false;
    if(!count) break;
  }
  if (count) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:26: error: 'i' was not declared in this scope
    7 |   for (int j = 0; j < 3; i++)
      |                          ^
a.cc:9:23: error: 'N' was not declared in this scope
    9 |   for (int i = 0; i < N; i++)
      |                       ^
a.cc:13:23: error: 'N' was not declared in this scope
   13 |   for (int i = 0; i < N; i++){
      |                       ^
Language: Java

import java.util.*;

public class Main86c{
	public static void main(String args[]){
		
		Scanner sc =  new Scanner(System.in);
		int a = sc.nextInt();
		int z;
		int e=0;
		int f=0;
		int g;
		int h=0;
		int r;
		int count=0;
		
		for(int i=0;i<a;i++){
			int b = sc.nextInt();
		    int c = sc.nextInt();
		    int d = sc.nextInt();
			
			
			g=(c+d)-(e+f);
			z=Math.abs(g);
			
			b=b-h;
			r=Math.abs(b);
			r=r-z;
			
			
			if(r>=0 && r%2==0){
				e=c;
				f=d;
				h=b;
				
				if(count==0 && i==a-1){
					System.out.println("yes");
				}	
			}
				else if(r<0 || r%2==1){
				count++;
			}
			
		}
		
		if(count>0){
		System.out.println("no");
		}
		
	}
}

Compiler output:
Main.java:3: error: class Main86c is public, should be declared in a file named Main86c.java
public class Main86c{
       ^
1 error