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

#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/Tree_policy.hpp>
using namespace __gnu_pbds;
using namespace std;
#define SC               scanf
#define PF               printf
#define ull              unsigned long long
#define ld               long double
#define D                double
#define F                first
#define S                second
#define pb               push_back
#define pf               push_front
#define MP               make_pair
#define sort_a(a)        sort(a.begin(),a.end());
#define sort_d(a)        sort(a.rbegin(),a.rend());
#define READ(f)          freopen(f, "r", stdin)
#define WRITE(f)         freopen(f, "w", stdout)
#define rev(s)           reverse(s.begin(),s.end())
#define it(it,mp)        for(auto it=mp.begin() ; it!=mp.end() ; it++)
#define IOS              ios_base :: sync_with_stdio(false); cin.tie(NULL);
#define ll long long
typedef pair<int,int>                   PII;
#define ordered_set Tree<PII, null_type,less<PII>, rb_Tree_tag,Tree_order_statistics_node_update>
const int N = 1e5 + 5;
const int inf = 1e9 + 1;
const double eps = 1e-15;
const double EPS = 1e-9;
const double PI = acos(-1.0);
int main()
{
    // IOS
    //READ("0test.txt");
    //WRITE("");
    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];
    }

    int ntime = 0, nx = 0, ny = 0;
    for (int i = 0; i < n; i++)
    {
        int time = t[i] - ntime;
        int distance = abs(x[i] - nx) + abs(y[i] - ny);
        if(time < distance)
        {
            return cout<<"No\n", 0 ;
        }
        else
        {
            if((time - distance) % 2 != 0)
                return cout<<"No\n",0;
        }
        ntime = t[i];
        nx = x[i];
        ny = y[i];
    }
    cout <<"Yes\n";


}



Compiler output:
a.cc:3:10: fatal error: ext/pb_ds/Tree_policy.hpp: No such file or directory
    3 | #include <ext/pb_ds/Tree_policy.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

int main() {
    int N;
    cin >> N;
    for(int i = 0; i < N; i++) {
        int t,x,y;
        cin >> t >> x >> y;
        if(t < abs(x)+abs(y)) {
            cout << "No" << endl;
            return 0;
        }
        if((t-abs(x)-abs(y))% == 1) {
            cout << "No" << endl;
            return 0;
        }
    }
    cout << "Yes" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:31: error: expected primary-expression before '==' token
   14 |         if((t-abs(x)-abs(y))% == 1) {
      |                               ^~
Language: C++

//問題やり直し
#include <iostream>
#include <string>
using namespace std;

typedef struct{           /* _person がタグ名 */
    int x,y,t;               /* 整数型メンバ age */
} acord_t;

int main(void)
{
  int N;
  cin >> N;
  acord_t point[N];
  for(int i=0; i<N; i++){
    cin >> point[i].t;
    cin >> point[i].x;
    cin >> point[i].y;
  }

  for(int j=0; j<N; j++){
    // cout << "fucnk";
    int x_dis,y_dis,t_dis;
    if(j==0){
      x_dis = point[j].x;
      y_dis = point[j].y;
      t_dis = point[j].t;
    }else{
      x_dis = point[j].x - point[j-1].x;
      y_dis = point[j].y - point[j-1].y;
      t_dis = point[j].t - point[j-1].t;
    }

    int x_front,x_back,y_front,y_back;
    //x_back+y_back=1/2{t_dis-x_dis-y_dis}
    if((t_dis-x_dis-y_dis) %2 != 0){
      cout << "No\n";
      return 0;
    }
    int x_back_min, y_back_min;
    if(x_dis>0) x_back_min = 0;
    else x_back_min = -x_dis;
    if(y_dis>0) y_back_min = 0;
    else y_back_min = -y_dis;
    if(x_back_min+y_back_min > (t_dis-x_dis-y_dis)/2){
      cout << "No\n";
      return 0;
    // }
    // if(abs(x_dis)+abs(y_dis) > t_dis){
    //   cout << "No\n";
    //   return 0;
    // }
  }

  cout << "Yes\n";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:57:2: error: expected '}' at end of input
   57 | }
      |  ^
a.cc:11:1: note: to match this '{'
   11 | {
      | ^
Language: C++

//問題やり直し
#include <iostream>
#include <string>
using namespace std;

typedef struct{           /* _person がタグ名 */
    int x,y,t;               /* 整数型メンバ age */
} acord_t;

int main(void)
{
  int N;
  cin >> N;
  acord_t point[N];
  for(int i=0; i<N; i++){
    cin >> point[i].t;
    cin >> point[i].x;
    cin >> point[i].y;
  }

  for(int j=0; j<N; j++){
    // cout << "fucnk";
    int x_dis,y_dis,t_dis;
    if(j==0){
      x_dis = point[j].x;
      y_dis = point[j].y;
      t_dis = point[j].t;
    }else{
      x_dis = point[j].x - point[j-1].x;
      y_dis = point[j].y - point[j-1].y;
      t_dis = point[j].t - point[j-1].t;
    }

    int x_front,x_back,y_front,y_back;
    //x_back+y_back=1/2{t_dis-x_dis-y_dis}
    if((t_dis-x_dis-y_dis) %2 != 0){
      cout << "No\n";
      return 0;
    }
    int x_back_min, y_back_min;
    if(x_dis>0){
      x_back_min = 0;
    }else{
      x_back_min = -x_dis;
    }
    if(y_dis>0){
      y_back_min = 0;
    }else{
      y_back_min = -y_dis;
    }
    if(x_back_min+y_back_min > (t_dis-x_dis-y_dis)/2){
      cout << "NO\n";
      return 0;
    // }
    // if(abs(x_dis)+abs(y_dis) > t_dis){
    //   cout << "No\n";
    //   return 0;
    // }
  }

  cout << "Yes\n";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:63:2: error: expected '}' at end of input
   63 | }
      |  ^
a.cc:11:1: note: to match this '{'
   11 | {
      | ^
Language: C++

#include <iostream>
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 の偶奇は一致する必要あり！
    }

    if (can) cout << "Yes" << endl;
    else cout << "No" 

Compiler output:
a.cc: In function 'int main()':
a.cc:20:22: error: expected ';' at end of input
   20 |     else cout << "No"
      |                      ^
      |                      ;
a.cc:20:22: error: expected '}' at end of input
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include<iostream>
using namespace std;

int N;

int main() {
  cin>>N;
  int x[N+1][3];
  x[0][0]=0;
  x[0][1]=0;
  x[0][2]=0;
  for (int i=0;i<N;i++){
  cin>>x[i+1][0]>>x[i+1][1]>>x[i+1][2];
  }
  bool can = true;
  for (int i=0;i<N;i++){
    int dist = abs(x[i+1][1]-x[i][1])+abs(x[i+1][2]-x[i][2]);
    int time = x[i+1][0]-x[i][0];
    if(dist>time){
    can = false;
    break;}
    else{
      if((time-dist)%2==1){
        can = false;
        break;
    }
    }
  
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:29:4: error: expected '}' at end of input
   29 |   }
      |    ^
a.cc:6:12: note: to match this '{'
    6 | int main() {
      |            ^
Language: Java

imprt java.util.*;

public class Main{
  public static void main(String[] args) {
    Scanner sc = new Scanner(System.in);
    int N = sc.nextInt();
    int count =0;
    int check =0;
    ArrayList<Integer> t = new ArrayList<Integer>();
    ArrayList<Integer> x = new ArrayList<Integer>();
    ArrayList<Integer> y = new ArrayList<Integer>();
    ArrayList<Integer> z = new ArrayList<Integer>();
    while (sc.hasNext()) {
      count++;
      t.add(sc.nextInt());
      x.add(sc.nextInt());
      y.add(sc.nextInt());
    }
    for (int i =0; i<count; i++) {
      int ttmp = t.get(i);
      int xtmp = x.get(i);
      int ytmp = y.get(i);
      z.add(xtmp + ytmp);
      
      if (xtmp+ytmp > ttmp) break;
      if ((ttmp+xtmp+ytmp) % 2 == 1) break;
      if (i>0) {
        int ztmp = z.get(i-1);
        int interval = Math.abs(xtmp + ytmp - ztmp);
        if (interval > ttmp - t.get(i-1)) break;
      }
      check++;
    } 
      if (check == count ) {
        System.out.println("Yes");
      } else {
        System.out.println("No");
      }
  }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
imprt java.util.*;
^
1 error
Language: C++

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

int main(){
  int N;
  int t[11000],x[11000],y[11000];
  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];
  
  bool kyan = 1;
  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) kyan = 0;
  if (dt%2 != dist%2) kyan = 0;
  }
  
  if (kyan) cout << "yes" <<endl;
  else cout << "no" <<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:21:28: error: expected '}' at end of input
   21 |   else cout << "no" <<endl;
      |                            ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

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];
	bool can = true;
	for(int i=0; i<n; i++){
		int dt=d[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;
	}
	if(can) cout << "Yes" << endl;
	else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:24: error: 'd' was not declared in this scope; did you mean 'dt'?
   14 |                 int dt=d[i+1]-t[i];
      |                        ^
      |                        dt
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int[][] array = new int[n][3];
		for(int i=0;i<n;i++) {
			array[i][0] = sc.nextInt();
			array[i][1] = sc.nextInt();
			array[i][2] = sc.nextInt();
		}
		int x=0,y=0,t=0;
		for(int i=0;i<n;i++) {
			int sub = array[i][0]-t;
			if((x+y)%2==0 ) {
				if(sub%2==0) {
					if((array[i][1]+array[i][2])%2!=0) break;
				}else {
					if((array[i][1]+array[i][2])%2==0) break;
				}
			}else {
				if(sub%2==0) {
					if((array[i][1]+array[i][2])%2==0) break;
				}else {
					if((array[i][1]+array[i][2])%2!=0) break;
				}
			}
			if(Math.max(Math.abs(array[i][1]-x), Math.abs(array[i][2]-y))>sub) break;
			x=array[i][1];
			y=array[i][2];
			t=array[i][0];
		}
		if(i==n) System.out.println("Yes");
		else System.out.println("No");
	}
}

Compiler output:
Main.java:34: error: cannot find symbol
		if(i==n) System.out.println("Yes");
		   ^
  symbol:   variable i
  location: class Main
1 error
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 入力
        int n = sc.nextInt();
        // 初期値
        boolean can = true;
        int t, x, y, dt, dx, dy, dif;

        for (int i = 0; i < n; i++) {
            // 入力値
            dt = sc.nextInt();
            dx = sc.nextInt();
            dy = sc.nextInt();
            dif = dt - t - Math.abs(dx - x) - Math.abs(dy - y);
            can &= dif >= 0 && dif % 2 == 0;
            t = dt;
            x = dx;
            y = dy;
        }

        // 出力
        if (can) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}


Compiler output:
Main.java:17: error: variable t might not have been initialized
            dif = dt - t - Math.abs(dx - x) - Math.abs(dy - y);
                       ^
Main.java:17: error: variable x might not have been initialized
            dif = dt - t - Math.abs(dx - x) - Math.abs(dy - y);
                                         ^
Main.java:17: error: variable y might not have been initialized
            dif = dt - t - Math.abs(dx - x) - Math.abs(dy - y);
                                                            ^
3 errors
Language: Java

import java.util.*;
import java.util.regex.*;

public class Main {
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        // 入力
        int n = sc.nextInt();
        int dt, dx, dy, dif;
        // 初期値
        boolean can = true;
        t = 0;
        x = 0;
        y = 0;

        for (int i = 0; i < n; i++) {
            // 入力値
            dt = sc.nextInt();
            dx = sc.nextInt();
            dy = sc.nextInt();
            dif = Math.abs(dx - x) + Math.abs(dy - y) - dt + t;
            if (dif > 0 || (dif % 2 != 0)) {
                can = false;
            }
            t = dt;
            x = dx;
            y = dy;
        }

        // 出力
        if (can) {
            System.out.println("Yes");
        } else {
            System.out.println("No");
        }
    }
}


Compiler output:
Main.java:12: error: cannot find symbol
        t = 0;
        ^
  symbol:   variable t
  location: class Main
Main.java:13: error: cannot find symbol
        x = 0;
        ^
  symbol:   variable x
  location: class Main
Main.java:14: error: cannot find symbol
        y = 0;
        ^
  symbol:   variable y
  location: class Main
Main.java:21: error: cannot find symbol
            dif = Math.abs(dx - x) + Math.abs(dy - y) - dt + t;
                                ^
  symbol:   variable x
  location: class Main
Main.java:21: error: cannot find symbol
            dif = Math.abs(dx - x) + Math.abs(dy - y) - dt + t;
                                                   ^
  symbol:   variable y
  location: class Main
Main.java:21: error: cannot find symbol
            dif = Math.abs(dx - x) + Math.abs(dy - y) - dt + t;
                                                             ^
  symbol:   variable t
  location: class Main
Main.java:25: error: cannot find symbol
            t = dt;
            ^
  symbol:   variable t
  location: class Main
Main.java:26: error: cannot find symbol
            x = dx;
            ^
  symbol:   variable x
  location: class Main
Main.java:27: error: cannot find symbol
            y = dy;
            ^
  symbol:   variable y
  location: class Main
9 errors
Language: C++

#include <iostream>
#include <cmath>
using namespace std;
int n,t,x,ydx,dy;
int main()
{
	while(cin>>n){
		bool temp=ture;
		while(n--){
			cin>>t>>x>>y;
			int d=abs(dx-X)+abs(dy-Y);
			if(T<d||((t-d)%2!=0) temp=false;
			dx=X,dy=Y;
		}
		if(temp) cout<<"Yes"<<endl;
		else cout<<"No"<<endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: 'ture' was not declared in this scope
    8 |                 bool temp=ture;
      |                           ^~~~
a.cc:10:36: error: 'y' was not declared in this scope; did you mean 'yn'?
   10 |                         cin>>t>>x>>y;
      |                                    ^
      |                                    yn
a.cc:11:35: error: 'dx' was not declared in this scope; did you mean 'd'?
   11 |                         int d=abs(dx-X)+abs(dy-Y);
      |                                   ^~
      |                                   d
a.cc:11:38: error: 'X' was not declared in this scope
   11 |                         int d=abs(dx-X)+abs(dy-Y);
      |                                      ^
a.cc:11:48: error: 'Y' was not declared in this scope
   11 |                         int d=abs(dx-X)+abs(dy-Y);
      |                                                ^
a.cc:12:28: error: 'T' was not declared in this scope
   12 |                         if(T<d||((t-d)%2!=0) temp=false;
      |                            ^
a.cc:13:34: error: expected ')' before ';' token
   13 |                         dx=X,dy=Y;
      |                                  ^
      |                                  )
a.cc:12:27: note: to match this '('
   12 |                         if(T<d||((t-d)%2!=0) temp=false;
      |                           ^
Language: C++

#include <iostream>
#include <cmath>
using namespace std;
int n,t,x,ydx,dy;
int main()
{
	while(cin>>n){
		bool temp=ture;
		while(n--){
			cin>>t>>x>>y;
			int d=abs(dx-X)+abs(dy-Y);
			if(T<d||((t-d)%2!=0) {
				temp=false;
				break;
			}
			dx=X,dy=Y;
		}
		if(temp) cout<<"Yes"<<endl;
		else cout<<"No"<<endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:27: error: 'ture' was not declared in this scope
    8 |                 bool temp=ture;
      |                           ^~~~
a.cc:10:36: error: 'y' was not declared in this scope; did you mean 'yn'?
   10 |                         cin>>t>>x>>y;
      |                                    ^
      |                                    yn
a.cc:11:35: error: 'dx' was not declared in this scope; did you mean 'd'?
   11 |                         int d=abs(dx-X)+abs(dy-Y);
      |                                   ^~
      |                                   d
a.cc:11:38: error: 'X' was not declared in this scope
   11 |                         int d=abs(dx-X)+abs(dy-Y);
      |                                      ^
a.cc:11:48: error: 'Y' was not declared in this scope
   11 |                         int d=abs(dx-X)+abs(dy-Y);
      |                                                ^
a.cc:12:28: error: 'T' was not declared in this scope
   12 |                         if(T<d||((t-d)%2!=0) {
      |                            ^
a.cc:16:34: error: expected ')' before ';' token
   16 |                         dx=X,dy=Y;
      |                                  ^
      |                                  )
a.cc:12:27: note: to match this '('
   12 |                         if(T<d||((t-d)%2!=0) {
      |                           ^
Language: C++

using namespace std;
#include <bits/stdc++.h>
#define rep(i, s) for (int i = 0; i < s; ++i)
#define repr(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define all(v) (v.begin(), v.end())
#define EACH(i, s) for (__typeof__((s).begin()) i = (s).begin(); i != (s).end(); ++i)
#define VEC(a, n) vector<int>a(n)
#define VECV(a,n,m) vector<vector<int>> a(n, vector<int>(m));
#define PQ(a) priority_queue<int>a
#define PQmin(a) priority_queue< int, :vector<int>, greater<int> >a
#define PAIR pair<int, int>
typedef long long ll;
typedef pair<ll, ll> l_l;
typedef pair<int, int> i_i;
#define EPS (1e-7)
#define INF (1e10)
#define PI (acos(-1))
const ll mod = 1000000007;
bool f(string s){
  bool ans=true;
  rep(i,s.size()/2){
    if(s[i]!=s[s.size()/2+i]){
      ans=false;
      break;
    }
  }
  return ans;
}
int main(){
  ios::sync_with_stdio(false);
  cin.tie(0);
  int N;
  int t[110000],x[110000],y[110000];
  t[0]=x[0]=y[0]=0;
  cin>>N;
  rep(i,N)cin>>t[i+1]>>x[i+1]>>y[i+1];
  bool f=true;
  rep(i,N){
    dt=t[i+1]-t[i];
    dist=abs(x[i+1]-x[i])+abs(y[i+1]-y[i]);
    if(dist>dt) f=false;
    if(dist%2!=dt%2) f=false;
  }
  if(f)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:40:5: error: 'dt' was not declared in this scope; did you mean 't'?
   40 |     dt=t[i+1]-t[i];
      |     ^~
      |     t
a.cc:41:5: error: 'dist' was not declared in this scope
   41 |     dist=abs(x[i+1]-x[i])+abs(y[i+1]-y[i]);
      |     ^~~~
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=1;i<=n;++i) cin >> t[i] >> x[i] >> y[i];
  
  
  for (int i=1;i<=n;++i){
    if (t[i]=>x[i]+y[i]){
      if (abs(t[i+1]-t[i])%2==0)&&(abs(y[i+1]-y[i])+abs(x[i+1]-x[i]))%2==0){
        cout << "Yes" << endl;
      }
    }
  }
  cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: expected primary-expression before '>' token
   12 |     if (t[i]=>x[i]+y[i]){
      |              ^
a.cc:13:35: error: expected identifier before '(' token
   13 |       if (abs(t[i+1]-t[i])%2==0)&&(abs(y[i+1]-y[i])+abs(x[i+1]-x[i]))%2==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=1;i<=n;++i) cin >> t[i] >> x[i] >> y[i];
  
  
  for (int i=1;i<=n;++i){
    if (t[i]=>x[i]+y[i]){
      if (abs[t[i+1]-t[i]]%2==0)&&(abs(y[i+1]-y[i])+abs(x[i+1]-x[i]))%2==0){
        cout << "Yes" << endl;
      }
    }
  }
  cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: expected primary-expression before '>' token
   12 |     if (t[i]=>x[i]+y[i]){
      |              ^
a.cc:13:14: error: invalid types '<unresolved overloaded function type>[__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}]' for array subscript
   13 |       if (abs[t[i+1]-t[i]]%2==0)&&(abs(y[i+1]-y[i])+abs(x[i+1]-x[i]))%2==0){
      |              ^
a.cc:13:35: error: expected identifier before '(' token
   13 |       if (abs[t[i+1]-t[i]]%2==0)&&(abs(y[i+1]-y[i])+abs(x[i+1]-x[i]))%2==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=1;i<=n;++i) cin >> t[i] >> x[i] >> y[i];
  
  
  for (int i=1;i<=n;++i){
    if (t[n]=>x[n]+y[n]){
      if (abs[t[i+1]-t[i]]%2==0)&&(abs(y[i+1]-y[i])+abs(x[i+1]-x[i]))%2==0){
        cout << "Yes" << endl;
      }
    }
  }
  cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: expected primary-expression before '>' token
   12 |     if (t[n]=>x[n]+y[n]){
      |              ^
a.cc:13:14: error: invalid types '<unresolved overloaded function type>[__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}]' for array subscript
   13 |       if (abs[t[i+1]-t[i]]%2==0)&&(abs(y[i+1]-y[i])+abs(x[i+1]-x[i]))%2==0){
      |              ^
a.cc:13:35: error: expected identifier before '(' token
   13 |       if (abs[t[i+1]-t[i]]%2==0)&&(abs(y[i+1]-y[i])+abs(x[i+1]-x[i]))%2==0){
      |                                   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define pb push_back
#define mp make_pair
#define all(x) x.begin(), x.end()
#define tr(it, a) for(auto it = a.begin(); it != a.end(); it++)
typedef vector<int> vi;
const int mod = 1000000007;

int32_t main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);
    int n,cx,cy;
    cin>>n;
    int t[n],x[n],y[n];
    for(int i =0;i<n;i++){
        cin>>t[i]>>x[i]>>y[i];
    }
    int time =0;
    cx=0,cy=0;
    for(int i =0;i<n;i++){
        if(abs(x[i]-cx)+abs(y[i]-cy)>t[i]-time){
            cout<<"No"<<endl;
            return 0;

        }
        else if(((abs(x[i]-cx)+abs(y[i]-cy))%2==0 && (t[i]-time)%2!=0)||((abs(x[i]-cx)+abs(y[i]-cy))%2!=0 && (t[i]-time)%2==0))){
             cout<<"No"<<endl;
            return 0;
        }
        else{
            time = t[i];
            cx=x[i];
            cy=y[i];
        }



    }
    cout<<"Yes"<<endl;








}








Compiler output:
a.cc: In function 'int32_t main()':
a.cc:28:128: error: expected primary-expression before ')' token
   28 |         else if(((abs(x[i]-cx)+abs(y[i]-cy))%2==0 && (t[i]-time)%2!=0)||((abs(x[i]-cx)+abs(y[i]-cy))%2!=0 && (t[i]-time)%2==0))){
      |                                                                                                                                ^
Language: C

#include <stdio.h>

int main(void) 
{
	int n;
	int t, x, y;
	int i;
	int flag = 1;
	int* pflag = &flag;

	scanf_s("%d", &n);

	for (i = 0; i < n; i++)
	{
		scanf_s("%d %d %d", &t, &x, &y);
		if ( (t % 2) != ((x + y) % 2) || x + y > t) *pflag = 0;
	}

	if (flag) printf("Yes");
	else printf("No");

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
   11 |         scanf_s("%d", &n);
      |         ^~~~~~~
      |         scanf
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
int counter=0;
int N;
cin>>N;
int a b c,counter=0;
cin>>a>>b>>c;
while(a>=fabs(b)+fabs(c)&&a%2==(fabs(b-c))%2)
{cin>>a>>b>>c;
counter++;}
if(counter==N)
cout<<"Yes"<<endl;
else
cout<<"No"<<endl;}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: expected initializer before 'b'
    7 | int a b c,counter=0;
      |       ^
a.cc:8:6: error: 'a' was not declared in this scope
    8 | cin>>a>>b>>c;
      |      ^
a.cc:8:9: error: 'b' was not declared in this scope
    8 | cin>>a>>b>>c;
      |         ^
a.cc:8:12: error: 'c' was not declared in this scope
    8 | cin>>a>>b>>c;
      |            ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  vector<tuple<int, int, int>> t(N);
  for (int i = 0; i < N; i++) {
    int t, x, y;
    cin >> t >> x >> y;
    t[i] = make_tuple(t, x, y);
  }
  bool check = true;
  for (int i = 0; i < N-1; i++) {
    int time = get<0>(t[i+1])-get<0>(t[i]);
    int l = abs(get<1>(t[i+1])-get<1>(t[i])) + abs(get<2>(t[i+1])-get<2>(t[i]));
    if (time != l) {
      check = false;
    }
  }
  if (check) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:6: error: invalid types 'int[int]' for array subscript
   13 |     t[i] = make_tuple(t, x, y);
      |      ^
Language: C++

n = gets.to_i
txy_array = []
n.times { |_| txy_array << gets.split(" ").map(&:to_i) }
ct, cx, cy = [0, 0, 0]

txy_array.each do |txy|
  nt, nx, ny = txy
  time = nt - ct
  len = (nx - cx).abs + (ny -cy).abs

  if time > len || (time - len).odd?
    puts "NO"
    exit
  end
end

puts "YES"

Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n = gets.to_i
      | ^
a.cc:4:1: error: 'ct' does not name a type
    4 | ct, cx, cy = [0, 0, 0]
      | ^~
Language: C++

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

int main() {
  int N;
  cin >> N;
  
  int t[N], x[N], y[N];
  
  for (int i = 0; i < N; i++) {
    cin >> t[i] >> x[i] >> y[i];
  }
  
  int dt;
  int dist;
  int ans = "Yes";
  for (int i = 0; i < N; i++) {
    dt = t[i+1] - t[i];
    dist = abs(x[i+1] - x[i]) + abs(y[i+1] - y[i]);
    if ((dist + dt) & 2 == 0 && dist <= dt) {
      continue;
    } else {
      ans = "No";
      break;
    }
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   16 |   int ans = "Yes";
      |             ^~~~~
      |             |
      |             const char*
a.cc:23:13: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   23 |       ans = "No";
      |             ^~~~
      |             |
      |             const char*
Language: C++

#include<iostream>

using std::cin;
using std::cout;

inline int dis( int x , int y )
{
	return x + y;
}

int main( void )
{
	int T;
	cin >> T;
	int buf1 , buf2 , buf3;
	while( T-- )
	{
		cin >> buf1 >> buf2 >> buf3;
		if( ( buf1 & 1 ) != ( dis( buf2 , buf3 ) & 1 ) && ( buf1 <= dis( buf2 , buf3 ) ) )
		{
			cout << "No";
			return 0;
		}
	} 
	cout << "Yes";
}
using std::cout;

inline int dis( int x , int y )
{
	return x + y;
}

int main( void )
{
	int T;
	cin >> T;
	int buf1 , buf2 , buf3;
	while( T-- )
	{
		cin >> buf1 >> buf2 >> buf3;
		if( ( buf1 & 1 ) != ( dis( buf2 , buf3 ) & 1 ) )
		{
			cout << "No";
			return 0;
		}
	} 
	cout << "Yes";
}#include<iostream>

using std::cin;
using std::cout;

inline int dis( int x , int y )
{
	return x + y;
}

int main( void )
{
	int T;
	cin >> T;
	int buf1 , buf2 , buf3;
	while( T-- )
	{
		cin >> buf1 >> buf2 >> buf3;
		if( ( buf1 & 1 ) != ( dis( buf2 , buf3 ) & 1 ) && ( buf1 <= dis( buf2 , buf3 ) ) )
		{
			cout << "No";
			return 0;
		}
	} 
	cout << "Yes";
}

Compiler output:
a.cc:49:2: error: stray '#' in program
   49 | }#include<iostream>
      |  ^
a.cc:29:12: error: redefinition of 'int dis(int, int)'
   29 | inline int dis( int x , int y )
      |            ^~~
a.cc:6:12: note: 'int dis(int, int)' previously defined here
    6 | inline int dis( int x , int y )
      |            ^~~
a.cc:34:5: error: redefinition of 'int main()'
   34 | int main( void )
      |     ^~~~
a.cc:11:5: note: 'int main()' previously defined here
   11 | int main( void )
      |     ^~~~
a.cc:49:3: error: 'include' does not name a type
   49 | }#include<iostream>
      |   ^~~~~~~
a.cc:54:12: error: redefinition of 'int dis(int, int)'
   54 | inline int dis( int x , int y )
      |            ^~~
a.cc:6:12: note: 'int dis(int, int)' previously defined here
    6 | inline int dis( int x , int y )
      |            ^~~
a.cc:59:5: error: redefinition of 'int main()'
   59 | int main( void )
      |     ^~~~
a.cc:11:5: note: 'int main()' previously defined here
   11 | int main( void )
      |     ^~~~
Language: C++

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

bool check(int t, int x, int y){
  if(x + y > t) return false;
  if((t - x - y) % 2 == 0) return true;
  return false;
}

int main(){
  int N;
  cin >> N;
  vector<int>t(N + 1);
  vector<int>x(N + 1);
  vector<int>y(N + 1);
  for(int i = 1; i <= N; i++){
    cin >> t.at(i) >> x.at(i) >> y.at(i);
  }
  bool a = true;
  int i = 0;
  while(a){
    a = check(t.at(i + 1) - t.at(i), x.at(i + 1) - x.at(i), y.at(i + 1) - y.at(i))
    i++;
    if(i > N) break;
  } 
  if(a && i == N) {
    cout << "Yes" << endl;
  }else{
    cout << "No" << endl;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:83: error: expected ';' before 'i'
   22 |     a = check(t.at(i + 1) - t.at(i), x.at(i + 1) - x.at(i), y.at(i + 1) - y.at(i))
      |                                                                                   ^
      |                                                                                   ;
   23 |     i++;
      |     ~
Language: C++

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


int main (){
    int N;
    string Z="Yes";
    cin >> N;
    vector<int> t(N+1);
    vector<int> x(N+1);
    vector<int> y(N)+1;
    for(int i=0;i<N;i++){
        cin >> t.at(i) >> x.at(i) >> y.at(i);
    }
    t[N]=0;
    x[N]=0;
    y[N]=0;
    for(int i=0;i<N;i++){
        int T=t[i+1]-t[i];
        int X=x[i+1]-x[i];
        int Y=y[i+1]-y[i];
        if(T<0){
            T*=-1;
        }
        if(X<0){
            X*=-1;
        }
        if(Y<0){
            Y*=-1;
        }
        int z=T-X-Y;
        if(z%2!=0 || z<0){
            Z="No";
            break;
        }
        
    }
    cout << Z << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:21: error: expected ',' or ';' before '+' token
   12 |     vector<int> y(N)+1;
      |                     ^
Language: C++

#include <bits/stdc++.h>
#include <math.h>
#include <cmath>

using namespace std;
using ll =long long;
using vi = vector<int>; 
using vvi = vector<vi>; 
using vl = vector<ll>; 
using vvl = vector<vl>; 
using vs = vector<string>;
using vvs = vector<vs>; 
using vc = vector<char>;
using vvc = vector<vc>; 
using vb = vector<bool>;
using vvb = vector<vb>; 

#define rep(i,n) ;for( int i =0; i < n ; i ++)
#define all(a) a.begin(),a.end()
#define pb(a) push_back(a)
#define pd(a) printf("%.10f\n",a)
#define mem(a) memset(a,0,sizeof(a))
#define f(i,a,b) for(int i=a;i<b;i++)
#define pri(a)  printf("%.14lf\n",a);
#define MOD 1000000007
bool is_int_lround(double x){
  return std::lround(x)==x;
}
ll keta(ll x){
  ll n=0;
  while(x>0){
    x /=10 ;
    n ++;
  }
  return n;
}

ll conbi(int n,int m){
  
  cin>>n>>m;
  vector<ll> a(100);
  a[0] =1;
  for(int i=0;i<14;i++){
    a[i+1]=a[i]*(i+1);
  }
  return a[n] /(a[m] *a[n-m]);
}

long long modpow(long long a, long long n, long long mod) {
    long long res = 1;//繰り返し二乗法
    while (n > 0) {
        if (n & 1) res = res * a % mod;
        a = a * a % mod;
        n >>= 1;
    }
    return res;
}
ll kaijo(ll x){
  ll z=1;
  if(x==0){
    return 1;
  }
  while(x>0){
    z *=x;
    z %=MOD;
    x--;
  }
  return z;
}
ll yakusu_num(ll n){
  vl yakusu(n+1,1);
  for(ll i=2;i*i<=n;i++){ 
    while(n%i==0){
      n /=i;
      yakusu[i]++;
    }
  }
  if(n!=1)yakusu[n]++;
  ll num=1;
  for(ll i=0;i<=n;i++){
    num*=yakusu[i];
  }
  return num;
}

int H,W;
vs s(50);
vi dv ={-1,0,1,0};vi du={0,-1,0,1};
int cnt=1;
int dfs(int u,int v){
  s[u][v]='.';
  
  rep(i,4){
   
      int nu =u +du[i],nv=v+dv[i];
      if(nu<0||nu>=H||nv<0||nv>=W)continue;
      if(s[nu][nv]=='.')continue;
      cnt ++;
      dfs(nu,nv);
    
  }
  return cnt;

}

//vc alp(26) ={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
//cout<<""<<endl;
int main(){
  int N;cin>>N;vi x(N),y(N),t(N);rep(i,N)cin>>t[i]>>x[i]>>y[i];
  vi z(N);z[0]=x[0]+y[0];
  for(int i=1;i<N;i++){
    z[i]=abs(x[i]-x[i-1])+abs(y[i]-y[i-1]);
  }
  vi tt(N);tt[0]=t[0];f(i,1,N)tt[i]=t[i]-t[i-1];
  bool ok=true;
  for(int i=0;i<N;i++){
    if(!(z[i]<=tt[i] && z[i]%2==tt[i]%2){
      ok=false;
    }
  }
  if(ok)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}







Compiler output:
a.cc: In function 'int main()':
a.cc:117:41: error: expected ')' before '{' token
  117 |     if(!(z[i]<=tt[i] && z[i]%2==tt[i]%2){
      |       ~                                 ^
      |                                         )
a.cc:120:3: error: expected primary-expression before '}' token
  120 |   }
      |   ^
Language: C++

#include <iostream>
#include <map>
#include <string>
#include <cmath>

using namespace std;

int main() {
	int n;
	cin >> n;
	int x = 0, y = 0, t = 0;
	for (int i = 0; i < n; i++) {
		int xt, yt, tt;
		cin >> tt >> xt >> yt;

		int d = abs(xt - x) + abs(yt - y);
		if (d > (tt - t)) {
			cout << "No" << endl;
			return 0;
		}
		if (d + 1 == (tt - t)) {
			cout << "No" << endl;
			return 0;
		}
		if (((tt - t) - d) % 2 != 0) {
			cout << "No" << endl;
			return 0;
		x = xt;
		y = yt;
		t = tt;
	}
	cout << "Yes" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:2: error: expected '}' at end of input
   34 | }
      |  ^
a.cc:8:12: note: to match this '{'
    8 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;
int main(){
  int N;
  cin>>N;
  int t[N],x[N],y[N];
  for(int i=0; i<N; i++) cin>>t[i+1]>>x[i+1]>>y[i+1];
    bool chinko=true;
  for (int i=0; i<N; i++) {
    int dt=t[i+1]-t[i];
    int dint=abs(x[i+1]-x[i])+abs(y[i+1]-y[i]);
    if (dt<dint){
      chinko=false;}
    if (dist % 2 != dt % 2){
      chinko=false;}
  }
  if(chinko) cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}
    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'dist' was not declared in this scope; did you mean 'dint'?
   14 |     if (dist % 2 != dt % 2){
      |         ^~~~
      |         dint
Language: C++

#include <iostream>
using namespace std;
int main(){
  int N;
  cin>>N;
  int t[N],x[N],y[N];
  for(int i=0; i<N; i++) cin>>t[i+1]>>x[i+1]>>y[i+1];
    bool chinko=true;
  for (int i=0; i<N; i++) {
   
    int dt=t[i+1]-t[i];
    int dint=x[i+1]+y[i+1]-x[i]-y[i];
    if (dt<dint || (dt+dint)%2!=0){
      chinko=false}
  }
  if(chinko) cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}
    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:14:19: error: expected ';' before '}' token
   14 |       chinko=false}
      |                   ^
      |                   ;
Language: C++

#include <iostream>
using namespace std;
int main(){
  int N;
  cin>>N;
  int t[N],x[N],y[N];
  for(int i=0; i<N; i++) cin>>t[i+1]>>x[i+1]>>y[i+1];
    bool chinko=true;
  for (int i=0; i<N; i++) {
   
    int dt=t[i+1]-t[i];
    int dint=x[i+1]+y[i+1]-x[i]-y[i];
    if (dt<dint || (dt+dint)%!=0){
      chinko=false}
  }
  if(chinko) cout<<Yes<<endl;
  else cout<<No<<endl;
}
    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:13:30: error: expected primary-expression before '!=' token
   13 |     if (dt<dint || (dt+dint)%!=0){
      |                              ^~
a.cc:14:19: error: expected ';' before '}' token
   14 |       chinko=false}
      |                   ^
      |                   ;
a.cc:16:20: error: 'Yes' was not declared in this scope
   16 |   if(chinko) cout<<Yes<<endl;
      |                    ^~~
a.cc:17:14: error: 'No' was not declared in this scope; did you mean 'N'?
   17 |   else cout<<No<<endl;
      |              ^~
      |              N
Language: C++

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

int main(){
    int N,t,x,y,sum,tsum;
  	cin >>N;
    bool ans = true;
    vector<int>tvec(N+1,0);
    vector<int>xvec(N+1,0);
    vector<int>yvec(N+1,0);
    for(int i=0;i<N;i++){
        cin >> tvec[i+1] >> xvec[i+1] >> yvec[i+1];
    }
    for(int i=0;i<N;i++){
        sum = abs(xvec[i+1]-xvec[i])+abs(yvec[i+1]-yvec[i]);
        tsum =tvec[i+1]-tvec[i];
        if(tsum%2 == sum%2 && tsum >= sum){
        }
        else{
            ans = false;
            break;
        }
    }
    if(ans == true){
        cout <<"Yes"<< endl;
    }
    else{
        cout <<"No" << endl;
    }
}
}

Compiler output:
a.cc:31:1: error: expected declaration before '}' token
   31 | }
      | ^
Language: C++

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

int main() {
  int N;
  cin >> N;
  int t[N], x[N], y[N];
  t[0] = x[0] = y[0] = 0;
  for (int i = 0; i < N; i++) cin >> t[i] >> x[i] >> y[i];

  bool can true;
  for (int i = 0; i < N; i++) {
    int dt = t[i + 1] - t[i];
    int dl = abs(x[i + 1] - x[i]) + abs(y[i + 1] + y[i]);
    if (dt < dl) can = false;
    if (dt % 2 != dl % 2) can = false;
  }
  if (can) cout << "Yes" << endl;
  else cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: expected initializer before 'true'
   11 |   bool can true;
      |            ^~~~
a.cc:15:18: error: 'can' was not declared in this scope; did you mean 'tan'?
   15 |     if (dt < dl) can = false;
      |                  ^~~
      |                  tan
a.cc:16:27: error: 'can' was not declared in this scope; did you mean 'tan'?
   16 |     if (dt % 2 != dl % 2) can = false;
      |                           ^~~
      |                           tan
a.cc:18:7: error: 'can' was not declared in this scope; did you mean 'tan'?
   18 |   if (can) cout << "Yes" << endl;
      |       ^~~
      |       tan
Language: Java

import java.util.*;
 
public class Main {
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
	List<Integer> listT = new ArrayList<Integer>();
	List<Integer> listX = new ArrayList<Integer>();
	List<Integer> listY = new ArrayList<Integer>();
    listT.add(0);
    listX.add(0);
    listY.add(0);
	while(sc.hasNext()){
		listT.add(sc.nextInt());
		listX.add(sc.nextInt());
		listY.add(sc.nextInt());
	}
	
	for(int i = 0; i <= n-1; i++){
		
		dt = listT.get(i+1) - listT.get(i);
		dist = Math.abs(listX.get(i+1) - listX.get(i)) 
			+ Math.abs(listY.get(i+1) - listY.get(i));
		if((dt%2!=0 && dist%2==0) || (dt%2==0 && dist%2!=0)){
			System.out.println("No");
			break;
		}
		if((i==n-1 && dt%2==0 && dist%2==0) || (i ==n-1&& dt%2!=0 && dist%2!=0)){
			System.out.println("Yes");
		}
	}
  }
}


Compiler output:
Main.java:21: error: cannot find symbol
		dt = listT.get(i+1) - listT.get(i);
		^
  symbol:   variable dt
  location: class Main
Main.java:22: error: cannot find symbol
		dist = Math.abs(listX.get(i+1) - listX.get(i)) 
		^
  symbol:   variable dist
  location: class Main
Main.java:24: error: cannot find symbol
		if((dt%2!=0 && dist%2==0) || (dt%2==0 && dist%2!=0)){
		    ^
  symbol:   variable dt
  location: class Main
Main.java:24: error: cannot find symbol
		if((dt%2!=0 && dist%2==0) || (dt%2==0 && dist%2!=0)){
		               ^
  symbol:   variable dist
  location: class Main
Main.java:24: error: cannot find symbol
		if((dt%2!=0 && dist%2==0) || (dt%2==0 && dist%2!=0)){
		                              ^
  symbol:   variable dt
  location: class Main
Main.java:24: error: cannot find symbol
		if((dt%2!=0 && dist%2==0) || (dt%2==0 && dist%2!=0)){
		                                         ^
  symbol:   variable dist
  location: class Main
Main.java:28: error: cannot find symbol
		if((i==n-1 && dt%2==0 && dist%2==0) || (i ==n-1&& dt%2!=0 && dist%2!=0)){
		              ^
  symbol:   variable dt
  location: class Main
Main.java:28: error: cannot find symbol
		if((i==n-1 && dt%2==0 && dist%2==0) || (i ==n-1&& dt%2!=0 && dist%2!=0)){
		                         ^
  symbol:   variable dist
  location: class Main
Main.java:28: error: cannot find symbol
		if((i==n-1 && dt%2==0 && dist%2==0) || (i ==n-1&& dt%2!=0 && dist%2!=0)){
		                                                  ^
  symbol:   variable dt
  location: class Main
Main.java:28: error: cannot find symbol
		if((i==n-1 && dt%2==0 && dist%2==0) || (i ==n-1&& dt%2!=0 && dist%2!=0)){
		                                                             ^
  symbol:   variable dist
  location: class Main
10 errors
Language: C++

#include <iostream>
using namespace std;

int main() {
  int N;
  int t[100100];
  int x[100100];
  int y[100100];
  cin >> N;
  x[0] = 0;
  x[0] = 0;
  t[0] = 0;

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

  bool can = true;

  for (int i=0; i < N; ++i) {
    int abs_x = abs(x[i+1] - x[i]);
    int dist = abs(x[i+1] - x[i]) + abs(y[i+1] - y[i]);
    if (abs_t < dist) {
      can = false;
      break;
    } else if (abs_t % 2 != dist % 2) {
      can = false;
      break;
    }
  }

  if (can == true) {
    cout << "YES" << endl;
  } else {
    cout << "NO" << endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:9: error: 'abs_t' was not declared in this scope; did you mean 'abs_x'?
   25 |     if (abs_t < dist) {
      |         ^~~~~
      |         abs_x
Language: Java

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		
		int t = 0;
		int x = 0;
		int y = 0;
		
		while (sc.hasNextInt()) {
			int next_t = sc.nextInt();
			int next_x = sc.nextInt();
			int next_y = sc.nextInt();
			
			int jikan = next_t - t;
			int dest = Math.abs(next_x - x) + Math.abs(next_y - y);

			if (jikan / 2 == 0) {
				if (dest / 2 == 1)  {
					system.out.println("No");
					return;
				}
			} else {
				if (dest / 2 == 0) {
					system.out.println("No");
					return;
				}
			}
			
			if (dest > jikan) {
				system.out.println("No");
				return;
			}
			
			t = next_t;
			x = next_x;
			y = next_y;
			
		}
		
		system.out.println("Yes");
	}
}


Compiler output:
Main.java:21: error: package system does not exist
					system.out.println("No");
					      ^
Main.java:26: error: package system does not exist
					system.out.println("No");
					      ^
Main.java:32: error: package system does not exist
				system.out.println("No");
				      ^
Main.java:42: error: package system does not exist
		system.out.println("Yes");
		      ^
4 errors
Language: C++

#include<cstdio>
#include<iostream>
#include<cstring>
#include<cmath>
#include<algorithm>
#include<string>
using namespace std;
int n,a[10000000+10],b[10000000+10],c[10000000+10]; 
int main()
{
	scanf("%d",&n)
	for(int i=1; i<=n; i++)
	{
		scanf("%d%d%d",&a[i],&b[i],&c[i]);
	}
	for(int i=1; i<=n ;i++)
	{
		if((a[i]%(c[i]+b[i]))%2==1 or a[i]<c[i]+b[i]){cout<<"No"<<endl;return 0;}
	}
	cout<<"Yes"<<endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:23: error: expected ';' before 'for'
   11 |         scanf("%d",&n)
      |                       ^
      |                       ;
   12 |         for(int i=1; i<=n; i++)
      |         ~~~            
a.cc:12:22: error: 'i' was not declared in this scope
   12 |         for(int i=1; i<=n; i++)
      |                      ^
Language: C++

N = int(input())
trip = [list(map(int, input().split(' '))) for i in range(N)]

point = [0, 0, 0]

for i in range(N):
    time = trip[i][0]-point[0]
    x = abs(trip[i][1]-point[1])
    y = abs(trip[i][2]-point[2])
    if ((time-x-y) % 2) or (time < (x+y)):
        print('No')
        exit()
    point = trip[i]

print('Yes')


Compiler output:
a.cc:11:15: warning: multi-character character constant [-Wmultichar]
   11 |         print('No')
      |               ^~~~
a.cc:15:7: warning: multi-character character constant [-Wmultichar]
   15 | print('Yes')
      |       ^~~~~
a.cc:1:1: error: 'N' does not name a type
    1 | N = int(input())
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(),v.rend()
typedef long long ll;
#define _GLIBCXX_DEBUG
int main()	{
  int n;
  cin>>n;
  vector<int>t(n),x(n),y(n);
  x[0]=0;t[0]=0;y[0]=0;
  rep(i,n){
    cin>>t[i+1]>>x[i+1]>>y[i+1];
  }
  bool planex=true;
  rep(i,n){
    int dt=t[i+1]-t[i];
    int f=abs(x[i+1]-x[i])+abs(y[i+1]-y[i]);
    if(f>dt) planex=false;
    else if(f%2 == dt%2) planex=false;
  }
  if(planex==false) cout<<"No"<<endl;
  else cout<<"Yes"<<endl;
  }
}

Compiler output:
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
Language: C++

n = scanf("%d",'C');
a = scanf("%d", [3,n])';
d = abs(diff([0 0 0; a]));
r = d(:,1) - d(:,2) - d(:,3);
 
if min(r) < 0 || max(mod(r, 2)) == 1
    disp("No")
else
    disp("Yes")
end


Compiler output:
a.cc:2:23: warning: missing terminating ' character
    2 | a = scanf("%d", [3,n])';
      |                       ^
a.cc:2:23: error: missing terminating ' character
    2 | a = scanf("%d", [3,n])';
      |                       ^~
a.cc:1:1: error: 'n' does not name a type
    1 | n = scanf("%d",'C');
      | ^
a.cc:2:1: error: 'a' does not name a type
    2 | a = scanf("%d", [3,n])';
      | ^
a.cc:3:22: error: 'a' does not name a type
    3 | d = abs(diff([0 0 0; a]));
      |                      ^
a.cc:4:1: error: 'r' does not name a type
    4 | r = d(:,1) - d(:,2) - d(:,3);
      | ^
a.cc:6:1: error: expected unqualified-id before 'if'
    6 | if min(r) < 0 || max(mod(r, 2)) == 1
      | ^~
Language: C++

#include<cstdio>
using namespace std;
int main() {
	int n,t,x,y;
	scanf("%d",&n);
	for(int i=1; i<=n; i++) {
		scanf("%d%d%d",&t,&x,&y);
		if(x+y>t) {
			printf("No\n");
			return 0;
		}
		if((x+y)%2==0&&t%2==1) {
			printf("No\n");
			return 0;
		}
		if((x+y)%2==1&&t%2==0) {
			printf("No\n");
			return 0;
		}
	}
	printf();
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:15: error: too few arguments to function 'int printf(const char*, ...)'
   21 |         printf();
      |         ~~~~~~^~
In file included from /usr/include/c++/14/cstdio:42,
                 from a.cc:1:
/usr/include/stdio.h:363:12: note: declared here
  363 | extern int printf (const char *__restrict __format, ...);
      |            ^~~~~~
Language: Java

import java.util.Scanner;
public class Test {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int[][] way= new int[n][3];

		for(int i =0;i<3*n;i++){
			int b=i%3;
			int a=(i-b)/3;
			int m = sc.nextInt();
			way[a][b]= m;
		}

		boolean koike = true;
		for(int i = 0;i<n-1;i++){
			koike &= judge(way[i][0],way[i][1],way[i][2],way[i+1][0],way[i+1][1],way[i+1][2]);
		}
		koike &= judge(0,0,0,way[0][0],way[0][1],way[0][2]);
		if(koike){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
	private static boolean judge(int a,int b, int c, int d, int e, int f){
		int t = d-a;
		int distance = Math.abs(e-b)+Math.abs(f-c);
		return t>=distance && (t-distance)%2==0;
	}
}


Compiler output:
Main.java:2: error: class Test is public, should be declared in a file named Test.java
public class Test {
       ^
1 error
Language: Java

import java.util.Scanner;
public class Test {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);

		int n = sc.nextInt();
		int[][] way= new int[n][3];

		for(int i =0;i<3*n;i++){
			int b=i%3;
			int a=(i-b)/3;
			int m = sc.nextInt();
			way[a][b]= m;
		}

		boolean koike = true;
		for(int i = 0;i<n-1;i++){
			koike &= judge(way[i][0],way[i][1],way[i][2],way[i+1][0],way[i+1][1],way[i+1][2]);
		}
		if(koike){
			System.out.println("Yes");
		}else{
			System.out.println("No");
		}
	}
	private static boolean judge(int a,int b, int c, int d, int e, int f){
		int t = d-a;
		int distance = Math.abs(e-b)+Math.abs(f-c);
		return t>distance && (t-distance)%2==0;
	}
}


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