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

using namespace std;

int N;

int main(void){
  cin >> N;
  int x[N],y[N];
  int t[N];

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

    if ( i > 0 ) {
      int diff = t[i] - t[i-1] -( x[i] - x[i-1] + y[i] - y[i-1]);
      //cout << diff << endl;
      if ( diff >= 0 && (diff+1)%2 == 1){
        continue;
      } else {
        cout << "No";
        return 0;
      }
    }
  }

  cout << "Yes";

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> N;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:19:9: error: 'cout' was not declared in this scope
   19 |         cout << "No";
      |         ^~~~
a.cc:19:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:25:3: error: 'cout' was not declared in this scope
   25 |   cout << "Yes";
      |   ^~~~
a.cc:25:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:20: error: expected ';' before '<=' token
    9 |   for (int i = 1, i <= n, i++)
      |                    ^~~
      |                    ;
a.cc:9:21: error: expected primary-expression before '<=' token
    9 |   for (int i = 1, i <= n, i++)
      |                     ^~
a.cc:9:30: error: expected ';' before ')' token
    9 |   for (int i = 1, i <= n, i++)
      |                              ^
      |                              ;
a.cc:11:20: error: expected ';' before '<' token
   11 |   for (int i = 0, i < n, i++) {
      |                    ^~
      |                    ;
a.cc:11:21: error: expected primary-expression before '<' token
   11 |   for (int i = 0, i < n, i++) {
      |                     ^
a.cc:11:29: error: expected ';' before ')' token
   11 |   for (int i = 0, i < n, i++) {
      |                             ^
      |                             ;
a.cc:12:7: error: incompatible types in assignment of 'int' to 'int [(n + 1)]'
   12 |     t = t[i] - t[i+1];
      |     ~~^~~~~~~~~~~~~~~
a.cc:13:5: error: 'd' was not declared in this scope
   13 |     d = abs(x[i] - x[i+1]) + abs(y[i] - y[i+1]);
      |     ^
a.cc:14:20: error: invalid operands of types 'int [(n + 1)]' and 'int' to binary 'operator%'
   14 |     if (t <= d || t%2 != d%2) {
      |                   ~^~
      |                   | |
      |                   | int
      |                   int [(n + 1)]
Language: C

#include<stdio.h>
#include<stdlib.h>
 
int main(){
 
  int N, i, a, b, c, t, h, v;
  int x[100001], y[100001], n[100001];
  x[0]=0; y[0]=0; n[0]=0;
  scanf(" %d", &N);
  for(i=0; i<N; i++){
    scanf(" %d %d %d", &c, &a, &b);
    n[i+1]=c; x[i+1]=a; y[i+1]=b;
  }

  for(i=0; i<N; i++){
    t=n[i+1];
    h=(x[i]>x[i+1]?x[i]-x[i+1]:x[i+1]-x[i]);
    v=(y[i]>y[i+1]?y[i]-y[i+1]:y[i+1]-y[i]);
    if(h+v>t){
      printf("No\n"); break;
    }else if(h+v==t){
      if(i==N-1)
        printf("Yes\n");
      else
        continue;
    }else{
      if(i==N-1){
         if((t-(h+v))%2)
           printf("No\n"); break;
         else
           printf("Yes\n"); break;
      }else{
         if((t-(h+v))%2)
           printf("No\n"); break;
         else
           continue;
      }
    }
  }

}


Compiler output:
main.c: In function 'main':
main.c:30:10: error: expected '}' before 'else'
   30 |          else
      |          ^~~~
main.c:32:8: error: 'else' without a previous 'if'
   32 |       }else{
      |        ^~~~
main.c:35:10: error: 'else' without a previous 'if'
   35 |          else
      |          ^~~~
main.c: At top level:
main.c:41:1: error: expected identifier or '(' before '}' token
   41 | }
      | ^
Language: C++

#include <iostream>
#include <queue>
#include <vector>

using namespace std;

int main(){
  int n,
  int s,g; //スタートとゴール
  vector <int> a(n),b(n),t(n);
  for(int i=0; i<n; i++){
    cin >> t[i] >> a[i] >> b[i];
  }

  for(int i=0; i<n; i++){
    g = a[i] + b[i];
    if( i == 0) s=0;
    else s = a[i-1] + b[i-1];

    if(g%2 == s%2) {
      if(t[i] % 2 != 0){cout <<"No" <<endl; reeturn 0;}
    }
    else{
      if(t[i] % 2 == 0){cout <<"No" <<endl; reeturn 0;}
    }
  }

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected unqualified-id before 'int'
    9 |   int s,g; //スタートとゴール
      |   ^~~
a.cc:16:5: error: 'g' was not declared in this scope
   16 |     g = a[i] + b[i];
      |     ^
a.cc:17:17: error: 's' was not declared in this scope
   17 |     if( i == 0) s=0;
      |                 ^
a.cc:18:10: error: 's' was not declared in this scope
   18 |     else s = a[i-1] + b[i-1];
      |          ^
a.cc:20:15: error: 's' was not declared in this scope
   20 |     if(g%2 == s%2) {
      |               ^
a.cc:21:45: error: 'reeturn' was not declared in this scope
   21 |       if(t[i] % 2 != 0){cout <<"No" <<endl; reeturn 0;}
      |                                             ^~~~~~~
a.cc:24:45: error: 'reeturn' was not declared in this scope
   24 |       if(t[i] % 2 == 0){cout <<"No" <<endl; reeturn 0;}
      |                                             ^~~~~~~
Language: Java

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int count = Integer.parseInt(sc.nextLine());
		int t = 0;
		int x = 0;
		int y = 0;
		boolean result = true;
		for(int n = 0 ; n < count ; n++) {
			int ti = sc.nextInt();
			int xi = sc.nextInt();
			int yi = sc.nextInt();
			int absX = Math.abs(xi -x);
			int absY = Math.abs(yi -y);
			int rest = (ti - t) - absX - absY;
			if(rest < 0 || rest%2 != 0) {
				result = false;
				break;
			} else {
				t = ti;
				x = xi;
				y = yi;
			}
		}
		if(result) {
			System.out.println("Yes");
		} else {
			System.out.println("No");
		}
	}
}

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

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

int main(){
    int n;
    int t,x,y;
    int _t=0,_x=0,_y=0;
    int dt,dx,dy;
    int dist;

    for(int i=1;i<=n;i++){
        //printf("%d",i);
        scanf("%d%d%d",t,x,y);
        dt=t-_t;
        dx=x-_x;
        dy=y-_y;

        dist=abs(dx)+abs(dy)

        if(dt<dist){
            printf("No");
            return 0;
        }
        if((dist%2)^(dt%2)){
            printf("No");
            return 0;
        }
        
    }
    printf("Yes");


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:29: error: expected ';' before 'if'
   20 |         dist=abs(dx)+abs(dy)
      |                             ^
      |                             ;
   21 | 
   22 |         if(dt<dist){
      |         ~~
Language: C++

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

int main(){
    int n;
    int t,x,y;
    int _t=0,_x=0,_y=0;
    int dt,dx,dy;
    int dist;

    for(int i=1;i<=n;i++){
        //printf("%d",i);
        scanf("%d%d%d",t,x,y);
        dt=t-_t;
        dx=x-_x;
        dy=y-_y;

        dist=abs(dx)+abs(dy)

        if(dt<dist{
            printf("No");
            return 0;
        }
        if((dist%2)^(dt%2)){
            printf("No");
            return 0;
        }
        
    }
    printf("Yes");


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:29: error: expected ';' before 'if'
   20 |         dist=abs(dx)+abs(dy)
      |                             ^
      |                             ;
   21 | 
   22 |         if(dt<dist{
      |         ~~
Language: C

#include<stdio.h>
#include<math.h>
int main(void)
{
	int PreX=0,PreY=0,PreT=0,step,t,x,y;
	scanf("%d",&step);
	while(step--)
	{
		scanf("% %d %d",&t,&x,&y);
		if((fabs(PreX-x)+fabs(PreY-y)>fabs(PreT-t))||(fabs(PreX-x)+fabs(PreY-y))%2!=fabs(PreT-t)%2)
		{
			printf("No");
			return 0;
		}
		PreX=x;PreY=y;PreT=t;
	}
	printf("Yes");
	return 0;
 } 

Compiler output:
main.c: In function 'main':
main.c:10:89: error: invalid operands to binary % (have 'double' and 'int')
   10 |                 if((fabs(PreX-x)+fabs(PreY-y)>fabs(PreT-t))||(fabs(PreX-x)+fabs(PreY-y))%2!=fabs(PreT-t)%2)
      |                                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~^
      |                                                                           |
      |                                                                           double
main.c:10:105: error: invalid operands to binary % (have 'double' and 'int')
   10 |                 if((fabs(PreX-x)+fabs(PreY-y)>fabs(PreT-t))||(fabs(PreX-x)+fabs(PreY-y))%2!=fabs(PreT-t)%2)
      |                                                                                             ~~~~~~~~~~~~^
      |                                                                                             |
      |                                                                                             double
Language: C

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

int main(){
	int n,i;
	int flag = 1;
	int t,x,y,t1,x1,y1;
	x1=y1=t1=0;
	int tmp;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d %d %d",&t,&x,&y); 
		tmp = x-x1+y-y1;
		t2=t-t1;
		if(tmp>t2||(tmp<t2&&(t2-tmp)%2==1))
		{
			flag = 0;
		} 
		t1=t,x1=x;y1=y;	
	}
	if(flag) printf("Yes\n");
	else printf("No\n");
} 


Compiler output:
main.c: In function 'main':
main.c:15:17: error: 't2' undeclared (first use in this function); did you mean 't1'?
   15 |                 t2=t-t1;
      |                 ^~
      |                 t1
main.c:15:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

int main(){
	int n,i;
	int flag = 1;
	int t,x,y,t1,x1,y1;
	x1=y1=t1=0;
	int tmp;
	scanf("%d",&n);
	for(i=0;i<n;i++){
		scanf("%d %d %d",&t,&x,&y); 
		tmp = x-x1+y-y1;
		t2=t-t1;
		if(tmp>t2||(tmp<t2&&(t2-tmp)%2==1))
		{
			flag = 0;
		} 
		t1=t,x1=x;y1=y;	
	}
	if(flag) printf("Yes\n");
	else printf("No\n");
} 


Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: 't2' was not declared in this scope; did you mean 't1'?
   15 |                 t2=t-t1;
      |                 ^~
      |                 t1
Language: C++

#include <bits/stdc++.h>
using namespace std;
int a[100000][3];
int main()
{
	int f=1;i, j, n;
	cin >> n;
	for(i=0;i<n;i++)
	{
		cin >> a[i][0]>>a[i][1]>>a[i][2];
		if((a[i][2]+a[i][1]>a[i][0])||a[i][0]%2!=(a[i][1]+a[i][2])%2)
		{
			f=0;
		}
	}
	if(f==1)
	{
		cout <<"Yes"<<endl;
		return 0;
	}
	else
	{
		cout <<"No"<<endl;
		return 0;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 'i' was not declared in this scope
    6 |         int f=1;i, j, n;
      |                 ^
a.cc:6:20: error: 'j' was not declared in this scope
    6 |         int f=1;i, j, n;
      |                    ^
a.cc:6:23: error: 'n' was not declared in this scope
    6 |         int f=1;i, j, n;
      |                       ^
Language: C++

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

int n;
int t,x,y;
int main()
{
	cin>>n;
  	for(int i=0;i<n;i++) 
	{
    	int tt,xx,yy;
		cin>>tt>>xx>>yy;
    	int d=abs(xx-x)+abs(yy-y);
    	if(tt-t<d||(tt-t)%2!=d%2) 
		{
    	    cout<< "No";
    	  	return 0;
    	} 
  	}
  cout<<"Yes";
}

}

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

#include<iostream>
using namespace std;
int main(){
    int n;
    cin>>n;
    int i,x_1,x_2,y_1,y_2,z_1,z_2;
    y_1=0;
    z_1=0;
    x_1=0;
    for(i=1;i<=n;i++){
        cin>>x_2>>y_2>>z_2;
        if(fabs(y_2-y_1)+fabs(z_2-z_1)<=(x_2-x_1) && (fabs(y_2-y_1)+fabs(z_2-z_1))%2==(t_2-t_1)%2) {
            x_1=x_2;
            y_1=y_2;
            z_1=z_2;
        }
        else{
            cout<<"No"<<endl;
            return 0;
        }
    }
    cout<<"Yes"<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:12: error: 'fabs' was not declared in this scope; did you mean 'labs'?
   12 |         if(fabs(y_2-y_1)+fabs(z_2-z_1)<=(x_2-x_1) && (fabs(y_2-y_1)+fabs(z_2-z_1))%2==(t_2-t_1)%2) {
      |            ^~~~
      |            labs
a.cc:12:88: error: 't_2' was not declared in this scope; did you mean 'z_2'?
   12 |         if(fabs(y_2-y_1)+fabs(z_2-z_1)<=(x_2-x_1) && (fabs(y_2-y_1)+fabs(z_2-z_1))%2==(t_2-t_1)%2) {
      |                                                                                        ^~~
      |                                                                                        z_2
a.cc:12:92: error: 't_1' was not declared in this scope; did you mean 'z_1'?
   12 |         if(fabs(y_2-y_1)+fabs(z_2-z_1)<=(x_2-x_1) && (fabs(y_2-y_1)+fabs(z_2-z_1))%2==(t_2-t_1)%2) {
      |                                                                                            ^~~
      |                                                                                            z_1
Language: C++

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

int main(){
  int n;
  int t[100005];
  int x[100005];
  int y[100005];
  cin >> n;
  for(int i = 0; i < n; i++) cin >> t[i] >> x[i] >> y[i];
  for(int i = 1; i < n; i++){
    int dist = abs(x[i] - x[i-1]) + abs(y[i] - y[i-1]);
    int tt = t[i] - t[i-1];
    if(d > t || (t % 2 != d % 2)){
      cout << "No" << endl;
      return 0;
    }
  }
  cout << "Yes" << endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: 'd' was not declared in this scope
   14 |     if(d > t || (t % 2 != d % 2)){
      |        ^
a.cc:14:20: error: invalid operands of types 'int [100005]' and 'int' to binary 'operator%'
   14 |     if(d > t || (t % 2 != d % 2)){
      |                  ~ ^ ~
      |                  |   |
      |                  |   int
      |                  int [100005]
Language: C++

#include <bits/stdc++.h>
using namespace std;
int a[100000][3];
int main()
{
	int f=1;i, j, n;
	cin >> n;
	for(i=0;i<n;i++)
	{
		cin >> a[i][0]>>a[i][1]>>a[i][2];
		if((a[i][2]+a[i][1]>a[i][0])||a[i][0]%2!=(a[i][1]+a[i][2])%2)
		f=0;
	}
	if(f==1)
	{
		cout <<"Yes"<<endl;
		return 0;
	}
	else
	{
		cout <<"No"<<endl;
		return 0;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 'i' was not declared in this scope
    6 |         int f=1;i, j, n;
      |                 ^
a.cc:6:20: error: 'j' was not declared in this scope
    6 |         int f=1;i, j, n;
      |                    ^
a.cc:6:23: error: 'n' was not declared in this scope
    6 |         int f=1;i, j, n;
      |                       ^
Language: C++

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

int main()
{
	int N,res=1;
	vector<pair<int, pair<int, int>>> points;
	cin >> N;
	points.resize(N+1);
	points[0].first = 0;
	points[0].second.first = 0;
	points[0].second.second = 0;

	for (int i = 1; i <=N; i++)
		cin >> points[i].first >> points[i].second.first >> points[i].second.second;

	for (int i = 1; i <= N; i++)
	{
		int dx, dy,dt;
		dx = points[i].second.first - points[i - 1].second.first;
		dy = points[i].second.second - points[i - 1].second.second;
		dt = points[i].first - points[i - 1].first;
		dt %= 4;
		
		if (((abs(dx) + abs(dy))%2) != (dt%2)&& dt>= (abs(dx) + abs(dy))
		{
			res = 0;
			break;
		}
	}
	if (res)
		cout << "Yes" << endl;
	else
		cout << "No" << endl;
	return 0;
	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:81: error: expected ')' before '{' token
   28 |                 if (((abs(dx) + abs(dy))%2) != (dt%2)&& dt>= (abs(dx) + abs(dy))
      |                    ~                                                            ^
      |                                                                                 )
   29 |                 {
      |                 ~                                                                
a.cc:33:9: error: expected primary-expression before '}' token
   33 |         }
      |         ^
Language: C++

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<vector>
#include<queue>
#include<stack>
#include<cmath>
using namespace std;
int n,time[100005];
int x[100005],y[100005];
int main(){
    scanf("%d",&n);
    for(int i=1;i<=n;i++){
    	scanf("%d%d%d",&time[i],&x[i],&y[i]);
	}
	for(int i=1;i<=n;i++){
		if((t-(abs(x[i]-x[i-1])+abs(y[i]-y[i-1])))<0||(t-(abs(x[i]-x[i-1])+abs(y[i]-y[i-1])))%2==1){
			printf("No\n");
			return 0;
		}
	}
	printf("Yes");
    return 0;
}


Compiler output:
a.cc:10:18: error: 'int time [100005]' redeclared as different kind of entity
   10 | int n,time[100005];
      |                  ^
In file included from /usr/include/pthread.h:23,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr.h:157,
                 from /usr/include/c++/14/ext/atomicity.h:35,
                 from /usr/include/c++/14/bits/ios_base.h:39,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/time.h:76:15: note: previous declaration 'time_t time(time_t*)'
   76 | extern time_t time (time_t *__timer) __THROW;
      |               ^~~~
a.cc: In function 'int main()':
a.cc:15:31: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   15 |         scanf("%d%d%d",&time[i],&x[i],&y[i]);
      |                               ^
a.cc:18:21: error: 't' was not declared in this scope
   18 |                 if((t-(abs(x[i]-x[i-1])+abs(y[i]-y[i-1])))<0||(t-(abs(x[i]-x[i-1])+abs(y[i]-y[i-1])))%2==1){
      |                     ^
Language: C++

#include <iostream>
using namespace std;
int a[100000] [3];
int main()
{
	int f=1, i,j,n;
	cin>>n;
	for (i=0; i<n; i++)
	{
		cin>>a[i][1]>>a[i][2];a[i][2]+a[i][1]
		if((a[i][2]+a[i][1]>a[i][1])||a[i][0]%2) f=0;
	}
	if (f==1) 
       cout<<"Yes";
	else
	  cout<<"No";
      return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:54: error: expected ';' before 'if'
   10 |                 cin>>a[i][1]>>a[i][2];a[i][2]+a[i][1]
      |                                                      ^
      |                                                      ;
   11 |                 if((a[i][2]+a[i][1]>a[i][1])||a[i][0]%2) f=0;
      |                 ~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
	int n;
	cin>>n;
	int t[n+1],x[n+1],y[n+1];
	for(i=0;i<n;i++)
	{
		cin>>t[i]>>x[i]>>y[i];
	}
	int k=0;
	for(int i=1;i<=n;i++){
		if(x[i]+y[i]<=t[i]&&(x[i]+y[i]-t[i])%2==0)
			k++;
	}
	if (k==n)
		cout<<"Yes";
	else
		cout<<"No";
	return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
int a[1000000][3]
int main()
{
	int f=1,i,j,n;
	
	cin>>n;
	
	for (int i=1;i<=n;i++)
	{
		cin>>a[i][0]>>a[i][1]>>a[1][2];
		if(a[i][2]+a[i][1]+a[i][0]) || a[i][0]%2!=(a[i][1]+a[i][2]%2) f=0;
	}
	
	if(f=1){
		cout<<"Yes";
	}
	else{
		cout<<"No";
	}
}

Compiler output:
a.cc:4:1: error: expected initializer before 'int'
    4 | int main()
      | ^~~
Language: C++

#include<iostream>
#include<cmath>
using namespace std;
int a[100000][3]
int main()
{
int n;
cin>>n;
int t1=0,x1=0;int f=1,i,j;
for(i=0;i<n;i++)
{
	cin>>a[i][1]>>a[i][2];
	if((a[i][2]+a[i][1]>a[i][0])||a[i][0]%2!=(a[i][1]+a[i][2])%2)f=0;
}
if(f==1)cout<<"Yes";
else cout<<"No";
return 0;
}

Compiler output:
a.cc:5:1: error: expected initializer before 'int'
    5 | int main()
      | ^~~
Language: C++

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

int n;

struct num{
	int t, x, y
}travel[n];

int main() 
{
	int q = 0;
	cin >> n;
	for ( int i = 0; i < n; i++ )
	{
		cin >> travel[i].t >> travel[i].x >> travel[i].y;
		if ( travel[i].x + travel[i].y > travel[i].t )
		{
			q++;
			break;
		}
	}
	if ( q == 0 )
		cout << "Yes" << endl;
	else
		cout << "No" << endl;
		
	return 0;
}

Compiler output:
a.cc:7:19: error: expected ';' at end of member declaration
    7 |         int t, x, y
      |                   ^
      |                    ;
a.cc:8:9: error: size of array 'travel' is not an integral constant-expression
    8 | }travel[n];
      |         ^
Language: C++

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
      int n;
      int t1=0,x1=0,y1=0,t2,x2,y2;
      cin>>n;
      bool f=true;
      for(int i=0;i<n&&f;i++){
        cin>>t2>>x2>>y2;
        d=abs(x2-x1)+abs(y2-y1);
        if(d<=t2-t1&&(t2-t1)%2==d%2)
          continue;
        else
          f=false;
        t1=t2;x1=x2;y1=y2;
      }
      cout<<(f?"Yes":"No")<<endl;
      return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'd' was not declared in this scope
   10 |         d=abs(x2-x1)+abs(y2-y1);
      |         ^
Language: C++

    #include<bits/stdc++.h>
    using namespace std;
    int main(){
      int n;
      int t1=0,x1=0,y1=0,t2,x2,y2;
      cin>>n;
      bool f=true;
      for(int i=0;i<n&&f;i++){
        cin>>t2>>x2>>y2;
        d=abs(x2-x1)+abs(y2-y1);
        if(d<=t2-t1&&(t2-t1)%2==d%2)
          continue;
        else
          f=false;
      }
      cout<<(f?"Yes":"No")<<endl;
      return 0;
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'd' was not declared in this scope
   10 |         d=abs(x2-x1)+abs(y2-y1);
      |         ^
Language: C++

#include<bits/stdc++>
using namespace std;
int main(){
  int n;
  int t1=0,x1=0,y1=0,t2,x2,y2;
  cin>>n;
  bool f=true;
  for(int i=0;i<n&&f;i++){
    cin>>t2>>x2>>y2;
    d=abs(x2-x1)+abs(y2-y1);
    if(d<=t2-t1&&(t2-t1)%2==d%2)
      continue;
    else
      f=false;
  }
  cout<<(f?"Yes":"No")<<endl;
  return 0;
}

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

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

int tt,tx,ty,x=0,y=0,t=0,f=0;
int n;

int main()
{
	cin >> n;
	for(int i=0;i<n;i++)
	{
		cin >> tt >> tx >> ty;
		if(((tt-t)-(abs(tx-x)+abs(ty-y)))%2==0&&abs(tx-x)+abs(ty-y)<=(tt-t)
		{
			f=1;
		}
		t=tt,x=tx,y=ty;
	}
	if(f) cout << "Yes";
	else cout << "No";
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:84: error: expected ';' before '{' token
   13 |                 if(((tt-t)-(abs(tx-x)+abs(ty-y)))%2==0&&abs(tx-x)+abs(ty-y)<=(tt-t)
      |                                                                                    ^
      |                                                                                    ;
   14 |                 {
      |                 ~                                                                   
a.cc:17:31: error: expected ')' before ';' token
   17 |                 t=tt,x=tx,y=ty;
      |                               ^
      |                               )
a.cc:13:19: note: to match this '('
   13 |                 if(((tt-t)-(abs(tx-x)+abs(ty-y)))%2==0&&abs(tx-x)+abs(ty-y)<=(tt-t)
      |                   ^
Language: C++

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

int t[150],x[150],y[150]
int n;

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


Compiler output:
a.cc:5:1: error: expected initializer before 'int'
    5 | int n;
      | ^~~
a.cc: In function 'int main()':
a.cc:9:16: error: 'n' was not declared in this scope; did you mean 'yn'?
    9 |         cin >> n;
      |                ^
      |                yn
a.cc:12:40: error: 'y' was not declared in this scope
   12 |                 cin >> t[i] >> x[i] >> y[i];
      |                                        ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int N;
vector<vector <int> > p;

int dx[4] = {1,0,-1,0};
int dy[4] = {0,1,0,-1};
bool isFind = false;
int safe(int i, int j) {
    return (0 <= i && i < 100000) && (0 <= j && j < 100000);
}
void f(int i, int j, int cnt, int index) {


    if (i < 0 || j < 0)
        return;
    if (cnt == p[index][0]) {
        if (i == p[index][1] && j == p[index][2])
            isFind = true;
        return;
    }

    int dist = (abs(i-p[index][1]) + abs(j-p[index][2]));
    int t = p[index][0] - cnt;
    if (dist > t)
        return;

    if (t % 2 != dist % 2)
        return;


    f(i+1, j, cnt+1, index);
    f(i, j+1, cnt+1, index);
    f(i-1, j, cnt+1, index);
    f(i, j-1, cnt+1, index);

}


//x , y, time, postion
void g(int i, int j, int cnt, int index) {
    queue <vector<int> > q;
    int t, x, y;
    q.push({i, j, cnt});
    while (!q.empty()) {
        x = q.front()[0];
        y = q.front()[1];
        t = q.front()[2];
        q.pop();

        int dist = (abs(x-p[index][1]) + abs(y-p[index][2]));
        int tt = p[index][0] - t;
        if (dist > tt)
            return;

        if (tt % 2 != dist % 2) {
            return;

        if (t == p[index][0]) {
            if (x == p[index][1] && y == p[index][2]) {
                isFind = true;
                break;
            }
        } else {

            q.push({x+1, y, t+1});
            q.push({x-1, y, t+1});
            q.push({x, y+1, t+1});
            q.push({x, y-1, t+1});
        }
    }
}

int main() {
    ios::sync_with_stdio(false);
    cin >> N;

    for (int i = 0; i < N; i++) {
        int a, b, c;
        cin >> a >> b >> c;
        p.push_back({a,b,c});
    }

    int x, y, time;
    x = y = time = 0;
    for (int i = 0; i < p.size(); i++) {
        isFind = false;
        int dist = (abs(x-p[i][1]) + abs(y-p[i][2]));
        int t = p[i][0] - time;
        if (dist <= t) {
            if (t % 2 == dist % 2)
                g(x, y, time, i);

            x = p[i][1];
            y = p[i][2];
            time = p[i][0];
        }
        else {
            cout << "No\n";
            return 0;
        }
        if (isFind == false) {
            cout << "No\n";
            return 0;
        }

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




Compiler output:
a.cc: In function 'void g(int, int, int, int)':
a.cc:74:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   74 | int main() {
      |         ^~
a.cc:74:9: note: remove parentheses to default-initialize a variable
   74 | int main() {
      |         ^~
      |         --
a.cc:74:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:74:12: error: a function-definition is not allowed here before '{' token
   74 | int main() {
      |            ^
a.cc:110:2: error: expected '}' at end of input
  110 | }
      |  ^
a.cc:41:42: note: to match this '{'
   41 | void g(int i, int j, int cnt, int index) {
      |                                          ^
Language: C++

package main

import (
	"fmt"
)

func main() {
	var n int
    var t [100001] int
	var x [100001] int
	var y [100001] int
	
	fmt.Scanf("%d", &n)
    for i := range n {
    	fmt.Scanf("%d%d%d", &t[i], &x[i], &y[i])
    }
	fmt.Println("No")
}

Compiler output:
a.cc:1:1: error: 'package' does not name a type
    1 | package main
      | ^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int N;
vector<vector <int> > p;
int dx[4] = {1,0,-1,0};
int dy[4] = {0,1,0,-1};
bool isFind = false;
int safe(int i, int j) {
    return (0 <= i && i < 100000) && (0 <= j && j < 100000);
}
void f(int i, int j, int cnt, int index) {
    
    if (i < 0 || j < 0)
        return;
    if (cnt == p[index][0]) {
        if (i == p[index][1] && j == p[index][2])
            isFind = true;
        return;
    }
    current i, j;
    if ((i + j) > (p[index][1] + p[index][2]))
        return;
    f(i+1, j, cnt+1, index);
    f(i-1, j, cnt+1, index);
    f(i, j+1, cnt+1, index);
    f(i, j-1, cnt+1, index);

}

//x , y, time, postion
void g(int i, int j, int cnt, int index) {
    queue <vector<int> > q;
    int t, x, y;
    q.push({i, j, cnt});

    while (!q.empty()) {
        x = q.front()[0];
        y = q.front()[1];
        t = q.front()[2];
        q.pop();

        if (t == p[index][0]) {
            if (x == p[index][1] && y == p[index][2]) {
                isFind = true;
                break;
            }
        } else {

            q.push({x+1, y, t+1});
            q.push({x-1, y, t+1});
            q.push({x, y+1, t+1});
            q.push({x, y-1, t+1});
        }
    }
}

int main() {
    ios::sync_with_stdio(false);
    cin >> N;

    for (int i = 0; i < N; i++) {
        int a, b, c;
        cin >> a >> b >> c;
        p.push_back({a,b,c});
    }

    int x, y, time;
    x = y = time = 0;
    for (int i = 0; i < p.size(); i++) {
        isFind = false;
        int dist = (abs(x-p[i][1]) + abs(y-p[i][2]));
        int t = p[i][0] - time;
        if (dist <= t) {
            f(x, y, time, i);
               
            x = p[i][1];
            y = p[i][2];
            time = p[i][0];
        }
        else {
            cout << "No\n";
            return 0;
        }
        if (isFind == false) {
            cout << "No\n";
            return 0;
        }

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




Compiler output:
a.cc: In function 'void f(int, int, int, int)':
a.cc:20:5: error: 'current' was not declared in this scope
   20 |     current i, j;
      |     ^~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int N;
vector<vector <int> > p;
int dx[4] = {1,0,-1,0};
int dy[4] = {0,1,0,-1};
bool isFind = false;
int safe(int i, int j) {
    return (0 <= i && i < 100000) && (0 <= j && j < 100000);
}
void f(int i, int j, int cnt, int index) {



    if (i < 0 || j < 0)
        return;
    if (cnt == p[index][0]) {
        if (i == p[index][1] && j == p[index][2])
            isFind = true;
        return;
    }
    int dist1 = (abs(i+1-p[index][1]);
    int dist2 = (abs(i-1-p[index][1]);
    int dist3 = abs(j+1-p[index][2]));
    int dist4 = abs(j-1-p[index][2]));

    int t = cnt+1 - p[i][0];

    if (dist1 < t)
        f(i+1, j, cnt+1, index);
    if (dist2 < t)
        f(i-1, j, cnt+1, index);
    if (dist3 < t)
        f(i, j+1, cnt+1, index);
    if (dist4 < t)
        f(i, j-1, cnt+1, index);

}

//x , y, time, postion
void g(int i, int j, int cnt, int index) {
    queue <vector<int> > q;
    int t, x, y;
    q.push({i, j, cnt});

    while (!q.empty()) {
        x = q.front()[0];
        y = q.front()[1];
        t = q.front()[2];
        q.pop();

        if (t == p[index][0]) {
            if (x == p[index][1] && y == p[index][2]) {
                isFind = true;
                break;
            }
        } else {

            q.push({x+1, y, t+1});
            q.push({x-1, y, t+1});
            q.push({x, y+1, t+1});
            q.push({x, y-1, t+1});
        }
    }
}

int main() {
    ios::sync_with_stdio(false);
    cin >> N;

    for (int i = 0; i < N; i++) {
        int a, b, c;
        cin >> a >> b >> c;
        p.push_back({a,b,c});
    }

    int x, y, time;
    x = y = time = 0;
    for (int i = 0; i < p.size(); i++) {
        isFind = false;
        int dist = (abs(x-p[i][1]) + abs(y-p[i][2]));
        int t = p[i][0] - time;
        if (dist <= t) {
            f(x, y, time, i);

            x = p[i][1];
            y = p[i][2];
            time = p[i][0];
        }
        else {
            cout << "No\n";
            return 0;
        }
        if (isFind == false) {
            cout << "No\n";
            return 0;
        }

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




Compiler output:
a.cc: In function 'void f(int, int, int, int)':
a.cc:22:38: error: expected ')' before ';' token
   22 |     int dist1 = (abs(i+1-p[index][1]);
      |                 ~                    ^
      |                                      )
a.cc:23:38: error: expected ')' before ';' token
   23 |     int dist2 = (abs(i-1-p[index][1]);
      |                 ~                    ^
      |                                      )
a.cc:24:37: error: expected ',' or ';' before ')' token
   24 |     int dist3 = abs(j+1-p[index][2]));
      |                                     ^
a.cc:25:37: error: expected ',' or ';' before ')' token
   25 |     int dist4 = abs(j-1-p[index][2]));
      |                                     ^
Language: C++

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

int main()
{
	int N;
	cin >> N;
	int t[N], x[N], y[N], dt[N], dx[N], dy[N];
	for (int i = 0; i < N; ++i){
		cin >> t[i] >> x[i] >> y[i];
		dx[i] = x[i] - x[i-1];
		dy[i] = y[i] - y[i-1];
		dt[i] = t[i] - t[i-1];
	}

	for (int i = 0; i < N; ++i)
	{
		if (!(abs(dx[i]) + abs(dy[i]) <= t[i] && (dx[i]) + dy[i] - t[i]) % 2 == 0))
		{
			cout << "No" << endl;
			return 0;
		}
	}
	cout << "Yes" << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:91: error: expected primary-expression before ')' token
   18 |                 if (!(abs(dx[i]) + abs(dy[i]) <= t[i] && (dx[i]) + dy[i] - t[i]) % 2 == 0))
      |                                                                                           ^
Language: C++


#include <bits/stdc++.h>
using namespace std;
int N;
vector<vector <int> > p;
int dx[4] = {1,0,-1,0};
int dy[4] = {0,1,0,-1};
bool isFind = false;
int safe(int i, int j) {
    return (0 <= i && i < 100000) && (0 <= j && j < 100000);
}
void f(int i, int j, int cnt, int index) {

    if (i > N || j > N)
        return;
    if (i < 0 || j < 0)
        return;
    if (cnt == p[index][0]) {
        if (i == p[index][1] && j == p[index][2])
            isFind = true;
        return;
    }
    /*
    for (int k = 0; k < 4; k++) {
        if (safe(i+dx[k], j + dy[k])) {
			f(i+dx[k], j+dy[k], cnt+1, index);
		}
    }
    */
    f(i+1, j, cnt+1, index);
	f(i-1, j, cnt+1, index);
	f(i, j+1, cnt+1, index);
	f(i, j-1, cnt+1, index);

}
int main() {
    ios::sync_with_stdio(false);
    cin >> N;

    for (int i = 0; i < N; i++) {
        int a, b, c;
        cin >> a >> b >> c;
        p.push_back({a,b,c});
    }

    int x, y, time;
    x = y = time = 0;
    for (int i = 0; i < p.size(); i++) {
        isFind = false;
        int dist = (abs(x-p[i][1]) + abs(y-p[i][2]));
        int t = p[i][0] - time;
        if (dist <= t)
            if (t % 2 == dist % 2)
                f(x, y, time, i);
        
            x = p[i][1];
            y = p[i][2];
            time = p[i][0];
        else {
            cout << "No\n";
            return 0;
        }
        if (isFind == false) {
            cout << "No\n";
            return 0;
        }
       
    }
    cout <<"Yes\n";
    return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:59:9: error: 'else' without a previous 'if'
   59 |         else {
      |         ^~~~
Language: C

#include <stdio.h>
#include <math.h>
#include <stdlib.h>
 
int main(void){
  int i, j, N;
  int count = N;
  int t[N], x[N], y[N];
  t[0]=x[0]=y[0]=0;
  scanf("%d", &N);
  for(i = 1; i <= N; i++){
    scanf("%d%d%d", &t[i] &x[i] &y[i]);
  }
  for(i = 0; i <= N; i++){
    int T = abs(t[i] - t[i - 1]);
    int xt = abs(x[i] - x[i - 1]);
    int yt = abs(y[i] - y[i - 1]);
    if((T >= (xt + yt)) && ((T - xt - yt) % 2 == 0))
      i++;
  }
  if(count = i)
    print("Yes");
  else
    print("NO");
}

Compiler output:
main.c: In function 'main':
main.c:12:27: error: invalid operands to binary & (have 'int *' and 'int')
   12 |     scanf("%d%d%d", &t[i] &x[i] &y[i]);
      |                     ~~~~~ ^~~~~
      |                     |       |
      |                     int *   int
main.c:22:5: error: implicit declaration of function 'print'; did you mean 'lrint'? [-Wimplicit-function-declaration]
   22 |     print("Yes");
      |     ^~~~~
      |     lrint
Language: C

#include <stdio.h>
#include <math.h>
#include <stdlib.h>
 
int main(void){
  int i, j, N;
  int count = N;
  int t[N], x[N], y[N];
  t[0]=x[0]=y[0]=0;
  scanf("%d", &N);
  for(i = 1; i <= N; i++){
    scanf("%d%d%d", &t[i] &x[i] &y[i]);
  }
  for(i = 0; i <= N; i++){
    int T = abs(t[i] - t[i - 1]);
    int xt = abs(x[i] - x[i - 1]);
    int yt = abs(y[i] - y[i - 1]);
    if((T >= (xt + yt)) && ((T - xt - yt) % 2 == 0))
      i++
  }
  if(count = i)
    print("Yes");
  else
    print("NO");
}

Compiler output:
main.c: In function 'main':
main.c:12:27: error: invalid operands to binary & (have 'int *' and 'int')
   12 |     scanf("%d%d%d", &t[i] &x[i] &y[i]);
      |                     ~~~~~ ^~~~~
      |                     |       |
      |                     int *   int
main.c:19:10: error: expected ';' before '}' token
   19 |       i++
      |          ^
      |          ;
   20 |   }
      |   ~       
main.c:22:5: error: implicit declaration of function 'print'; did you mean 'lrint'? [-Wimplicit-function-declaration]
   22 |     print("Yes");
      |     ^~~~~
      |     lrint
Language: C

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

int main(void){
  int i, j, N;
  int count = N;
  int t[N], x[N], y[N];
  t[0]=x[0]=y[0]=0;
  scanf("%d", N);
  for(i = 1; i <= N; i++){
    scanf("%d%d%d", &t[i] &x[i] &y[i]);
  }
  for(i = 0; i <= N; i++){
    int T = abs(t[i] - t[i - 1]);
    int xt = abs(x[i] - x[i - 1]);
    int yt = abs(y[i] - y[i - 1]);
    if((T >= (xt + yt)) && ((T - xt - yt) % 2 == 0))
      i++
  }
  if(count = i)
    print("Yes");
  else
    print("NO");
}

Compiler output:
main.c: In function 'main':
main.c:12:27: error: invalid operands to binary & (have 'int *' and 'int')
   12 |     scanf("%d%d%d", &t[i] &x[i] &y[i]);
      |                     ~~~~~ ^~~~~
      |                     |       |
      |                     int *   int
main.c:19:10: error: expected ';' before '}' token
   19 |       i++
      |          ^
      |          ;
   20 |   }
      |   ~       
main.c:22:5: error: implicit declaration of function 'print'; did you mean 'lrint'? [-Wimplicit-function-declaration]
   22 |     print("Yes");
      |     ^~~~~
      |     lrint
Language: C

#include <stdio.h>
#include <math.h>
#inclde <stdlib.h>
int main(void){
  int a, b, c, t, i, j, N;
  int count = N;
  int t[], x[], y[];
  t[0]=x[0]=y[0]=0;
  scanf("%d", N);
  for(i = 1; i <= N; i++){
    scanf("%d%d%d", &t[i] &x[i] &y[i]);
  }
  for(i = 0; i <= N; i++){
    int T = abs(t[i] - t[i - 1]);
    int xt = abs(x[i] - x[i - 1]);
    int yt = abs(y[i] - y[i - 1]);
    if(T >= (xt + yt))
      i++
  }
  if(count = i)
    print("Yes");
  else
    print("NO");
}

Compiler output:
main.c:3:2: error: invalid preprocessing directive #inclde; did you mean #include?
    3 | #inclde <stdlib.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:7:7: error: conflicting types for 't'; have 'int[]'
    7 |   int t[], x[], y[];
      |       ^
main.c:5:16: note: previous declaration of 't' with type 'int'
    5 |   int a, b, c, t, i, j, N;
      |                ^
main.c:7:12: error: array size missing in 'x'
    7 |   int t[], x[], y[];
      |            ^
main.c:7:17: error: array size missing in 'y'
    7 |   int t[], x[], y[];
      |                 ^
main.c:14:13: error: implicit declaration of function 'abs' [-Wimplicit-function-declaration]
   14 |     int T = abs(t[i] - t[i - 1]);
      |             ^~~
main.c:3:1: note: include '<stdlib.h>' or provide a declaration of 'abs'
    2 | #include <math.h>
  +++ |+#include <stdlib.h>
    3 | #inclde <stdlib.h>
main.c:18:10: error: expected ';' before '}' token
   18 |       i++
      |          ^
      |          ;
   19 |   }
      |   ~       
main.c:21:5: error: implicit declaration of function 'print'; did you mean 'lrint'? [-Wimplicit-function-declaration]
   21 |     print("Yes");
      |     ^~~~~
      |     lrint
Language: C++

#include <bits/stdc++.h>
using namespace std;
int N, nr, nc, nt;
bool flag = true;
int main(){
	scanf("%d", &N);
	for(int i = 0; i < N; i++){
		int t, r, c;
		scanf("%d %d %d", &t, &r, &c);
		int dist = abs(nr - r) + abs(nc - c);
		t = t - nt;
		if(dist > t || (dist)	flag = false;
		nt += t, nr = r, nc = c;
	}
	if(flag)	puts("Yes");
	else puts("No");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:40: error: expected ';' before 'flag'
   12 |                 if(dist > t || (dist)   flag = false;
      |                                      ^~~~~~~
      |                                        ;
a.cc:13:40: error: expected ')' before ';' token
   13 |                 nt += t, nr = r, nc = c;
      |                                        ^
      |                                        )
a.cc:12:19: note: to match this '('
   12 |                 if(dist > t || (dist)   flag = false;
      |                   ^
Language: C++

#include<string>
#include<string.h>
#include<map>
#include<set>
#include<vector>
#include<stdio.h>
#include<math.h>
#include<iostream>
#include<algorithm>
#include<queue>
using namespace std;
int main()
{
int a;
bool ok=false,isok=true;
cin>>a;
for(int i=0;i<a;i++)
{int x,y,z;
 cin>>x>>y>>z;
 for(int i=x;i>=y+z;i-=2)
 if(y+z==i)
 ok=true;
 if(ok==false)
 isok=false;}
if(isok==true || x==0 && y==0 && z==0)
cout<<"Yes";
else
cout<<"No";
system("pause");
return 0;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:25:18: error: 'x' was not declared in this scope
   25 | if(isok==true || x==0 && y==0 && z==0)
      |                  ^
a.cc:25:26: error: 'y' was not declared in this scope
   25 | if(isok==true || x==0 && y==0 && z==0)
      |                          ^
a.cc:25:34: error: 'z' was not declared in this scope
   25 | if(isok==true || x==0 && y==0 && z==0)
      |                                  ^
Language: C++

#include <iostream>
#include <cstdio>
#include <cstring>
#include <algorithm>
#include <queue>
#include <stack>
#include <cmath>
#define ll long long
#define out(a) printf("%d",a)
using namespace std;
int n;
int t[100050],x[100050],y[100050];
int dis,time;
bool flag;
int read()
{
	int s=0,t=1; char c;
	while (c<'0'||c>'9') {if (c=='-') t=-1; c=getchar();}
	while (c>='0'&&c<='9') {s=s*10+c-'0'; c=getchar();}
    return s*t;
}
int main()
{
	n=read(); flag=true;
	for (int i=1;i<=n;i++) {
	  t[i]=read(),x[i]=read(),y[i]=read();
      dis=x[i]-x[i-1]+y[i]-y[i-1]; time=t[i]-t[i-1];
      if (time<dis) flag=false;
      else {
	  time-=dis; 
	  if (time%2!=0) flag=false;
      }
      if (not flag) break;
  }
  if (flag) puts("Yes");
  else puts("No");
  return 0;
}


Compiler output:
a.cc:13:9: error: 'int time' redeclared as different kind of entity
   13 | int dis,time;
      |         ^~~~
In file included from /usr/include/pthread.h:23,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr.h:157,
                 from /usr/include/c++/14/ext/atomicity.h:35,
                 from /usr/include/c++/14/bits/ios_base.h:39,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/time.h:76:15: note: previous declaration 'time_t time(time_t*)'
   76 | extern time_t time (time_t *__timer) __THROW;
      |               ^~~~
a.cc: In function 'int main()':
a.cc:27:40: error: assignment of function 'time_t time(time_t*)'
   27 |       dis=x[i]-x[i-1]+y[i]-y[i-1]; time=t[i]-t[i-1];
      |                                    ~~~~^~~~~~~~~~~~
a.cc:28:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   28 |       if (time<dis) flag=false;
      |           ~~~~^~~~
a.cc:30:15: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   30 |           time-=dis;
      |           ~~~~^~~~~
a.cc:30:15: error: assignment of read-only location 'time'
a.cc:31:19: error: invalid operands of types 'time_t(time_t*) noexcept' {aka 'long int(long int*) noexcept'} and 'int' to binary 'operator%'
   31 |           if (time%2!=0) flag=false;
      |               ~~~~^~
      |               |    |
      |               |    int
      |               time_t(time_t*) noexcept {aka long int(long int*) noexcept}
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long LL;;
const int MaxN = 1e5 + 5;
 
map <int, int> cnt;
 
struct point {
	int x, y, t;
} mapp[MaxN];
 
int main() {
	int n;
	scanf("%d", &n);
	for(int i = 1; i <= n; i++) {
		int x, y, t;
		scanf("%d%d%d", &t, &x, &y);
		mapp[i].x = x, mapp[i].y = y, mapp[i].t = t;
	}
	mapp[0].x = 0, mapp[0].y = 0, mapp[0].t = 0;
	for(int i = 1; i <= n; i++) {
		int s, t;
		s = fabs(mapp[i].x - mapp[i - 1].x) + fabs(mapp[i].y - mapp[i - 1].y);
		t = fabs(mapp[i].t - mapp[i - 1].t);
		if(s > t || s % 2  != t % 2 ) {
			cout << "No" << endl;
			return 0;
		}
	}
	cout << "Yes" << endl;
    return 0;


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

#include <bits/stdc++.h>
using namespace std;
int N;
vector<vector <int> > p;
int dx[4] = {1,0,-1,0};
int dy[4] = {0,1,0,-1};
bool isFind = false;
int safe(int i, int j) {
    return (0 <= i && i < 100000) && (0 <= j && j < 100000);
}
void f(int i, int j, int cnt, int index) {
  
    if (cnt == p[index][0]) {
        if (i == p[index][1] && j == p[index][2])
            isFind = true;
        return;
    }
    for (int k = 0; k < 4; k++) {
        if (safe(i+dx[k], j + dy[k])) {
			f(i+dx[k], j+dy[k], cnt+1, index);
		}
    }
}
int main() {
    ios::sync_with_stdio(false);
    cin >> N;

    for (int i = 0; i < N; i++) {
        int a, b, c;
        cin >> a >> b >> c;
        p.push_back({a,b,c});
    }

    int x, y, time;
    x = y = time = 0;
    for (int i = 0; i < p.size(); i++) {
        isFind = false;
        if ((abs(a-p[i][1]) + abs(b-p[i][2])) <= abs(c-p[i][0]))
        f(x, y, time, i);
        if (isFind == false) {
            cout << "No\n";
            return 0;
        }
    }
    cout <<"Yes\n";
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:38:18: error: 'a' was not declared in this scope
   38 |         if ((abs(a-p[i][1]) + abs(b-p[i][2])) <= abs(c-p[i][0]))
      |                  ^
a.cc:38:35: error: 'b' was not declared in this scope
   38 |         if ((abs(a-p[i][1]) + abs(b-p[i][2])) <= abs(c-p[i][0]))
      |                                   ^
a.cc:38:54: error: 'c' was not declared in this scope
   38 |         if ((abs(a-p[i][1]) + abs(b-p[i][2])) <= abs(c-p[i][0]))
      |                                                      ^