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

#include<iostream>
#include <bits/stdc++.h>
using namespace std;
int main()
{
  int n ;
  cin >> n ;
  int t[n],x[n],y[n]
   t[0] = x[0] = y[0] = 0;
    for(int i=0;i<n; i++){
    cin >> t[i+1] >> x[i+1] >> y[i+1] ;
  }//for(i)
  
  bool can = true;
  for(int i=0;i<n;i++){
    int dt = t[i+1]-t[i];
    int dist = abs(x[i+1] - x[i]) + abs(y[i+1] - y[i]);
    if (dt < dist) can = false;
        if (dist % 2 != dt % 2) can = false;  // dist と dt の偶奇は一致する必要あり
  }
  
    if (can) cout << "Yes" << endl;
    else cout << "No" << endl;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:9:4: error: expected initializer before 't'
    9 |    t[0] = x[0] = y[0] = 0;
      |    ^
a.cc:11:32: error: 'y' was not declared in this scope
   11 |     cin >> t[i+1] >> x[i+1] >> y[i+1] ;
      |                                ^
a.cc:17:41: error: 'y' was not declared in this scope
   17 |     int dist = abs(x[i+1] - x[i]) + abs(y[i+1] - y[i]);
      |                                         ^
Language: C++

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

    map <int,pair<int,int>> d;

    rep(i,n){
        int tmp,x,y;
        cin >> tmp >> x >> y;
        d[tmp] = make_pair(x,y);
    }

    int pt,px,py;
    int first = 0;
    for(auto nx = d.begin(); nx != d.end(); ++nx){

        int ty = abs(pt - nx->first);
        int dx = abs(px - nx->second.first);
        int dy = abs(py - nx->second.second);
        if(ty < dx + dy){
            cout << "No" << endl;
            return 0;
        }else{

            if( (ty - (dx + dy )) % 2 == 0){
                continue;
            }else{
                cout << "No" << endl;
                return 0;
            }
        }

        pt = nx->first;
        px = nx->second.first;
        py = nx->second.second;
    }
    cout << "Yes" << endl;
    return 0;
}#include <bits/stdc++.h>
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
 
int main() {
    int n;
    cin >> n;

    map <int,pair<int,int>> d;

    rep(i,n){
        int tmp,x,y;
        cin >> tmp >> x >> y;
        d[tmp] = make_pair(x,y);
    }

    int pt,px,py;
    int first = 0;
    for(auto nx = d.begin(); nx != d.end(); ++nx){

        int ty = abs(pt - nx->first);
        int dx = abs(px - nx->second.first);
        int dy = abs(py - nx->second.second);
        if(ty < dx + dy){
            cout << "No" << endl;
            return 0;
        }else{

            if( (ty - (dx + dy )) % 2 == 0){
                continue;
            }else{
                cout << "No" << endl;
                return 0;
            }
        }

        pt = nx->first;
        px = nx->second.first;
        py = nx->second.second;
    }
    cout << "Yes" << endl;
    return 0;
}

Compiler output:
a.cc:43:2: error: stray '#' in program
   43 | }#include <bits/stdc++.h>
      |  ^
a.cc:43:3: error: 'include' does not name a type
   43 | }#include <bits/stdc++.h>
      |   ^~~~~~~
a.cc:47:5: error: redefinition of 'int main()'
   47 | int main() {
      |     ^~~~
a.cc:5:5: note: 'int main()' previously defined here
    5 | int main() {
      |     ^~~~
Language: C++

const check = (t,d_x,d_y)=>{
  const xy = d_x+d_y;
  if (t<xy) return false;
    return t%2 === xy%2;
};
const travel = (plan)=>{
  'use strict';
  const current = [0,0,0];

  for (let d of plan) {
    const abs_x = Math.abs(current[1] - d[1]);
    const abs_y = Math.abs(current[2] - d[2]);
    const time = d[0] - current[0];

    if(!check(time,abs_x,abs_y)){return false}
    else{current[0] = d[0],current[1] = d[1],current[2] = d[2]}
  }

  return true

};
function Main(input) {
  const plan = input.trim().split('\n').map(line=>line.split(' ').map(data=>parseInt(data))).slice(1);
  const result = travel(plan);
  console.log(result?'Yes':'No');
}
Main(require("fs").readFileSync("/dev/stdin", "utf8"));

Compiler output:
a.cc:7:3: warning: multi-character literal with 10 characters exceeds 'int' size of 4 bytes
    7 |   'use strict';
      |   ^~~~~~~~~~~~
a.cc:25:22: warning: multi-character character constant [-Wmultichar]
   25 |   console.log(result?'Yes':'No');
      |                      ^~~~~
a.cc:25:28: warning: multi-character character constant [-Wmultichar]
   25 |   console.log(result?'Yes':'No');
      |                            ^~~~
a.cc:1:7: error: 'check' does not name a type
    1 | const check = (t,d_x,d_y)=>{
      |       ^~~~~
a.cc:6:7: error: 'travel' does not name a type
    6 | const travel = (plan)=>{
      |       ^~~~~~
a.cc:22:1: error: 'function' does not name a type; did you mean 'union'?
   22 | function Main(input) {
      | ^~~~~~~~
      | union
a.cc:27:5: error: expected constructor, destructor, or type conversion before '(' token
   27 | Main(require("fs").readFileSync("/dev/stdin", "utf8"));
      |     ^
Language: C++

fun main(args: Array<String>) {
    abc086c()
}

private data class Txy(val time: Int, val x: Int, val y: Int)

fun abc086c() {
    val n = readLine()!!.toInt()
    val txy = listOf(Txy(0, 0, 0)) + (1..n).map { readLine()!!.split(" ").map { it.toInt() } }
        .map { Txy(it[0], it[1], it[2]) }

    val answer = (0 until n).all { i ->
        val curr = txy[i]
        val next = txy[i + 1]

        val move = Math.abs(next.x - curr.x) + Math.abs(next.y - curr.y)
        val moveCap = Math.abs(next.time - curr.time)
        val remainMove = moveCap - move
        remainMove >= 0 && remainMove % 2 == 0
    }.let { if (it) "Yes" else "No" }

    println(answer)
}


Compiler output:
a.cc:9:39: error: too many decimal points in number
    9 |     val txy = listOf(Txy(0, 0, 0)) + (1..n).map { readLine()!!.split(" ").map { it.toInt() } }
      |                                       ^~~~
a.cc:1:1: error: 'fun' does not name a type
    1 | fun main(args: Array<String>) {
      | ^~~
a.cc:5:1: error: expected unqualified-id before 'private'
    5 | private data class Txy(val time: Int, val x: Int, val y: Int)
      | ^~~~~~~
Language: C++

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

int main(){
  int N;
  vector<int> t(N+1), x(N+1), y(N+1);
  t.at(0) = 0;
  x.at(0) = 0;
  y.at(0) = 0;
  for(int i = 1; i < N; i++){
    cin >> t.at(i+1) >> x.at(i+1) >> y.at(i+1);
  }
  bool can = true;
  for(int i = 0; i < N; i++){
    int dt = abs(t.at(i + 1) - t.at(i));
    int dx = abs(x.at(i + 1) - x.at(i));
    int dy = abs(y.at(i + 1) - y.at(i));
    if(dx + dy > dt) can = false;
    if((dx + dy)%2 !== dt%2) can = false;
  }
  if(can) cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:22: error: expected primary-expression before '=' token
   19 |     if((dx + dy)%2 !== dt%2) can = false;
      |                      ^
Language: C++

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

//本当は間違いのコード(提出したら通ってしまった)
int main(){
  int N;
  int t[100010],x[100010],y[100010];
  bool checker = true;
  cin >> N;
  t[0]=x[0]=y[0]=0;
  for (int i = 1; i<=N ;++i)cin>>t[i]>>x[i]>>y[i];
  int b_t;
  int b_x;
  int b_y;
  for (int i = 1; i<=N ;++i){
    b_t = t[i]-x[i-1];
    //戻っても負にならないように絶対値をとろう
    b_x = abs(x[i]-x[i-1]);
    b_y = abs(y[i]-ｙ[i-1]);

    //cout<<"t="<<t[i]<<"のとき,x="<<x[i]<<",y="<<y[i]<<endl;
    if((b_t<(b_x+b_y)) || ((b_t&1)!=((b_x+b_y)&1))){
        cout<<"条件外です"<<endl;
        checker = false;
        break;
    }
  }
  if(checker)cout <<"Yes"<<endl;
  else cout<<"No"<<endl;

}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:20: error: '\U0000ff59' was not declared in this scope
   19 |     b_y = abs(y[i]-ｙ[i-1]);
      |                    ^~
Language: C++

using namespace std;

int main() {
    int n;
    int t[100000], x[100000], y[100000];
    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 ans = true;
    for(int i = 0; i < N; ++i) {
        int dt = t[i+1] - t[i];
        int dis = abs(x[i+1] - x[i]) + abs(y[i+1] - y[i]);
        if (dt < dis) ans = false;
        if (dis % 2 != dt % 2) ans = false;
        ｝

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



Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope
    6 |     cin>>n;
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:7:21: error: expected ';' before 'for'
    7 |     t[0]=x[0]=y[0]=0
      |                     ^
      |                     ;
    8 |     for(int i = 0;i<n;i++)cin>>t[i+1]>>x[i+1]>>y[i+1];
      |     ~~~              
a.cc:8:19: error: 'i' was not declared in this scope
    8 |     for(int i = 0;i<n;i++)cin>>t[i+1]>>x[i+1]>>y[i+1];
      |                   ^
a.cc:10:24: error: 'N' was not declared in this scope
   10 |     for(int i = 0; i < N; ++i) {
      |                        ^
a.cc:12:19: error: 'abs' was not declared in this scope; did you mean 'ans'?
   12 |         int dis = abs(x[i+1] - x[i]) + abs(y[i+1] - y[i]);
      |                   ^~~
      |                   ans
a.cc:15:9: error: '\U0000ff5d' was not declared in this scope
   15 |         ｝
      |         ^~
a.cc:18:5: error: 'else' without a previous 'if'
   18 |     else cout<<"No"<<endl;
      |     ^~~~
a.cc:18:10: error: 'cout' was not declared in this scope
   18 |     else cout<<"No"<<endl;
      |          ^~~~
a.cc:18:10: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:18:22: error: 'endl' was not declared in this scope
   18 |     else cout<<"No"<<endl;
      |                      ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:19:6: error: expected '}' at end of input
   19 |     }
      |      ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

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

int main()
{
	int N, t[110000], x[110000], y[110000], t[110000];
	bool can = true;

	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]; 
	}
		
	for (int i = 0; i < N; i++) {

		int dt = t[i + 1] - t[i];
		int dist = abs(x[i + 1] - x[i]) + abs(y[i + 1] - y[i]);

		if (dt < dist) can = false;
		if (dt % 2 != dist % 2) can = false;		
	}
	
	if (can) cout << "Yes" << endl;
	else cout << "No" << endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:49: error: redeclaration of 'int t [110000]'
    6 |         int N, t[110000], x[110000], y[110000], t[110000];
      |                                                 ^
a.cc:6:16: note: 'int t [110000]' previously declared here
    6 |         int N, t[110000], x[110000], y[110000], t[110000];
      |                ^
Language: C++

import sequtils, strutils, algorithm, math, sets, tables
when NimMajor == 0 and NimMinor <= 18: import future else: import sugar
proc scanf(fmt: cstring){.header: "<stdio.h>", varargs.}
proc scan(): int = scanf("%lld",addr result)
#template `MIN=`(a,b:untyped)=a=min(a,b)
#template `MAX=`(a,b:untyped)=a=max(a,b)
#template SEQ2D(y,x:int,p:untyped):untyped=newSeqWith(y,newSeqWith(x,p))

var N = scan()
var nt,nx,ny = 0
for i in 0..<N:
  let t,x,y = scan()
  let tugimade = t - nt
  let kyori = abs(x - nx)+abs(y - ny)
  if ((tugimade mod 2) == (kyori mod 2))and(tugimade >= kyori):
    (nt,nx,ny) = (t,x,y)
  else:
    echo "No"
    quit()

echo "Yes"

Compiler output:
a.cc:5:2: error: invalid preprocessing directive #template
    5 | #template `MIN=`(a,b:untyped)=a=min(a,b)
      |  ^~~~~~~~
a.cc:6:2: error: invalid preprocessing directive #template
    6 | #template `MAX=`(a,b:untyped)=a=max(a,b)
      |  ^~~~~~~~
a.cc:7:2: error: invalid preprocessing directive #template
    7 | #template SEQ2D(y,x:int,p:untyped):untyped=newSeqWith(y,newSeqWith(x,p))
      |  ^~~~~~~~
a.cc:11:10: error: too many decimal points in number
   11 | for i in 0..<N:
      |          ^~~
a.cc:1:1: error: 'import' does not name a type
    1 | import sequtils, strutils, algorithm, math, sets, tables
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:4:1: error: 'proc' does not name a type
    4 | proc scan(): int = scanf("%lld",addr result)
      | ^~~~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <set>
#include <algorithm>
#include <cmath>
using namespace std;

bool judge1d(int, int);

int main(){
    //cout << (-1 % 2 == 1 % 2) << endl;
    int n;
    cin >> n;

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

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

    bool success = false;
    for (int i = 0; i < n; i++){
      success = judge2d(x[i+1] - x[i], y[i+1] - y[i], t[i+1] - t[i])
      if(!success) break;
    }
  if (success) cout << "Yes" << endl;
  else cout << "No" << endl;
  return 0;
}

bool judge2d(int x, int y, int n){
  d = abs(x) + abs(y);
  if (d <= n && d % 2 == n % 2) return true;
  else return false;
}


Compiler output:
a.cc:27:5: error: expected unqualified-id before 'for'
   27 |     for (int i = 0; i < n; i++){
      |     ^~~
a.cc:27:21: error: 'i' does not name a type
   27 |     for (int i = 0; i < n; i++){
      |                     ^
a.cc:27:28: error: 'i' does not name a type
   27 |     for (int i = 0; i < n; i++){
      |                            ^
a.cc:31:3: error: expected unqualified-id before 'if'
   31 |   if (success) cout << "Yes" << endl;
      |   ^~
a.cc:32:3: error: expected unqualified-id before 'else'
   32 |   else cout << "No" << endl;
      |   ^~~~
a.cc:33:3: error: expected unqualified-id before 'return'
   33 |   return 0;
      |   ^~~~~~
a.cc:34:1: error: expected declaration before '}' token
   34 | }
      | ^
a.cc: In function 'bool judge2d(int, int, int)':
a.cc:37:3: error: 'd' was not declared in this scope
   37 |   d = abs(x) + abs(y);
      |   ^
a.cc:40:1: warning: control reaches end of non-void function [-Wreturn-type]
   40 | }
      | ^
Language: C++

#include <bits/stdc++.h>
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 (int i = 0; i < N; ++i) {
      int dt = t[i+1] - t[i];
      int dist = abs(x[i+1] - x[i]) + abs(y[i+1] - y[i]);
      if (dt < dist) can = false;
      if (dist % 2 != dt % 2) can = false;
  }

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

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

#include <iostream>
#include <algorithm>
#include <string> 
#include <math.h>
#include <set>
#include <vector>
#define rep(i,n) for(int i=0; i< (int)(n); i++)
using namespace std;


int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
	
	int n;
	cin >> n;

	int t[110000], x[110000], y[110000];
	t[0] = x[0] = y[0] = 0;
	rep(i,n) cin >> t[i+1] >> x[i+1] >> y[i+1];

	bool can = true;
	reo(i,n) {
		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" << "\n";
	else cout << "No" << "\n";


 } 


Compiler output:
a.cc: In function 'int main()':
a.cc:23:13: error: 'i' was not declared in this scope
   23 |         reo(i,n) {
      |             ^
a.cc:23:9: error: 'reo' was not declared in this scope; did you mean 'rep'?
   23 |         reo(i,n) {
      |         ^~~
      |         rep
Language: C++

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

typedef struct {
  int t;
  int x;
  int y;
} Entry;

bool dis_check(int distance, int time)
{
  if ((time + distance) & 1) {
    return false;
  }
  return true;
}

int main(){
  int N;
  vector<Entry> E;
  cin >> N;
  Entry entry;
  entry.t = 0;
  entry.x = 0;
  entry.y = 0;
  E.push_back(entry);
  for (int i=0;i<N;++i){
    cin >> entry.t >> entry.x >> entry.y;
    E.push_back(entry);
  }
  for (int i=0;i<N+1;++i){
    int distance = 
      (E[i+1].x > E[i].x ? 
       E[i+1].x - E[i].x : E[i].x - E[i+1].x)
      +
      (E[i+1].y > E[i].y ? 
       E[i+1].y - E[i].y : E[i].y - E[i+1].y);
    int time_span = t[i+1] - t[i];
    if (dis_check(distance, time_span) == false){
      cout << "No";
      return 0;
    }
  }
  cout << "Yes";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:39:21: error: 't' was not declared in this scope
   39 |     int time_span = t[i+1] - t[i];
      |                     ^
Language: C++

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

typedef struct {
  int t;
  int x;
  int y;
} Entry;

bool dis_check(int distance, int time)
{
  if ((time + distance) & 1) {
    return false;
  }
  return true;
}

int main(){
  int N, t, x, y;
  vector<Entry> E;
  cin >> N;
  Entry entry;
  entry.t = 0;
  entry.x = 0;
  entry.y = 0;
  E.push_back(entry(0,0,0));
  for (int i=0;i<N;++i){
    cin >> entry.t >> entry.x >> entry.y;
    E.push_back(entry);
  }
  for (int i=0;i<N+1;++i){
    int distance = 
      (E[i+1].x > E[i].x ? 
       E[i+1].x - E[i].x : E[i].x - E[i+1].x)
      +
      (E[i+1].y > E[i].y ? 
       E[i+1].y - E[i].y : E[i].y - E[i+1].y);
    int time_span = t[i+1] - t[i];
    if (dis_check(distance, time_span) == false){
      cout << "No";
      return 0;
    }
  }
  cout << "Yes";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:20: error: no match for call to '(Entry) (int, int, int)'
   27 |   E.push_back(entry(0,0,0));
      |               ~~~~~^~~~~~~
a.cc:39:22: error: invalid types 'int[int]' for array subscript
   39 |     int time_span = t[i+1] - t[i];
      |                      ^
a.cc:39:31: error: invalid types 'int[int]' for array subscript
   39 |     int time_span = t[i+1] - t[i];
      |                               ^
Language: C++

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

typedef struct {
  int t;
  int x;
  int y;
} entry;

bool dis_check(int distance, int time)
{
  if ((time + distance) & 1) {
    return false;
  }
  return true;
}

int main(){
  int N, t, x, y;
  vector<entry> E;
  cin >> N;
  E.push_back(entry(0,0,0));
  for (int i=0;i<N;++i){
    cin >> t >> x >> y;
    E.push_back(entry(t,x,y));
  }
  for (int i=0;i<N+1;++i){
    int distance = 
      (E[i+1].x > E[i].x ? 
       E[i+1].x - E[i].x : E[i].x - E[i+1].x)
      +
      (E[i+1].y > E[i].y ? 
       E[i+1].y - E[i].y : E[i].y - E[i+1].y);
    int time_span = t[i+1] - t[i];
    if (dis_check(distance, time_span) == false){
      cout << "No";
      return 0;
    }
  }
  cout << "Yes";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:26: error: no matching function for call to 'entry::entry(int, int, int)'
   23 |   E.push_back(entry(0,0,0));
      |                          ^
a.cc:9:3: note: candidate: 'entry::entry()'
    9 | } entry;
      |   ^~~~~
a.cc:9:3: note:   candidate expects 0 arguments, 3 provided
a.cc:9:3: note: candidate: 'constexpr entry::entry(const entry&)'
a.cc:9:3: note:   candidate expects 1 argument, 3 provided
a.cc:9:3: note: candidate: 'constexpr entry::entry(entry&&)'
a.cc:9:3: note:   candidate expects 1 argument, 3 provided
a.cc:26:28: error: no matching function for call to 'entry::entry(int&, int&, int&)'
   26 |     E.push_back(entry(t,x,y));
      |                            ^
a.cc:9:3: note: candidate: 'entry::entry()'
    9 | } entry;
      |   ^~~~~
a.cc:9:3: note:   candidate expects 0 arguments, 3 provided
a.cc:9:3: note: candidate: 'constexpr entry::entry(const entry&)'
a.cc:9:3: note:   candidate expects 1 argument, 3 provided
a.cc:9:3: note: candidate: 'constexpr entry::entry(entry&&)'
a.cc:9:3: note:   candidate expects 1 argument, 3 provided
a.cc:35:22: error: invalid types 'int[int]' for array subscript
   35 |     int time_span = t[i+1] - t[i];
      |                      ^
a.cc:35:31: error: invalid types 'int[int]' for array subscript
   35 |     int time_span = t[i+1] - t[i];
      |                               ^
Language: C++

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

struct {
  int t;
  int x;
  int y;
} entry;

bool dis_check(int distance, int time)
{
  if ((time + distance) & 1) {
    return false;
  }
  return true;
}

int main(){
  int N, t, x, y;
  vector<entry> E;
  cin >> N;
  E.push_back(entry(0,0,0));
  for (int i=0;i<N;++i){
    cin >> t >> x >> y;
    E.push_back(entry(t,x,y));
  }
  for (int i=0;i<N+1;++i){
    int distance = 
      (E[i+1].x > E[i].x ? 
       E[i+1].x - E[i].x : E[i].x - E[i+1].x)
      +
      (E[i+1].y > E[i].y ? 
       E[i+1].y - E[i].y : E[i].y - E[i+1].y);
    int time_span = t[i+1] - t[i];
    if (dis_check(distance, time_span) == false){
      cout << "No";
      return 0;
    }
  }
  cout << "Yes";
  return 0;
}

Compiler output:
a.cc:1:10: fatal error: iostrem: No such file or directory
    1 | #include <iostrem>
      |          ^~~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>

int comp(char *str, char *S, int n, int j){
  char str0[10];

  if((j-n+1)<0) return 0;
  strncpy(str0, &S[j - n + 1], n);
  str0[n] = '\0';
  //printf("%d:%s\n", n,str0);
  if (strncmp(str0, str, n) == 0) {
    //printf("%s\n", str0);
    return 0;
  } else {
    return 1;
  }
}

int main() {
  long N, t, x, y, n;
  long t0, x0, y0, i;
  int ck = 0;

  t0 = 0;
  x0 = 0;
  y0 = 0;

  scanf("%u", &N);

  for(n = 0;n < N;n++){
    scanf("%u %u %u", &t, &x, &y);

    if((t-t0)%2 == 0){
      if((x - x0) + (y - y0))%2 != 0){
          printf("NO");
          return 0;
      }
    }else{
      if ((x - x0) + (y - y0))%2 == 0){
          printf("NO");
          return 0;
      }
    }
    t0 = t;
    x0 = x;
    y0 = y;
  }

  printf("YES");
  return 0;
}

Compiler output:
main.c: In function 'comp':
main.c:7:3: error: implicit declaration of function 'strncpy' [-Wimplicit-function-declaration]
    7 |   strncpy(str0, &S[j - n + 1], n);
      |   ^~~~~~~
main.c:2:1: note: include '<string.h>' or provide a declaration of 'strncpy'
    1 | #include <stdio.h>
  +++ |+#include <string.h>
    2 | 
main.c:7:3: warning: incompatible implicit declaration of built-in function 'strncpy' [-Wbuiltin-declaration-mismatch]
    7 |   strncpy(str0, &S[j - n + 1], n);
      |   ^~~~~~~
main.c:7:3: note: include '<string.h>' or provide a declaration of 'strncpy'
main.c:10:7: error: implicit declaration of function 'strncmp' [-Wimplicit-function-declaration]
   10 |   if (strncmp(str0, str, n) == 0) {
      |       ^~~~~~~
main.c:10:7: note: include '<string.h>' or provide a declaration of 'strncmp'
main.c:10:26: warning: 'strncmp' argument 3 type is 'int' where 'long unsigned int' is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]
   10 |   if (strncmp(str0, str, n) == 0) {
      |                          ^
<built-in>: note: built-in 'strncmp' declared here
main.c: In function 'main':
main.c:33:30: error: expected expression before '%' token
   33 |       if((x - x0) + (y - y0))%2 != 0){
      |                              ^
main.c:33:37: error: expected statement before ')' token
   33 |       if((x - x0) + (y - y0))%2 != 0){
      |                                     ^
main.c:38:31: error: expected expression before '%' token
   38 |       if ((x - x0) + (y - y0))%2 == 0){
      |                               ^
main.c:38:38: error: expected statement before ')' token
   38 |       if ((x - x0) + (y - y0))%2 == 0){
      |                                      ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
  int N,x,y,b;
  x = y = b = 0;
  cin >> N;
  for(int i=0; i < N; i++)
  {
    int t,xt,yt;
    cin >> t >> xt >> yt;
    int dx = abs(xt - x);
    int dy = abs(xy - y);
    int dt = t - b;
    int d = dx + dy;
    int md = d % 2;
    int mt = dt % 2;
    if(md != mt)
    {
      cout << "No";
      return 0;
    }
    b = t;
    x = xt;
    y = yt;
  }
  cout << "Yes";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:18: error: 'xy' was not declared in this scope; did you mean 'dy'?
   14 |     int dy = abs(xy - y);
      |                  ^~
      |                  dy
Language: C

#include <iostream>
using namespace std;

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

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

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

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;

vector<int> Point(int t, int x, int y) {
    vector<int> point(3);
    point[0] = t;
    point[1] = x;
    point[2] = y;
    return point;
}

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

    int maxT = 0;
    vector< vector<int> > plans(100000, vector<int>(3));
    for (int i = 0; i < N; i++) {
        int t, x, y;
        cin >> t >> x >> y;
        plans[i] = Point(t, x, y);
        maxT = t;
    }

    queue< vector<int> > points;
    points.push(Point(0, 0, 0));
    
    int index = 0;
    bool isClear = false;
    while(!points.empty()) {
        vector<int> now = points.front();
        points.pop();

        if (now[0] == plans[index][0]) {
            if (now[1] == plans[index][1] && now[2] == plans[index][2]) {
                cout << "HIT!" << endl;
                debug(now);
                index++;
            }
            else {
                continue;
            }
        }

        if (index == N) {
            isClear = true;
            break;
        }

        if (now[0] < maxT) {
            points.push(Point(now[0] + 1, now[1] + 1, now[2]));
            points.push(Point(now[0] + 1, now[1], now[2] + 1));
            if (now[1] > 0) points.push(Point(now[0] + 1, now[1] - 1, now[2]));
            if (now[2] > 0) points.push(Point(now[0] + 1, now[1], now[2] - 1));
        }
    }

    if (isClear) cout << "YES" << endl;
    else cout << "NO" << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:38:17: error: 'debug' was not declared in this scope
   38 |                 debug(now);
      |                 ^~~~~
Language: C++

#include<iostream>
using namespace std;
int main(){




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

    if(abs(t[i+1]-t[i])<abs(x[i+1]-x[i])+abs(y[i+1]-y[i])) can=false;
      else
        {
          if(abs(t[i+1]-t[i])%2!=(abs(x[i+1]-x[i])+abs(y[i+1]-y[i]))%2) can=false;
        }
    }
  }

}


if(can) cout<<"YES"<<endl;
 else   cout<<"NO"<<endl;
}


Compiler output:
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
a.cc:29:1: error: expected unqualified-id before 'if'
   29 | if(can) cout<<"YES"<<endl;
      | ^~
a.cc:30:2: error: expected unqualified-id before 'else'
   30 |  else   cout<<"NO"<<endl;
      |  ^~~~
a.cc:31:1: error: expected declaration before '}' token
   31 | }
      | ^
Language: C++

#include<iostream>
using namespace std;
int main(){




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

    if((abs(t[i+1]-t[i])<abs(x[i+1]-x[i])+abs(y[i+1]-y[i])) can=false;
      else
        {
          if(abs(t[i+1]-t[i])%2!=(abs(x[i+1]-x[i])+abs(y[i+1]-y[i]))%2) can=false;
        }
    }
  }

}


if(can) cout<<"YES"<<endl;
 else   cout<<"NO"<<endl;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:18:60: error: expected ';' before 'can'
   18 |     if((abs(t[i+1]-t[i])<abs(x[i+1]-x[i])+abs(y[i+1]-y[i])) can=false;
      |                                                            ^~~~
      |                                                            ;
a.cc:19:7: error: expected primary-expression before 'else'
   19 |       else
      |       ^~~~
a.cc:18:71: error: expected ')' before 'else'
   18 |     if((abs(t[i+1]-t[i])<abs(x[i+1]-x[i])+abs(y[i+1]-y[i])) can=false;
      |       ~                                                               ^
      |                                                                       )
   19 |       else
      |       ~~~~                                                             
a.cc:23:5: error: expected primary-expression before '}' token
   23 |     }
      |     ^
a.cc: At global scope:
a.cc:26:1: error: expected declaration before '}' token
   26 | }
      | ^
a.cc:29:1: error: expected unqualified-id before 'if'
   29 | if(can) cout<<"YES"<<endl;
      | ^~
a.cc:30:2: error: expected unqualified-id before 'else'
   30 |  else   cout<<"NO"<<endl;
      |  ^~~~
a.cc:31:1: error: expected declaration before '}' token
   31 | }
      | ^
Language: C++


#include<iostream>
using namespace std;
int main(){




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

      if(abs(x[i+1]-x[i])+abs(y[i+1]-y[i])) can=false;
      else
        {
          if(abs(t[i+1]-t[i])%2!=(abs(x[i+1]-x[i])+abs(y[i+1]-y[i]))%2) can=false;
        }
    }
  }

}


if(can) cout<<"YES"<<endl;
 else   cout<<"NO"<<endl;
}



Compiler output:
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
a.cc:30:1: error: expected unqualified-id before 'if'
   30 | if(can) cout<<"YES"<<endl;
      | ^~
a.cc:31:2: error: expected unqualified-id before 'else'
   31 |  else   cout<<"NO"<<endl;
      |  ^~~~
a.cc:32:1: error: expected declaration before '}' token
   32 | }
      | ^
Language: C++


#include<iostream>
using namespace	std;
int main(){

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

  bool can false;


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

       }


     }


    }


   if(can)cout<<YES<<endl;
   else   cout<<NO<<endl;
    }


Compiler output:
a.cc: In function 'int main()':
a.cc:13:12: error: expected initializer before 'false'
   13 |   bool can false;
      |            ^~~~~
a.cc:17:66: error: 'can' was not declared in this scope; did you mean 'scanf'?
   17 |      {   if(abs(t[i+1]-t[i])<abs(x[i+1]-x[i])+abs(y[i+1]-y[i])){ can=false;
      |                                                                  ^~~
      |                                                                  scanf
a.cc:18:10: error: expected '}' before 'else'
   18 |          else
      |          ^~~~
a.cc:17:64: note: to match this '{'
   17 |      {   if(abs(t[i+1]-t[i])<abs(x[i+1]-x[i])+abs(y[i+1]-y[i])){ can=false;
      |                                                                ^
a.cc:19:75: error: 'can' was not declared in this scope; did you mean 'scanf'?
   19 |            {if(abs(t[i+1]-t[i])%2==(abs(x[i+1]-x[i])+abs(y[i+1]-y[i]))%2) can=false;
      |                                                                           ^~~
      |                                                                           scanf
a.cc: At global scope:
a.cc:31:4: error: expected unqualified-id before 'if'
   31 |    if(can)cout<<YES<<endl;
      |    ^~
a.cc:32:4: error: expected unqualified-id before 'else'
   32 |    else   cout<<NO<<endl;
      |    ^~~~
a.cc:33:5: error: expected declaration before '}' token
   33 |     }
      |     ^
Language: C++

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

int main(){
    int n;
    std::cin >> n;

    std::vector<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++){
        std::cin >> t[i] >> x[i] >> y[i];
    }

    bool check = true;
    for(int i = 0; i < n; i++){
        difference_of_time = t[i+1] - t[i];
        dist = std::abs(x[i+1] - x[i]) + std::abs(y[i+1] - y[i]);

        if(difference_of_time < dist){
            check = false;
            break;
        }

        if((difference_of_time - dist) % 2 != 0){
            check = false;
            break;
        }
    }

    if(check){
        std::cout << "Yes" << std::endl;
        return 0;
    }
    else{
        std::cout << "No" << std::endl;
        return 0;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: 'difference_of_time' was not declared in this scope
   18 |         difference_of_time = t[i+1] - t[i];
      |         ^~~~~~~~~~~~~~~~~~
a.cc:19:9: error: 'dist' was not declared in this scope
   19 |         dist = std::abs(x[i+1] - x[i]) + std::abs(y[i+1] - y[i]);
      |         ^~~~
Language: C++

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

int main(){
    int n;
    std::cin >> n;

    std::vector<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++){
        std::cin >> t[i] >> x[i] >> y[i];
    }

    book check = true;
    for(int i = 0; i < n; i++){
        difference_of_time = t[i+1] - t[i];
        dist = std::abs(x[i+1] - x[i]) + std::abs(y[i+1] - y[i]);

        if(difference_of_time < dist){
            check = false;
            break;
        }

        if((difference_of_time - dist) % 2 != 0){
            check = false;
            break;
        }
    }

    if(check){
        std::cout << "Yes" << std::endl;
        return 0;
    }
    else{
        std::cout << "No" << std::endl;
        return 0;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: 'book' was not declared in this scope; did you mean 'bool'?
   16 |     book check = true;
      |     ^~~~
      |     bool
a.cc:18:9: error: 'difference_of_time' was not declared in this scope
   18 |         difference_of_time = t[i+1] - t[i];
      |         ^~~~~~~~~~~~~~~~~~
a.cc:19:9: error: 'dist' was not declared in this scope
   19 |         dist = std::abs(x[i+1] - x[i]) + std::abs(y[i+1] - y[i]);
      |         ^~~~
a.cc:22:13: error: 'check' was not declared in this scope
   22 |             check = false;
      |             ^~~~~
a.cc:27:13: error: 'check' was not declared in this scope
   27 |             check = false;
      |             ^~~~~
a.cc:32:8: error: 'check' was not declared in this scope
   32 |     if(check){
      |        ^~~~~
Language: C++

    AtCoDeer the deer is going on a trip in a two-dimensional plane. In his plan, he will depart from point (0,0) at time 0, then for each i between 1 and N (inclusive), he will visit point (xi,yi) at time ti.

    If AtCoDeer is at point (x,y) at time t, he can be at one of the following points at time t+1: (x+1,y), (x−1,y), (x,y+1) and (x,y−1). Note that he cannot stay at his place. Determine whether he can carry out his plan.
Constraints

        1 ≤ N ≤ 105
        0 ≤ xi ≤ 105
        0 ≤ yi ≤ 105
        1 ≤ ti ≤ 105

Compiler output:
a.cc:3:110: error: extended character − is not valid in an identifier
    3 |     If AtCoDeer is at point (x,y) at time t, he can be at one of the following points at time t+1: (x+1,y), (x−1,y), (x,y+1) and (x,y−1). Note that he cannot stay at his place. Determine whether he can carry out his plan.
      |                                                                                                              ^
a.cc:3:133: error: extended character − is not valid in an identifier
    3 |     If AtCoDeer is at point (x,y) at time t, he can be at one of the following points at time t+1: (x+1,y), (x−1,y), (x,y+1) and (x,y−1). Note that he cannot stay at his place. Determine whether he can carry out his plan.
      |                                                                                                                                     ^
a.cc:6:11: error: extended character ≤ is not valid in an identifier
    6 |         1 ≤ N ≤ 105
      |           ^
a.cc:6:15: error: extended character ≤ is not valid in an identifier
    6 |         1 ≤ N ≤ 105
      |               ^
a.cc:7:11: error: extended character ≤ is not valid in an identifier
    7 |         0 ≤ xi ≤ 105
      |           ^
a.cc:7:16: error: extended character ≤ is not valid in an identifier
    7 |         0 ≤ xi ≤ 105
      |                ^
a.cc:8:11: error: extended character ≤ is not valid in an identifier
    8 |         0 ≤ yi ≤ 105
      |           ^
a.cc:8:16: error: extended character ≤ is not valid in an identifier
    8 |         0 ≤ yi ≤ 105
      |                ^
a.cc:9:11: error: extended character ≤ is not valid in an identifier
    9 |         1 ≤ ti ≤ 105
      |           ^
a.cc:9:16: error: extended character ≤ is not valid in an identifier
    9 |         1 ≤ ti ≤ 105
      |                ^
a.cc:1:5: error: 'AtCoDeer' does not name a type
    1 |     AtCoDeer the deer is going on a trip in a two-dimensional plane. In his plan, he will depart from point (0,0) at time 0, then for each i between 1 and N (inclusive), he will visit point (xi,yi) at time ti.
      |     ^~~~~~~~
Language: C++

#include<iostream>
#include<cmath>

int main() {
  int N;
  std::cin >> N;
  int t=0, x=0, y=0;
  flag = 0;
  for (int i=0; i<N; i++) {
    int temp_t, temp_x, temp_y;
    std::cin >> temp_t >> temp_x >> temp_y;
    int t_diff = temp_t - t;
    int x_diff = temp_x - x;
    int y_diff = temp_y - y;
    t = temp_t;
    x = temp_x;
    y = temp_y;
    if (t_diff%2 != (x_diff + y_diff) || t_diff < std::abs(x_diff)+std::abs(y_diff)) {
      flag = 1;
      break;
    }
  }
  if (flag) {
    std::cout << "No" << std::endl;
  }
  else {
    std::cout << "Yes" << std::endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:3: error: 'flag' was not declared in this scope
    8 |   flag = 0;
      |   ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<=(int)(n);i++)
#define fs first
#define sc second
typedef pair<ll, ll> l_l;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))


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

Compiler output:
a.cc: In function 'int main()':
a.cc:27:114: error: expected ';' before 'continue'
   27 |     if((t[i+1]-t[i]>=abs(x[i+1]-x[i])+abs(y[i+1]-y[i]))&&((t[i+1]-t[i])%2==(abs(x[i+1]-x[i])+abs(y[i+1]-y[i]))%2)continue;
      |                                                                                                                  ^~~~~~~~
      |                                                                                                                  ;
a.cc:28:5: error: expected primary-expression before 'else'
   28 |     else{
      |     ^~~~
a.cc:27:123: error: expected ')' before 'else'
   27 |     if((t[i+1]-t[i]>=abs(x[i+1]-x[i])+abs(y[i+1]-y[i]))&&((t[i+1]-t[i])%2==(abs(x[i+1]-x[i])+abs(y[i+1]-y[i]))%2)continue;
      |       ~                                                                                                                   ^
      |                                                                                                                           )
   28 |     else{
      |     ~~~~                                                                                                                   
a.cc:32:3: error: expected primary-expression before '}' token
   32 |   }
      |   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<=(int)(n);i++)
#define fs first
#define sc second
typedef pair<ll, ll> l_l;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))


int main(){
  int n;
  cin>>n;
  vector<int>t(n);
  vector<int>x(n);
  vector<int>y(n);
 
  t[0]=0;x[0]=0;y[0]=0;
  for(int i=1;i<=n;i++){
    cin>>t[i]>>x[i]>>y[i];
  } 
  bool f;
  rep(i,n){
    if((t[i+1]-t[i]>=abs(x[i+1]-x[i])+abs(y[i+1]-y[i]))&&((t[i+1]-t[i])%2==(abs(x[i+1]-x[i])+abs(y[i+1]-y[i]))%2)
        else {
      f=false;
      break;
    }
  }
  if(f)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:114: error: expected ')' before 'else'
   27 |     if((t[i+1]-t[i]>=abs(x[i+1]-x[i])+abs(y[i+1]-y[i]))&&((t[i+1]-t[i])%2==(abs(x[i+1]-x[i])+abs(y[i+1]-y[i]))%2)
      |       ~                                                                                                          ^
      |                                                                                                                  )
   28 |         else {
      |         ~~~~                                                                                                      
a.cc:32:3: error: expected primary-expression before '}' token
   32 |   }
      |   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<=(int)(n);i++)
#define fs first
#define sc second
typedef pair<ll, ll> l_l;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))


int main(){
  int n;
  cin>>n;
  vector<int>t(n),x(n),y(n);
  bool f;
  t[0]=0;x[0]=0;y[0]=0;
  for(int i=1;i<=n;i++){
    cin>>t[i]>>x[i]>>y[i];
  }
  rep(i,n){
    if((t[i+1]-t[i]>=abs(x[i+1]-x[i]+abs(y[i+1]-y[i]))&&((t[i+1]-t[i])%2==(abs(x[i+1]-x[i]+abs(y[i+1]-y[i]))%2)f=true;
    else {
      f=false;
      break;
    }
  }
  if(f)cout<<"Yes"<<endl;
  else cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:112: error: expected ')' before 'f'
   24 |     if((t[i+1]-t[i]>=abs(x[i+1]-x[i]+abs(y[i+1]-y[i]))&&((t[i+1]-t[i])%2==(abs(x[i+1]-x[i]+abs(y[i+1]-y[i]))%2)f=true;
      |                                                         ~                                                      ^
      |                                                                                                                )
a.cc:24:118: error: expected ')' before ';' token
   24 |     if((t[i+1]-t[i]>=abs(x[i+1]-x[i]+abs(y[i+1]-y[i]))&&((t[i+1]-t[i])%2==(abs(x[i+1]-x[i]+abs(y[i+1]-y[i]))%2)f=true;
      |        ~                                                                                                             ^
      |                                                                                                                      )
a.cc:24:118: error: expected ')' before ';' token
   24 |     if((t[i+1]-t[i]>=abs(x[i+1]-x[i]+abs(y[i+1]-y[i]))&&((t[i+1]-t[i])%2==(abs(x[i+1]-x[i]+abs(y[i+1]-y[i]))%2)f=true;
      |       ~                                                                                                              ^
      |                                                                                                                      )
Language: C++

int main()
{
  int N;
  scanf("%d",&N);
  int n;
  int flag = -1;
  for(n = 0;n < N;n++){
    int t,x,y;
    scanf("%d %d %d",&t,&x,&y);
    if( !( (0 == (t - (x + y) ) % 2) && (x + y <= t) ) ) flag = flag + 1;
  }
  if(-1 == flag) printf("Yes\n");
  else printf("No\n");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'scanf' was not declared in this scope
    4 |   scanf("%d",&N);
      |   ^~~~~
a.cc:12:18: error: 'printf' was not declared in this scope
   12 |   if(-1 == flag) printf("Yes\n");
      |                  ^~~~~~
a.cc:1:1: note: 'printf' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | int main()
a.cc:13:8: error: 'printf' was not declared in this scope
   13 |   else printf("No\n");
      |        ^~~~~~
a.cc:13:8: 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; cin.scan(N); N++;
    
    int t_prev=0;
    int x_prev=0;
    int y_prev=0;
    for(int i=1; i<N; ++i){
        cin.scan(t_now, x_now, y_now);
        
        int t = t_now - t_prev;
        int d = abs(x_now - x_prev) + abs(y_now - y_prev);
//        if(t%d!=0){
        if((t+d)&1 || t<d){
            cout << "No";
            return 0;
        }
        t_prev = t_now;
        x_prev = x_now;
        y_prev = y_now;
    }
    cout << "Yes";
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:16: error: 'std::istream' {aka 'class std::basic_istream<char>'} has no member named 'scan'
    5 |     int N; cin.scan(N); N++;
      |                ^~~~
a.cc:11:13: error: 'std::istream' {aka 'class std::basic_istream<char>'} has no member named 'scan'
   11 |         cin.scan(t_now, x_now, y_now);
      |             ^~~~
a.cc:11:18: error: 't_now' was not declared in this scope
   11 |         cin.scan(t_now, x_now, y_now);
      |                  ^~~~~
a.cc:11:25: error: 'x_now' was not declared in this scope
   11 |         cin.scan(t_now, x_now, y_now);
      |                         ^~~~~
a.cc:11:32: error: 'y_now' was not declared in this scope
   11 |         cin.scan(t_now, x_now, y_now);
      |                                ^~~~~
Language: C++

#include "bits/stdc++.h"

using namespace std;
typedef long long int ll;
typedef pair<ll, ll > pi;  
typedef pair<pair<ll, ll >, ll > pii;  
vector<ll > vec;
vector<vector<ll > > vec2;
ll MOD = 1000000007;
ll INF = 1<<28;

int main(){

    ll N; cin >> N;
    ll p_x = 0;
    ll p_y = 0;
    ll pt = 0;
    for(ll i = 0; i < N; i++){
        ll t, x, y; cin >> t >> x >> y;
        if(p_x == x && p_y == y){
            cout << "No" << endl;
            return 0;
        }
        if(!(abs(p_x - x) + abs(p_y - y) <= abs(t - p))){
            cout << "No" << endl;
            return 0;            
        }
        p_x = x;
        p_y = y;
        pt = t;

    }

    cout << "Yes" << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:53: error: 'p' was not declared in this scope
   24 |         if(!(abs(p_x - x) + abs(p_y - y) <= abs(t - p))){
      |                                                     ^
Language: C++

#include "bits/stdc++.h"

using namespace std;
typedef long long int ll;
typedef pair<ll, ll > pi;  
typedef pair<pair<ll, ll >, ll > pii;  
vector<ll > vec;
vector<vector<ll > > vec2;
ll MOD = 1000000007;
ll INF = 1<<28;

int main(){

    ll N; cin >> N;
    ll p_x = 0;
    ll p_y = 0;
    ll pt = 0;
    for(ll i = 0; i < N; i++){
        ll t, x, y; cin >> t >> x >> y;
        if(p_x == x && p_y == y){
            cout << "No" << endl;
            return 0;
        }
        if(!(abs(p_x - x) + abs(p_y - y) <= abs(pt-t)){
            cout << "No" << endl;
            return 0;            
        }
        p_x = x;
        p_y = y;
        pt = t;

    }

    cout << "Yes" << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:55: error: expected ';' before '{' token
   24 |         if(!(abs(p_x - x) + abs(p_y - y) <= abs(pt-t)){
      |                                                       ^
      |                                                       ;
a.cc:28:16: error: expected ')' before ';' token
   28 |         p_x = x;
      |                ^
      |                )
a.cc:24:11: note: to match this '('
   24 |         if(!(abs(p_x - x) + abs(p_y - y) <= abs(pt-t)){
      |           ^