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

#include "bits/stdc++.h"
#define ed cout<<"\n";
#define SPEED ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define ll longlongint
using namespace std;
int main(){
     SPEED;
     int n;
     int t[110000],x[110000],y[110000];
     t[0]=x[0]=y[0]=0;
     for(i;n)cin>>t[i+1]>>x[i+1]>>y[i+1];
     bool can=true;
     for(i,n){
         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;
     }
     if(can) cout<<"Yes";
     else cout<<"No";
     ed;
     return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: 'i' was not declared in this scope
   12 |      for(i;n)cin>>t[i+1]>>x[i+1]>>y[i+1];
      |          ^
a.cc:12:13: error: expected ';' before ')' token
   12 |      for(i;n)cin>>t[i+1]>>x[i+1]>>y[i+1];
      |             ^
      |             ;
a.cc:14:10: error: 'i' was not declared in this scope
   14 |      for(i,n){
      |          ^
a.cc:20:6: error: expected primary-expression before 'if'
   20 |      if(can) cout<<"Yes";
      |      ^~
a.cc:19:7: error: expected ';' before 'if'
   19 |      }
      |       ^
      |       ;
   20 |      if(can) cout<<"Yes";
      |      ~~
a.cc:20:6: error: expected primary-expression before 'if'
   20 |      if(can) cout<<"Yes";
      |      ^~
a.cc:19:7: error: expected ')' before 'if'
   19 |      }
      |       ^
      |       )
   20 |      if(can) cout<<"Yes";
      |      ~~
a.cc:14:9: note: to match this '('
   14 |      for(i,n){
      |         ^
Language: C++

#include<iostream>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>N;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
Language: C++

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

int main() {
  int n;
  cin >> n;
  
  vector<int> t(n), x(n), y(n), z(n);
  for(int i = 0; i < n; i++){
    cin >> t.at(i) >> x.at(i) >> y.at(i);
    z.at(i) = x.at(i) + y.at(i);
  }
  
  string ans = "Yes";
  for(i = 1; i < n; i++){
    if(((t.at(i) - t.at(i - 1)) % 2) != ((z.at(i) - z.at(i - 1)) % 2)
      || (t.at(i) - t.at(i - 1) > abs(z.at(i) - z.at(i - 1)))){
      ans = "No";
    }
  }
  
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:7: error: 'i' was not declared in this scope
   15 |   for(i = 1; i < n; i++){
      |       ^
Language: C

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

int main() {
  int N;
  bool can = true;
  cin >> N;
  for (int i=0; i < N; ++i) {
    int t, x, y;
    cin >> t >> x >> y;
    if (!can) {
      continue;
    }
    if (t % 2 != (x+y)%2) {
      can = false;
      continue;
    }
    if ((x+y) <= t) {
      can = true;
    } else {
      can = false;
      continue;
    }
  }

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

  return 0;
}

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

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

struct coordinate {
    int t, x, y;
    bool operator < (const coordinate &another) const {
        return t < another.t;
    }
};

int main() {
    int n; cin >> n;
    vector<coordinate> vec(n + 1);
    vec[0].t = vec[0].x = vec[0].y = 0;
    for(int i = 1; i < n + 1; i++) cin >> vec[i].t >> vec[i].x >> vec[i].y;

    sort(vec.begin(), vec.end());

    for(int i = 1; i < n + 1; i++) {
        int time_diff = vec[i].t - vec[i - 1].t;
        int dist_diff = abs(vec[i].x - vec[i - 1].x) + abs(vec[i].y - vec[i - 1].y);
        if((time_diff < dist_diff) || (time_diff % 2 == 0 && dist_diff % 2 != 0) || (time_diff % 2 != 0 && dist_diff % 2 == 0)) {
            cout << "No" << endl;
            return 0;
        }
    }

    cout << "Yes" << endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:5: error: 'sort' was not declared in this scope; did you mean 'short'?
   18 |     sort(vec.begin(), vec.end());
      |     ^~~~
      |     short
Language: C++

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

int main(){

  int n;
  cin >> n;
  int t[n+1];
  int x[n+1];
  int y[n+1];
  t[0] = 0;
  x[0] = 0;
  y[0] = 0;

  for(int i=1;i<=n;i++){
    cin >> t[i] >> x[i] >> y[i];
    t[i] = abs(t[i]-t[i-1]);
    x[i] = abs(x[i]-x[i-1]);
    y[i] = abs(y[i]-y[i-1]);
  }
  for(int i=1;i<=n;i++){
    if(x[i]+y[i]>t[i]){
      cout << "No" << endl;
      return 0;
    }

    if(t[i]%2==0){
      if(x[i]%2==1){
        if(y[i]%2==0){
          cout << "No" << endl;
          return 0;
        }
        else{
          continue;
        }
      }
      else{
        if(y[i]%2==0){
          continue;
        }
        else{
          cout << "No" << endl;
          return 0;
        }
      }
    }

if(t[i]%2==1){
      if(x[i]%2==1){
        if(y[i]%2==1){
          cout << "No" << endl;
          return 0;
        }
        else{
          continue;
        }
      }
      else{
        if(y[i]%2==1){
          continue;
        }
        else{
          cout << "No" << endl;
          return 0;
        }
      }
    }
  }

    cout << "Yes" << endl;


}



Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> n;
      |   ^~~
a.cc:17:12: error: 'abs' was not declared in this scope
   17 |     t[i] = abs(t[i]-t[i-1]);
      |            ^~~
a.cc:23:7: error: 'cout' was not declared in this scope
   23 |       cout << "No" << endl;
      |       ^~~~
a.cc:23:23: error: 'endl' was not declared in this scope
   23 |       cout << "No" << endl;
      |                       ^~~~
a.cc:30:11: error: 'cout' was not declared in this scope
   30 |           cout << "No" << endl;
      |           ^~~~
a.cc:30:27: error: 'endl' was not declared in this scope
   30 |           cout << "No" << endl;
      |                           ^~~~
a.cc:42:11: error: 'cout' was not declared in this scope
   42 |           cout << "No" << endl;
      |           ^~~~
a.cc:42:27: error: 'endl' was not declared in this scope
   42 |           cout << "No" << endl;
      |                           ^~~~
a.cc:51:11: error: 'cout' was not declared in this scope
   51 |           cout << "No" << endl;
      |           ^~~~
a.cc:51:27: error: 'endl' was not declared in this scope
   51 |           cout << "No" << endl;
      |                           ^~~~
a.cc:63:11: error: 'cout' was not declared in this scope
   63 |           cout << "No" << endl;
      |           ^~~~
a.cc:63:27: error: 'endl' was not declared in this scope
   63 |           cout << "No" << endl;
      |                           ^~~~
a.cc:70:5: error: 'cout' was not declared in this scope
   70 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:70:22: error: 'endl' was not declared in this scope
   70 |     cout << "Yes" << endl;
      |                      ^~~~
Language: C++

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

int main(){

  int n;
  cin >> n;
  int t[n+1];
  int x[n+1];
  int y[n+1];
  t[0] = 0;
  x[0] = 0;
  y[0] = 0;

  for(int i=1;i<=n;i++){
    cin >> t[i] >> x[i] >> y[i];
    t[i] = abs(t[i]-t[i-1]);
    x[i] = abs(x[i]-x[i-1]);
    y[i] = abs(y[i]-y[i-1]);

    if(x[i]+y[i]>t[i]){
      cout << "No" << endl;
      return 0;
    }

    if(t[i]%2==0){
      if(x[i]%2==1){
        if(y[i]%2==0){
          cout << "No" << endl;
          return 0;
        }
        else{
          continue;
        }
      }
      else{
        if(y[i]%2==0){
          continue;
        }
        else{
          cout << "No" << endl;
          return 0;
        }
      }
    }

 if(t[i]%2==1){
      if(x[i]%2==1){
        if(y[i]%2==1){
          cout << "No" << endl;
          return 0;
        }
        else{
          continue;
        }
      }
      else{
        if(y[i]%2==1){
          continue;
        }
        else{
          cout << "No" << endl;
          return 0;
        }
      }
    }
  }
    cout << "Yes" << endl;


}



Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> n;
      |   ^~~
a.cc:17:12: error: 'abs' was not declared in this scope
   17 |     t[i] = abs(t[i]-t[i-1]);
      |            ^~~
a.cc:22:7: error: 'cout' was not declared in this scope
   22 |       cout << "No" << endl;
      |       ^~~~
a.cc:22:23: error: 'endl' was not declared in this scope
   22 |       cout << "No" << endl;
      |                       ^~~~
a.cc:29:11: error: 'cout' was not declared in this scope
   29 |           cout << "No" << endl;
      |           ^~~~
a.cc:29:27: error: 'endl' was not declared in this scope
   29 |           cout << "No" << endl;
      |                           ^~~~
a.cc:41:11: error: 'cout' was not declared in this scope
   41 |           cout << "No" << endl;
      |           ^~~~
a.cc:41:27: error: 'endl' was not declared in this scope
   41 |           cout << "No" << endl;
      |                           ^~~~
a.cc:50:11: error: 'cout' was not declared in this scope
   50 |           cout << "No" << endl;
      |           ^~~~
a.cc:50:27: error: 'endl' was not declared in this scope
   50 |           cout << "No" << endl;
      |                           ^~~~
a.cc:62:11: error: 'cout' was not declared in this scope
   62 |           cout << "No" << endl;
      |           ^~~~
a.cc:62:27: error: 'endl' was not declared in this scope
   62 |           cout << "No" << endl;
      |                           ^~~~
a.cc:68:5: error: 'cout' was not declared in this scope
   68 |     cout << "Yes" << endl;
      |     ^~~~
a.cc:68:22: error: 'endl' was not declared in this scope
   68 |     cout << "Yes" << endl;
      |                      ^~~~
Language: C++

#include <iostream>
#include <string>
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];
  }
  string ans = "Yes";
  int nowX = 0;
  int nowY = 0; 
  for (int i=0; i < N; ++i) {
    int sumV = x[i] + y[i] - nowX - nowY;
    if (sumV<=t[i]) {
      if (sumV % 2 == t[i] % 2) {
        nowX = x[i];
        nowY = y[i];
      }
      else {
        ans = "No";
        break;
      }
    }
    else {
      ans = "No";
      break;
    }
  }
  cout << ans << "\n";
}
  
      
    

Compiler output:
a.cc: In function 'int main()':
a.cc:10:27: error: expected ')' before ';' token
   10 |   for (int i=0; i < N; ++i;) {
      |       ~                   ^
      |                           )
a.cc:10:28: error: expected primary-expression before ')' token
   10 |   for (int i=0; i < N; ++i;) {
      |                            ^
Language: C++

#include <iostream>
#include <vector>
#include <stdlib.h>
using namespace std;
int main(void){
  int N;
  cin >> N;
  vector<int>t(N),x(N),y(N);
  for(int i=0; i<N; ++i){
    cin >> t.at(i) >> x.at(i) >> y.at(i);
  }
  int X=0,Y=0,T=0,can=0,dt,dx,dy;
  for(int i=0; i<N; ++i){
    dt=t.at(i)-T;
    dx=x.at(i)-X;
    dy=y.at(i)-Y;
    if(dt >= abs(dx)+abs(dy) && dt%2==(abs(dx)+abs(dy))%2){
      can = 1;
    }
    else {
      can = 0;
      break;
    }
    T+=dt;
    X+=dx;
    Y+=dy;
  }
  if(can) cout << "YES" << endl;
  else cout << "NO" << endl;
  return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:30:12: error: expected '}' at end of input
   30 |   return 0;
      |            ^
a.cc:5:15: note: to match this '{'
    5 | int main(void){
      |               ^
Language: Java

import java.util.*;
public class Main{
	public static void main(String[] args){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int t = 0;
        int x = 0;
        int y = 0;

        for(int i=0; i<n; i++){
            int memo_t = sc.nextInt();
            int memo_x = sc.nextInt();
            int memo_y = sc.nextInt();

            int d = memot - t;
            int dist = Math.abs(memo_x - x) + Math.abs(memo_y -y);
            if((d < dist) || ((dist - d)%2 != 0)){
                System.out.println("No");
                return;
            }
            t = memo_t;
            x = memo_x;
            y = memo_y;
        }
        System.out.println("Yes");
    }
}


Compiler output:
Main.java:15: error: cannot find symbol
            int d = memot - t;
                    ^
  symbol:   variable memot
  location: class Main
1 error
Language: C++

#include <vector>
#include <queue>
#include <algorithm>
#include <iostream>
#include <string>
#include <tuple>
#include <set>
#include <map>
#include <unordered_map>
#include <complex>
#include <iomanip>
#include <cmath>
using namespace std;
typedef long long ll;

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];
  if (t[0] != x[0] + y[0]) {
    cout << "No" << endl;
    return 0;
  }
  for (int i = 1; i < n; i++) {
    int diffX = abs(x[i] - x[i - 1]);
    int diffY = abs(y[i] - y[i - 1]);
    int diffT = t[i] - t[i - 1];
    if (diffT < diffX + diffY) {
      cout << "No" << endl;
      return 0;
    } else if (diffT == diffX + diffY) {
      cout << "Yes" << endl;
      return 0;
    }
    } else if ((diffX + diffY - 1) % 2 != 0) {
      cout << "No" << endl;
      return 0;
    }
  }
  cout << "Yes" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:7: error: 'else' without a previous 'if'
   37 |     } else if ((diffX + diffY - 1) % 2 != 0) {
      |       ^~~~
a.cc:37:17: error: 'diffX' was not declared in this scope
   37 |     } else if ((diffX + diffY - 1) % 2 != 0) {
      |                 ^~~~~
a.cc:37:25: error: 'diffY' was not declared in this scope
   37 |     } else if ((diffX + diffY - 1) % 2 != 0) {
      |                         ^~~~~
a.cc: At global scope:
a.cc:42:3: error: 'cout' does not name a type
   42 |   cout << "Yes" << endl;
      |   ^~~~
a.cc:43:1: error: expected declaration before '}' token
   43 | }
      | ^
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];
  bool can = true;
  for(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;  
  }
  if (can) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: 'i' was not declared in this scope
   11 |   for(i=0;i<N;i++){
      |       ^
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

char possible[100005][10];

int move(int t, int x2, int x1, int y2, int y1,int i,int N);

int main(void){
int x[100005],y[100005],N,t[100005],i;
  char str[100],*p;
  fgets(str,sizeof(str),stdin);
  N=atoi(str);
  t[0]=0,x[0]=0,y[0]=0;
  for(i=1;i<N+1;i++){
    fgets(str,sizeof(str),stdin);
    p=strtok(str," \n");
    t[i]=atoi(p);
    p=strtok(NULL," \n");
    x[i]=atoi(p);
    p=strtok(NULL," \n");
    y[i]=atoi(p);
  }
  
  
  for(i=0;i<N;i++){
    strcpy(possible[i],"No");
    move(t[i+1]-t[i],x[i+1],x[i],y[i+1],y[i],i,N);
    if(strcmp(possible[i],"No")==0){
    printf("No\n");
      return 0;
    }
  }
  printf("Yes\n");
  return 0;
}

int move(int t, int x2, int x1, int y2, int y1,int i,int N){

  if(x1>N || y1>N){
  return 0;
  }
  if(t==0 && (x2==x1 && y2==y1)){
    strcpy(possible[i],"Yes");
    return 0;
  }else if(t==0){
    return 0;
  }
  
  move(t-1,x2,x1+1,y2,y1,i);
  move(t-1,x2,x1-1,y2,y1,i);
  move(t-1,x2,x1,y2,y1+1,i);
  move(t-1,x2,x1,y2,y1-1,i);
  
  return 0;
  
}

Compiler output:
main.c: In function 'move':
main.c:50:3: error: too few arguments to function 'move'
   50 |   move(t-1,x2,x1+1,y2,y1,i);
      |   ^~~~
main.c:38:5: note: declared here
   38 | int move(int t, int x2, int x1, int y2, int y1,int i,int N){
      |     ^~~~
main.c:51:3: error: too few arguments to function 'move'
   51 |   move(t-1,x2,x1-1,y2,y1,i);
      |   ^~~~
main.c:38:5: note: declared here
   38 | int move(int t, int x2, int x1, int y2, int y1,int i,int N){
      |     ^~~~
main.c:52:3: error: too few arguments to function 'move'
   52 |   move(t-1,x2,x1,y2,y1+1,i);
      |   ^~~~
main.c:38:5: note: declared here
   38 | int move(int t, int x2, int x1, int y2, int y1,int i,int N){
      |     ^~~~
main.c:53:3: error: too few arguments to function 'move'
   53 |   move(t-1,x2,x1,y2,y1-1,i);
      |   ^~~~
main.c:38:5: note: declared here
   38 | int move(int t, int x2, int x1, int y2, int y1,int i,int N){
      |     ^~~~
Language: C

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

char possible[100005][10];

int move(int t, int x2, int x1, int y2, int y1,int i);

int main(void){
int x[100005],y[100005],N,t[100005],i;
  char str[100],*p;
  fgets(str,sizeof(str),stdin);
  N=atoi(str);
  t[0]=0,x[0]=0,y[0]=0;
  for(i=1;i<N+1;i++){
    fgets(str,sizeof(str),stdin);
    p=strtok(str," \n");
    t[i]=atoi(p);
    p=strtok(NULL," \n");
    x[i]=atoi(p);
    p=strtok(NULL," \n");
    y[i]=atoi(p);
  }
  
  
  for(i=0;i<N;i++){
    strcpy(possible[i],"No");
    move(t[i+1]-t[i],x[i+1],x[i],y[i+1],y[i],i);
    if(strcmp(possible[i],"No")==0){
    printf("No\n");
      return 0;
    }
  }
  printf("Yes\n");
  return 0;
}

int move(int t, int x2, int x1, int y2, int y1,int i){

  if(x1>N || y1>N){
  return 0;
  }
  if(t==0 && (x2==x1 && y2==y1)){
    strcpy(possible[i],"Yes");
    return 0;
  }else if(t==0){
    return 0;
  }
  
  move(t-1,x2,x1+1,y2,y1,i);
  move(t-1,x2,x1-1,y2,y1,i);
  move(t-1,x2,x1,y2,y1+1,i);
  move(t-1,x2,x1,y2,y1-1,i);
  
  return 0;
  
}

Compiler output:
main.c: In function 'move':
main.c:40:9: error: 'N' undeclared (first use in this function)
   40 |   if(x1>N || y1>N){
      |         ^
main.c:40:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <iostream>
using namespace std;
 
int main(){
  int N,t,x,y,pt=0,px=0,py=0;
  cin >> N;
  for(int i=0;i<N;i++){
    cin >> t >> x >> y;
    if(abs(x-px)+abs(y-py)>t-pt ||
       (abs(x-px)+abs(y-py)-(t-pt))%2!=0){
      cout << "No" << endl;
      return 0;
    }
    pt=t;px=x;py=y;
  }
  cout << "Yes" << endl;
  return 0;
}

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int x = 0, y = 0, t = 0, n;
  cin >> n;
  vector<vector<int>> point(n, vector<int>(3));
  for(int i=0;i<n;i++){
    for(int j=0;j<3;j++){
      cin >> point[i][j];
    }
  }
  for(int i=0;i<n;i++){
    distance = abs(x - point[i][1]) + abs(y - point[i][2]);
    if(
      (distance > (point[i][0] - t)) ||
      ((distance % 2) != ((point[i][0] - t) % 2))
     ){
      cout << "No" << endl;
      return 0;
    }
    t = point[i][0];
    x = point[i][1];
    y = point[i][2];
  }
  cout << "Yes" << endl;
}
      

Compiler output:
a.cc: In function 'int main()':
a.cc:13:58: error: overloaded function with no contextual type information
   13 |     distance = abs(x - point[i][1]) + abs(y - point[i][2]);
      |                                                          ^
a.cc:15:17: error: invalid operands of types '<unresolved overloaded function type>' and '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'} to binary 'operator>'
   15 |       (distance > (point[i][0] - t)) ||
      |        ~~~~~~~~~^~~~~~~~~~~~~~~~~~~
a.cc:16:18: error: invalid operands of types '<unresolved overloaded function type>' and 'int' to binary 'operator%'
   16 |       ((distance % 2) != ((point[i][0] - t) % 2))
      |         ~~~~~~~~~^~~
Language: C

#include<stdio.h>
#include<string.h>

int main(void) {
	int t1,t2,x1, x2, y1, y2,i,d,t;
	char A[4];
	scanf("%d", n);
	scanf("%d %d %d",t1 x1, y1)
	
	for (i = 0; i < n; i++) {
		scanf("%d %d %d", t2, x2, y2);
		d = abs(x2 - x1) + abs(y2 - y1);
		t = t2 - t1;
		if (t >= d && t % 2 == d % 2) {
			strcpy("Yes", A);
		}
		else {
			strcpy("No", A);
		}
		x1 = x2;
		y1 = y2;
	}
	printf("%s", A);
	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:21: error: 'n' undeclared (first use in this function)
    7 |         scanf("%d", n);
      |                     ^
main.c:7:21: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:28: error: expected ')' before 'x1'
    8 |         scanf("%d %d %d",t1 x1, y1)
      |              ~             ^~~
      |                            )
main.c:8:36: error: expected ';' before 'for'
    8 |         scanf("%d %d %d",t1 x1, y1)
      |                                    ^
      |                                    ;
    9 | 
   10 |         for (i = 0; i < n; i++) {
      |         ~~~
Language: Java

mport java.util.*;

import static java.lang.Math.abs;

public class Main {

    public static void main(String[] args) {

        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();

        int[] t = new int[N+1];
        int[] x = new int[N+1];
        int[] y = new int[N+1];


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

            t[i] = scan.nextInt();;
            x[i] = scan.nextInt();
            y[i] = scan.nextInt();
        }

        int times = 0;
        int min_times_for_dst  = 0;
        int rest_times = 0;
        for(int i = 0; i < N; i++){

            times     = t[i+1] -t[i];
            min_times_for_dst = abs(x[i+1]-x[i]) + abs(y[i+1]-y[i]);
            rest_times = times - min_times_for_dst;

            if(times < min_times_for_dst){
                System.out.println("No");
                return;
            }

            if(rest_times% 2 != 0){
                System.out.println("No");
                return;
            }
        }

        System.out.println("Yes");
    }
}


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.*;
^
Main.java:3: error: class, interface, enum, or record expected
import static java.lang.Math.abs;
^
2 errors
Language: C++

#include"bits/stdc++.h"
using namespace std;
int n,x[1111],y[1111],t[1111];

int main() {
	scafn("%d",&n);
	for(int i=1; i<=n; i++) scanf("%d%d%d",&t[i],&x[i],&y[i]);
	for(int i=1; i<=n; i++)
		if(x[i]+y[i]>t[i]||(t[i]-x[i]-y[i])%2!=0) { 
			printf("No");
			return 0;
		}
	printf("Yes");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'scafn' was not declared in this scope; did you mean 'scanf'?
    6 |         scafn("%d",&n);
      |         ^~~~~
      |         scanf
Language: C++

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

int main() {
  int n;
  cin>>n;
  vector<int> t(n+1,0);
  vector<int> x(n+1,0);
  vector<int> y(n+1,0);
  for(int i=1;i<=n;i+c)
    cin>>t.at(i)>>x.at(i)>>y.at(i);
  
  for(int i=0;i<n;i++){
    int tim=t.at(i+1)-t.at(i);
    int dis=abs(x.at(i+1)-x.at(i)+abs(y.at(i+1)-y.at(i));
    if(tim%2!=dis%2 || dis>tim){
      cout<<"No"<<endl;
      return 0;
    }
  }
  cout<<"Yes"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: 'c' was not declared in this scope
   10 |   for(int i=1;i<=n;i+c)
      |                      ^
a.cc:15:57: error: expected ')' before ';' token
   15 |     int dis=abs(x.at(i+1)-x.at(i)+abs(y.at(i+1)-y.at(i));
      |                ~                                        ^
      |                                                         )
Language: C++

#include <iostream>
using namespace std;
int main(void){
    int n,i;
    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(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;
    }
    if (can) cout << "Yes" << endl;
    else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: 'N' was not declared in this scope
    8 |     for (int i = 0; i < N; ++i) cin >> t[i+1] >> x[i+1] >> y[i+1];
      |                         ^
Language: C

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cmath>
#include<string>
#include<vector>
#include<list>
#include<set>
#include<map>
#include<queue>
#include<stack>
#include<cctype>
#include<climits>
#define ld long double
#define ll long long int
#define ull unsigned long long int
#define rep(i,n) for(i=0;i<n;i++)
#define fin(ans) cout<<(ans)<<endl
#define INF INT_MAX;
using namespace std;
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;}
const long long LLINF=1LL<<60;
//set<int>::iterator it;



int main(void){ios::sync_with_stdio(false);cin.tie(0);
//////////////////////////////////////////////////////
	
	bool ch=true;
	int n,i;
	cin>>n;
	int t[i+1],x[i+1],y[n+1];
	t[0]=x[0]=y[0]=0;
	rep(i,n)cin>>t[i+1]>>x[i+1]>>y[i+1];
	for(i=0;i<n;i++){
		ll dis=(ll)abs(x[i+1]-x[i])+(ll)abs(y[i+1]-y[i]),dt=t[i+1]-t[i];
		if(dis<=dt&&dis%2==dt%2);
		else{
			ch=false;
			break;
		}
	}
	if(ch)cout<<"Yes"<<endl;
	else cout<<"No"<<endl;
	
	
	
	
	
	
	
	
	
	
	
//////////////////////////////////////////////////////
	return 0;
}


Compiler output:
main.c:1:9: fatal error: iostream: No such file or directory
    1 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <numeric>
#include <vector>
#include <cmath>
#include <string>
#include <algorithm>
#include <set>
#include <map>
using namespace std;
using ll=long long;
#define rep(i,a,b) for(ll i=a;i<b;i++)
inline constexpr int intpow(ll a,ll b){
    if(b==0) return 1;
    ll ans=intpow(a,b/2);
    return ans*ans*(b&1?a:1);
}
int main(){
   int n;
   cin>>n;
   vector<int> t(n+1),x(n+1),y(n+!);
   t[0]=0,x[0]=0,y[0]=0;
   rep(i,1,n+1){
       cin>>t[i]>>x[i]>>y[i];
   }
   rep(i,0,n){
       if(abs(x[i+1]-x[i])+abs(y[i+1]-y[i])>t[i+1]-t[i] || (x[i]+y[i])%2 != t[i]%2){
           cout<<"No";
           return 0;
       }
   }
   if((x[n]+y[n])%2!=t[n]%2) {
       cout<<"No";
       return 0;
   }
   cout<<"Yes";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:35: error: expected primary-expression before ')' token
   20 |    vector<int> t(n+1),x(n+1),y(n+!);
      |                                   ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:18:25: error: lvalue required as left operand of assignment
   18 |       if(x[i]+y[i]<=t[i]&&x[i]+y[i]-t[i]%2=0){
Language: C++

import sys
n = int(input())
t, x, y = 0, 0, 0
for i in range(n):
    ti, xi, yi = map(int, input().split())
    if ti - t < abs(xi - x) + abs(yi - y) or not (abs(xi - x) + abs(yi - y) + ti - t )% 2 ==0:
        print("No")
        exit()
    else:
        t, x, y = ti, xi, yi
print("Yes")


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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


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

  int x[100010];
  int y[100010];
  int t[100010];

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

  bool can = true;

  for(int i==0;i<N;++i){
    int dist = x[i+1]-x[i] + y[i+1]-y[i];
    int delta_t = t[i+1]-t[i];

    if(dist>delta_t || dist%2 != delta_t%2){
      can = false;
      break;
    }
    
    
  }



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


}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:12: error: expected ';' before '==' token
   25 |   for(int i==0;i<N;++i){
      |            ^~
      |            ;
a.cc:25:12: error: expected primary-expression before '==' token
   25 |   for(int i==0;i<N;++i){
      |            ^~
a.cc:25:19: error: expected ')' before ';' token
   25 |   for(int i==0;i<N;++i){
      |      ~            ^
      |                   )
a.cc:25:22: error: 'i' was not declared in this scope
   25 |   for(int i==0;i<N;++i){
      |                      ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main () {
  int N;
  cin >> N;
  int t, x, y, tt, xx, yy, flag = 1, a;
  cin >> t >> x >> y;
  for(int i = 0; i < N; i++) {
    cin >> tt >> xx >> yy;
    a = abs(t - tt) - abs(x - xx) - abs(y - yy));
    if (a % 2 == 1 || a < 0) {
      flag = 0;
      break;
    }
    t = tt;
    x = xx;
    y = yy;
  }
  if (flag == 1) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:48: error: expected ';' before ')' token
   10 |     a = abs(t - tt) - abs(x - xx) - abs(y - yy));
      |                                                ^
      |                                                ;
Language: C++

#include<algorithm>
#include<iostream>
#include<functional>
#include<cmath>
#include<iomanip>
using namespace std;
int main(){
  long n,count=0;
  long t[110000];
  long x[110000];
  long y[110000];
  cin>>n;
  for(int i=0;i<n;i++){
    cin>>t[i]>>x[i]>>y[i];
    if(t[i]%2==1 and (x[i]+y[i])%2==0){
      count++;
      break;
    }
    if(t[i]%2==0 and (x[i]+y[i])%2==1){
      count++;
      break;
    }
    if(t[i]<(x[i]+y[i])){
      count++;
      break;
    }
    if(i>0){
      if(abs(x[i]+y[i]-x[i+1]-y[i+1])>(t[i+1]-t[i])){
        count++;
        break;
      }
    }
  }
  if(count>0)
    cout<<"No""endl;
  else
    cout<<"Yes"<<endl;
}


Compiler output:
a.cc:35:15: warning: missing terminating " character
   35 |     cout<<"No""endl;
      |               ^
a.cc:35:15: error: missing terminating " character
   35 |     cout<<"No""endl;
      |               ^~~~~~
a.cc: In function 'int main()':
a.cc:35:15: error: expected ';' before 'else'
   35 |     cout<<"No""endl;
      |               ^
      |               ;
   36 |   else
      |   ~~~~
Language: C

#include<stdio.h>
#include<stdlib.h>

int main(){
		int n,i,txy[3][100001]={0},f=0;
		scanf("%d",&n);
		txy[0][0]=0;
		txy[0][1]=0;
		txy[0][2]=0;
		for(i=1;i<=n;i++){
				scanf("%d%d%d",&txy[i][0],&txy[i][1],&txy[i][2]);
				//if((txy[i][0]-txy[i-1][0])%2==(abs(txy[i][1]+txy[i][2]-txy[i-1][1]-txy[i-1][2])%2)&&(txy[i][0]-txy[i-1][0])-abs(txy[i][1]+txy[i][2]-txy[i-1][1]-txy[i-1][2])>=0);
				else f=1;
		}
		if(f==0)puts("Yes");
		else puts("No");
		return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:33: error: 'else' without a previous 'if'
   13 |                                 else f=1;
      |                                 ^~~~
Language: C++

#include <iostream>
#include <cmath>
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 check=0;
  for(int i=0;i<n;i++){
    if(t[i]%2!=(x[i]+y[i])%2)){
      check++;
    }
  }
  for(int i=0;i<n-1;i++){
    if(t[i+1]-t[i]<abs(x[i+1]-x[i])+abs(y[i+1]-y[i])){
      check++;
    }
  }
  if(check==0){
    cout << "Yes" << endl;
  }
  else{
    cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:30: error: expected primary-expression before ')' token
   14 |     if(t[i]%2!=(x[i]+y[i])%2)){
      |                              ^
Language: C++

import java.io.InputStream
import java.io.PrintStream
import java.util.*

class Arc089A(
    val input: InputStream,
    val output: PrintStream
) {
    data class Pos(val t: Int, val x: Int, val y: Int)

    /**
     * 指定した２つのポイント間で移動が可能か
     * 移動可能か?
     *
     * abs(x - x), abs(y - y) <= t
     * 偶数のときと奇数のときで移動できる座標に制約がある
     */
    fun calc(a: Pos, b: Pos): Boolean {
        // 移動距離が範囲内であれば基本的には問題ないが
        val dis = Math.abs(b.x - a.x) + Math.abs(b.y - a.y)
        val td = b.t - a.t
        if (dis > td) {
            return false
        }

        // 移動量が奇数の場合、同じ位置には戻ってこれない
        // もうちょっと一般化すると
        // x + y の偶数の場合、移動量が偶数なら x + y が偶数の位置にのみ移動できる
        // 奇数の場合も同様
        // x + y が偶数の場合、移動量が奇数なら x + y が奇数の位置にのみ移動できる
        if (dis % 2 != td % 2) {
            return false
        }

        return true
    }

    fun proc() {


        val sc = Scanner(input)
        val n = sc.nextInt()

        val posList = listOf(Pos(0, 0, 0)) +
                generateSequence {
                    Pos(
                        t = sc.nextInt(),
                        x = sc.nextInt(),
                        y = sc.nextInt()
                    )
                }.take(n).toList()

        var i = 0
        while (i < posList.size - 1) {
            if (calc(posList[i], posList[i + 1])) {
                // ok
            } else {
                output.print("No")
                return
            }
            ++i
        }
        output.print("Yes")
        return
    }
}

fun main(args: Array<String>) {
    Arc089A(System.`in`, System.out).proc()
}


Compiler output:
a.cc:69:20: error: stray '`' in program
   69 |     Arc089A(System.`in`, System.out).proc()
      |                    ^
a.cc:69:23: error: stray '`' in program
   69 |     Arc089A(System.`in`, System.out).proc()
      |                       ^
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.InputStream
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:68:1: error: 'fun' does not name a type
   68 | fun main(args: Array<String>) {
      | ^~~
Language: C++

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

int main(){
    int n,t,x,y,tmp;
    int chk[3]={0,0,0};
    for (int i=0;i<n;i++) {
        scanf("%d %d %d",&t,&x,&y);
        tmp=abs(x-chk[1])+abs(y-chk[2]);
        if (tmp>t-chk[0] || (t-chk[0])%2) {
            printf("No\n");
            return 0;
        }
        chk[0]=t;
        chk[1]=X;
        chk[2]=y;
    }
    printf("Yes\n");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:16: error: 'X' was not declared in this scope
   15 |         chk[1]=X;
      |                ^
Language: C++

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

int main(){
    int n,t,x,y,tmp;
    int chk[3]={0,0,0};
    for (int i=0;i<n;i++) {
        scanf("%d %d %d",&t,&x,&y);
        tmp=abs(x-chk[1])+abs(y-chk[2]);
        if (tmp>t-chk[0] || (t-chk[0])%2) {
            printf("No\n");
            return 0;
        }
    }
    printf("Yes\n");
    return 0;
}


Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include<bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:8:9: error: 'scanf' was not declared in this scope
    8 |         scanf("%d %d %d",&t,&x,&y);
      |         ^~~~~
a.cc:9:13: error: 'abs' was not declared in this scope
    9 |         tmp=abs(x-chk[1])+abs(y-chk[2]);
      |             ^~~
a.cc:11:13: error: 'printf' was not declared in this scope
   11 |             printf("No\n");
      |             ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | include<bits/stdc++.h>
a.cc:15:5: error: 'printf' was not declared in this scope
   15 |     printf("Yes\n");
      |     ^~~~~~
a.cc:15:5: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
Language: C++

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

int main(){
    int n,t,x,y,tmp;
    int chk={0,0,0};
    for (int i=0;i<n;i++) {
        scanf("%d %d %d",&T,&x,&y);
        tmp=abs(x-chk[1])+abs(y-chk[2]);
        if (tmp>t-chk[0] || (t-chk)%2) {
            printf("No\n");
            return 0;
        }
    }
    printf("Yes\n");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: scalar object 'chk' requires one element in initializer
    6 |     int chk={0,0,0};
      |         ^~~
a.cc:8:27: error: 'T' was not declared in this scope
    8 |         scanf("%d %d %d",&T,&x,&y);
      |                           ^
Language: C++

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

int main(){
	int N;
	cin >> N;
	int t[N+1], x[N+1], y[N+1];
	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-1; i++){
		int dt = t[i+1]-t[i]
		int dist =abs(x[i+1]-x[i])+abs(y[i+1]-y[i]);
		if(dist > dt) 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:15:17: error: expected ',' or ';' before 'int'
   15 |                 int dist =abs(x[i+1]-x[i])+abs(y[i+1]-y[i]);
      |                 ^~~
a.cc:16:20: error: 'dist' was not declared in this scope; did you mean 'dt'?
   16 |                 if(dist > dt) can = false;
      |                    ^~~~
      |                    dt
a.cc:17:20: error: 'dist' was not declared in this scope; did you mean 'dt'?
   17 |                 if(dist%2 != dt%2) can = false;
      |                    ^~~~
      |                    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 preT = 0;
        int preX = 0;
        int preY = 0;

        for (int i=0; i<N; i++) {
            int postT = sc.nextInt();
            int postX = sc.nextInt();
            int postY = sc.nextInt();

            int dt = postT - preT;
            int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
            if ((dt < dist) || ((dist - dt) % 2 != 0)) {
                System.out.println("No");
                return;
            }
            preT = postT;
            preX = postX;
            preY = postY;
        }
        System.out.println("Yes");
    }
}


Compiler output:
Main.java:3: error: class main is public, should be declared in a file named main.java
public class main {
       ^
1 error
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 preT = 0;
        int preX = 0;
        int preY = 0;

        for (int i=0; i<N; i++) {
            int postT = sc.nextInt();
            int postX = sc.nextInt();
            int postY = sc.nextInt();

            int dt = postT - preT;
            int dist = Math.abs(postX - preX) + Math.abs(postY - preY);
            if ((dt < dist) || ((dist - dt) % 2 != 0)) {
                System.out.println("No");
                return;
            }

            preT = postT;
            preX = postX;
            preY = postY;
        }

        System.out.println("Yes");
    }

}


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

#include <stdlib.h>
#include <stdio.h>

int main()
{   
    int i,n,t[100002],x[100002],y[100002],flag=0;
    scanf("%d",&n);
        for(i=1;i<=n;i++){
            scanf("%d%d%d",&t[i],&x[i],&y[i]);
        }
        t[0]=0;x[0]=0;y[0]=0;
    for(i=1;i<=n;i++){
        if((abs(x[i]-x[i-1])+abs(y[i]-y[i-1]))%2==(t[i]-t[i-1])%2&&abs(x[i]-x[i-1])+abs(y[i]-y[i-1]))>=(t[i]-t[i-1])){
        }else{
            flag=1;
        }
    }
    if(flag==0)
    printf("Yes");
    else printf("No");

    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:13:102: error: expected expression before '>=' token
   13 |         if((abs(x[i]-x[i-1])+abs(y[i]-y[i-1]))%2==(t[i]-t[i-1])%2&&abs(x[i]-x[i-1])+abs(y[i]-y[i-1]))>=(t[i]-t[i-1])){
      |                                                                                                      ^~
main.c:13:117: error: expected statement before ')' token
   13 |         if((abs(x[i]-x[i-1])+abs(y[i]-y[i-1]))%2==(t[i]-t[i-1])%2&&abs(x[i]-x[i-1])+abs(y[i]-y[i-1]))>=(t[i]-t[i-1])){
      |                                                                                                                     ^
main.c:14:10: error: 'else' without a previous 'if'
   14 |         }else{
      |          ^~~~
Language: C++

#include<iostream>
using namespace std;
int main()
{
    int n,t,x,y;
    cin>>n;
    for(int i=1;i<=n;i++)
    {
        cin>>t>>x>>y;
        if(x+y>t)
        {
            cout<<"No"<<endl;
            return 0;
        }
        if((x+y)%2==0&&t%2==1)
        {
            cout<<"No"<<endl;
            return 0;
        }
        if((x+y)%2==1&&t%2==0)
        {
            cout<<"No"<<endl;
            return 0;
        }
    }
    cout<<"Yes"<<endl
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:22: error: expected ';' before 'return'
   26 |     cout<<"Yes"<<endl
      |                      ^
      |                      ;
   27 |     return 0;
      |     ~~~~~~
Language: C++

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

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:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include<cstdio>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:12:13: error: 'cout' was not declared in this scope
   12 |             cout<<"No";
      |             ^~~~
a.cc:12:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:13: error: 'cout' was not declared in this scope
   17 |             cout<<"No";
      |             ^~~~
a.cc:17:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:22:13: error: 'cout' was not declared in this scope
   22 |             cout<<"No";
      |             ^~~~
a.cc:22:13: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:26:5: error: 'cout' was not declared in this scope
   26 |     cout<<"Yes";
      |     ^~~~
a.cc:26:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>
#include <cmath>
#include <vector>

struct E {
  int t,x,y;
};
int main()
{
  int N;
  std::cin >> N;
  std::vector<E> v;
  for (int i=0; i<N; ++i) {
    int t, x, y;
    std::cin >> t >> x >> y;
    v.push_back(E{t,x,y});
  }
  for (int i=0; i<N; ++i) {
    if (t % 2 == 1 && x == 0 && y == 0) {
      std::cout << "No" << std::endl; return 0;
    }
  }
  for (int i=0; i<N-1; ++i) {
    for (int j=i+1; j<N; ++j) {
      if ((v[j].t - v[i].t) % 2 == 1 && v[j].x == v[i].x && v[j].y == v[i].y) {
        std::cout << "No" << std::endl; return 0;
      }
      if (std::abs(v[j].x - v[i].xx) + std::abs(v[j].y - v[i].y) > v[j].t - v[i].t)) {
        std::cout << "No" << std::endl; return 0;
      }
    }
  }
  std::cout << "Yes" << std::endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: 't' was not declared in this scope
   19 |     if (t % 2 == 1 && x == 0 && y == 0) {
      |         ^
a.cc:19:23: error: 'x' was not declared in this scope
   19 |     if (t % 2 == 1 && x == 0 && y == 0) {
      |                       ^
a.cc:19:33: error: 'y' was not declared in this scope
   19 |     if (t % 2 == 1 && x == 0 && y == 0) {
      |                                 ^
a.cc:28:34: error: '__gnu_cxx::__alloc_traits<std::allocator<E>, E>::value_type' {aka 'struct E'} has no member named 'xx'; did you mean 'x'?
   28 |       if (std::abs(v[j].x - v[i].xx) + std::abs(v[j].y - v[i].y) > v[j].t - v[i].t)) {
      |                                  ^~
      |                                  x
a.cc:28:84: error: expected primary-expression before ')' token
   28 |       if (std::abs(v[j].x - v[i].xx) + std::abs(v[j].y - v[i].y) > v[j].t - v[i].t)) {
      |                                                                                    ^
Language: C++

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


int main() {
  int N;
  scanf("%d", &N);
  
  int t[N], x[N], y[N];
  for (int i=0; i<N; i++){
  	scanf("%d%d%d", &t[i], &x[i], &y[i]);
  }
  
  bool u=true;
  for (int i=0; i<N;i++){
  	if (i==0) {
    	if (abs(x[0])+abs(y[0])>=t[0]) u=false;
    }
    else {
    	if (abs(x[i]-x[i-1])+abs(y[i]-y[i-1])>=t[i]-t[i-1]) u=false;
    }
  }
  
  bool s=true;
  for (int i=0; i<N && s;i++)
    if (t[i]%2 != x[i]+y[i]) s=false;
   }

	if (s&&u) cout << "Yes" << endl;
	else cout <<"No" <<endl;
}


Compiler output:
a.cc:29:9: error: expected unqualified-id before 'if'
   29 |         if (s&&u) cout << "Yes" << endl;
      |         ^~
a.cc:30:9: error: expected unqualified-id before 'else'
   30 |         else cout <<"No" <<endl;
      |         ^~~~
a.cc:31:1: error: expected declaration before '}' token
   31 | }
      | ^
Language: C++

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


int main() {
  int N;
  scanf("%d", &N);
  
  int t[N], x[N], y[N];
  for (int i=0; i<N; i++){
  	scanf("%d%d%d%", &t[i], &x[i], &y[i]);
  }
  
  bool u=true;
  for (int i=0; i<N;i++){
  	if (i==0) {
    	if (abs(x[0])+abs(y[0])>=t[0]) u=false;
    }
    else {
    	if (abs(x[i]-x[i-1])+abs(y[i]-y[i-1])>=t[i]-t[i-1]) u=false;
    }
  }
  
  bool s=true;
  for (int i=0; i<N && s;i++)
    if (t[i]%2 != x[i]+y[i]) s=false;
   }

	if (s&&u) cout << "Yes" << endl;
	else cout <<"No" <<endl;
}


Compiler output:
a.cc:29:9: error: expected unqualified-id before 'if'
   29 |         if (s&&u) cout << "Yes" << endl;
      |         ^~
a.cc:30:9: error: expected unqualified-id before 'else'
   30 |         else cout <<"No" <<endl;
      |         ^~~~
a.cc:31:1: error: expected declaration before '}' token
   31 | }
      | ^