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

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

int int_len(int n) {
  int s=0;
  while(n!=0) s++, n/=10;
  return s;
}

int int_sum(int n) {
  int m=0,s=0,a=n;
  while(a!=0) s++, a/=10;
  for(int i=s-1;i>=0;i--) m+=n/((int)pow(10,i))-(n/((int)pow(10,i+1)))*10;
  return m;
}






int gcd(int a,int b)
{
 
  int r, tmp;
 
  
 
  /* 自然数 a > b を確認・入替 */
  if(a<b){
    tmp = a;
    a = b;
    b = tmp;
  }
 
  /* ユークリッドの互除法 */
  r = a % b;
  while(r!=0){
    a = b;
    b = r;
    r = a % b;
  }
 
 
 
  return b;
}







int fac(int n){
  int m=1;
  while(n>=1) m*=n,n--;
  return m;
}

int vec_sum(vector<int> v){
  int n=0;
  for(int i=0;i<v.size();i++) n+=v[i];
  return n;
}
///////////////////////////
int main() {
  int n;
  vector<int> v(n),a(n),b(n);
  cin>>v[i]>>a[i]>>b[i];
  rep(i,n){
    if(v[i]%2!=(a[i]+b[i])%2){
      cout<<"No"<<endl;
      return 0;
    }
    if(abs(a[i])+abs(b[i])>v[i]){
      cout<<"No"<<endl;
      return 0;
    }
  }
  rep(i,n-1){
    if((v[i+1]-v[i])<abs(a[i+1]-a[i])+abs(b[i+1]-b[i])){
      cout<<"No"<<endl;
      return 0;
    }
  }
  cout<<"Yes"<<endl;
  
  
  
}
///////////////////////////

Compiler output:
a.cc: In function 'int main()':
a.cc:72:10: error: 'i' was not declared in this scope
   72 |   cin>>v[i]>>a[i]>>b[i];
      |          ^
Language: C

#include<stdio.h>
int main(){
  int n;
  scanf("%d",&n);
  int t,x,t;
  for(int i=0; i<n; i++){
    scanf("%d %d %d",&t,&x,&y);
    if(t%2==(x+y)%2 && t>=x+y){
      ;
    }else{
      puts("No");
      return 0;
    }
  }
  puts("Yes");
  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:5:11: error: redeclaration of 't' with no linkage
    5 |   int t,x,t;
      |           ^
main.c:5:7: note: previous declaration of 't' with type 'int'
    5 |   int t,x,t;
      |       ^
main.c:7:29: error: 'y' undeclared (first use in this function)
    7 |     scanf("%d %d %d",&t,&x,&y);
      |                             ^
main.c:7:29: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(){
  int n;
  scanf("%d",n);
  int t,x,t;
  for(int i=0; i<n; i++){
    scanf("%d %d %d",t,x,y);
    if(t%2==(x+y)%2 && t>=x+y){
      ;
    }else{
      puts("No");
      return 0;
    }
  }
  puts("Yes");
  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:5:11: error: redeclaration of 't' with no linkage
    5 |   int t,x,t;
      |           ^
main.c:5:7: note: previous declaration of 't' with type 'int'
    5 |   int t,x,t;
      |       ^
main.c:7:26: error: 'y' undeclared (first use in this function)
    7 |     scanf("%d %d %d",t,x,y);
      |                          ^
main.c:7:26: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>
#include <math.h>
using namespace std;
int main(){
    long long int N;
    cin >> N;
    long long int T[N+1],X[N+1],Y[N+1];
    vector<tuple<int,int,int>> A(N+1);
    A[0] = make_tuple(0,0,0);
    for(int i = 1;i < N+1;i++){
      cin >> T[i] >> X[i] >> Y[i];
      A[i] = make_tuple(T[i],X[i],Y[i]);
    }
    sort(A.begin(),A.end());
    bool frag = 1;
    int a = 0;
    for(int i = 0;i < N;i++){
      long long int t  get<0>(A[i+1])-get<0>(A[i]);
      long long int x = get<1>(A[i]),y = get<2>(A[i]);
      long long int x1 = get<1>(A[i+1]),y1 = get<2>(A[i+1]);
      long long int dis = abs(x1-x) + abs(y1-y);
      if(t >= dis && (t%2 == 0 && dis%2 == 0) || (t%2 == 1 && dis%2 == 1)){
        a++;
      }else{
        frag = 0;
      }
    }
    if(frag) cout << "Yes" << endl;
    else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:24: error: expected initializer before 'get'
   18 |       long long int t  get<0>(A[i+1])-get<0>(A[i]);
      |                        ^~~
a.cc:22:10: error: 't' was not declared in this scope
   22 |       if(t >= dis && (t%2 == 0 && dis%2 == 0) || (t%2 == 1 && dis%2 == 1)){
      |          ^
Language: C++

#!/bin/bash

try() {
  expected="$@"
  input=`cat -`

  actual=`echo $input | ./main`

  if [ "$actual" = "$expected" ]; then
    # echo "$input => $actual"
    echo "OK"
  else
    echo "==="
    echo "$input => $expected expected, but got $actual"
    exit 1
  fi
}

## test case 1
cat << EOF | try Yes
2
3 1 2
6 1 1
EOF

## test case 2
cat << EOF | try No
1
2 100 100
EOF

## test case 2
cat << EOF | try No
2
5 1 1
100 1 1
EOF



Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!/bin/bash
      |  ^
a.cc:5:9: error: stray '`' in program
    5 |   input=`cat -`
      |         ^
a.cc:5:15: error: stray '`' in program
    5 |   input=`cat -`
      |               ^
a.cc:7:10: error: stray '`' in program
    7 |   actual=`echo $input | ./main`
      |          ^
a.cc:7:31: error: stray '`' in program
    7 |   actual=`echo $input | ./main`
      |                               ^
a.cc:10:7: error: invalid preprocessing directive #echo
   10 |     # echo "$input => $actual"
      |       ^~~~
a.cc:19:1: error: stray '##' in program
   19 | ## test case 1
      | ^~
a.cc:26:1: error: stray '##' in program
   26 | ## test case 2
      | ^~
a.cc:32:1: error: stray '##' in program
   32 | ## test case 2
      | ^~
a.cc:3:1: error: expected unqualified-id before 'try'
    3 | try() {
      | ^~~
a.cc:19:4: error: 'test' does not name a type
   19 | ## test case 1
      |    ^~~~
Language: Java

import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;

public class Atcoder10 {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int N = Integer.parseInt(sc.next());

        List<List<Integer>> pointList = new ArrayList<>();
        List<Integer> firstPoint = new ArrayList<>();
        firstPoint.add(0);
        firstPoint.add(0);
        firstPoint.add(0);
        pointList.add(firstPoint);

        for (int i = 0; i < N; i++) {
            List<Integer> tmpPoint = new ArrayList<>();
            tmpPoint.add(Integer.parseInt(sc.next()));
            tmpPoint.add(Integer.parseInt(sc.next()));
            tmpPoint.add(Integer.parseInt(sc.next()));
            pointList.add(tmpPoint);
        }

        for (int i = 0; i < N; i++) {
            List<Integer> currentPoint = pointList.get(i);
            List<Integer> nextPoint = pointList.get(i + 1);
            int diff = Math.abs(currentPoint.get(1) - nextPoint.get(1) + currentPoint.get(2) - nextPoint.get(2));
            int diffTime = nextPoint.get(0) - currentPoint.get(0);

            if (!(diff <= diffTime && diff % 2 == diffTime % 2)) {
                System.out.print("No");
                return;
            }
        }
        System.out.print("Yes");
    }
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:86: error: expected primary-expression before ')' token
   10 |     if(!((n-nwt) >= abs(nwx-x)+abs(nwy-y)) && ((n-nwt)-(abs(nwx-x)+abs(nwy-y)))%2==0)){
      |                                                                                      ^
Language: C

#include<stdio.h>

int main(){
	
	int N,t[100010],x[100010],y[100010],i;
	
	scanf("%d",&N);
	for(i=0;i<N;i++){
		scanf("%d",&t[i]);
		scanf("%d",&x[i]);
		scanf("%d",&y[i]);
		
		if(t[i]-x[i]-y[i]<0||(t[i]-x[i]-y[i])%2!=0){
			printf("\nNo\n");
			return 0;
		}
	}
	
	printf("\nYes\n");
	
	return 0;


Compiler output:
main.c: In function 'main':
main.c:21:9: error: expected declaration or statement at end of input
   21 |         return 0;
      |         ^~~~~~
Language: C++

\#include <iostream>
using namespace std;

int main() {
  int N;
  int x[11000], y[11000], t[11000];
  cin >> N;
  t[0] = x[0] = y[0] = 0;
  for (int i=1; i <= N; i++)  cin >> t[i] >> x[i] >> y[i];
  
  bool can = true;
  for (int i; i < N; i++) {
    int time = t[i+1] - t[i];
    int dist = abs(x[i+1] - x[i]) + abs(y[i+1] - y[i]);
    if (time < dist || time%2 != dist%2) can = false;
  }
  
  if (can) cout << "Yes" << endl;
  else     cout << "No" << endl;
  
}

Compiler output:
a.cc:1:1: error: stray '\' in program
    1 | \#include <iostream>
      | ^
a.cc:1:2: error: stray '#' in program
    1 | \#include <iostream>
      |  ^
a.cc:1:3: error: 'include' does not name a type
    1 | \#include <iostream>
      |   ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin >> N;
      |   ^~~
a.cc:14:16: error: 'abs' was not declared in this scope
   14 |     int dist = abs(x[i+1] - x[i]) + abs(y[i+1] - y[i]);
      |                ^~~
a.cc:18:12: error: 'cout' was not declared in this scope
   18 |   if (can) cout << "Yes" << endl;
      |            ^~~~
a.cc:18:29: error: 'endl' was not declared in this scope
   18 |   if (can) cout << "Yes" << endl;
      |                             ^~~~
a.cc:19:12: error: 'cout' was not declared in this scope
   19 |   else     cout << "No" << endl;
      |            ^~~~
a.cc:19:28: error: 'endl' was not declared in this scope
   19 |   else     cout << "No" << endl;
      |                            ^~~~
Language: C

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

#include <algorithm>
#include <vector>
#include <cstdio>
#include <random>
#include <functional>


int main() {
  int N;
  cin >> N;
  
  typedef struct{
    int t;
    int x;
    int y;
  }plan;
  
  plan t[N-1];
  
  for(int i =0; i<N; i++){
    cin >> t[i].t >> t[i].x >> t[i].y;
  }
   
  bool YN;
 
for(int i=0; i<N-1; i++){
  int sub = t[i+1].t - t[i].t;
  YN = false;
  for(int a = 0; a<=sub; a++){
    for(int b=0; a+b<=sub; b++){
      
      for(int c=0; a+b+c<=sub; c++){
        int d = sub-a-b-c;
        if(t[i].x +a-b == t[i+1].x && t[i].y +c-d){
          YN = true;
        }
      }
      
    }
  }
  if(!YN){
    break;
  }
}
  
  if(YN){
    cout << "YES" << endl;
  }else{
    cout << "NO" << endl;
  }
  
  return 0;
}

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

#include<algorithm>//sort(all(変数),greater<型名>())で降順に,reverse()で逆に
#include<cmath>//切り上げceil(値)
#include<deque>
#include<iomanip>//setprecision(数字)
#include<iostream>
#include<list>
#include<map>
#include<numeric> //xとyの最大公約数は__gcd(x,y),xとyの最小公倍数は(x*y)/__gcd
#include<queue>
#include<set>
#include<stack>
#include<string>//変数.substr(どこから,何文字)で文字列ゲット
#include<vector>

#include<bits/stdc++.h>
#include<cstdio>
#include<cstdlib>
#include<tuple>
#include<utility>
#define rep0(i,n) for(ll i=0; i<n; i++)
#define rep1(i,n) for(ll i=1; i<=n; i++)
#define vll vector<ll>
#define vi vector<int>
#define all(x) (x).begin(),(x).end()
#define mod 1000000007
using ll = long long;
using namespace std;

int main(){
  ll n;  cin >> n;
  vll x(n+1),y(n+1),t(n+1);
  rep1(i,n){
    cin >> t[i] >> x[i] >> y[i];
  }
  t[0] = x[0] = y[0] = 0;

  bool flag = true;
  rep0(i,n){
    int t = t[i+1] - t[i];
    int d = abs(x[i+1]-x[i]) + abs(y[i+1]-y[i]);
    if(t < d or t%2 != d%2){
      flag = false;
      break;
    }
  }
  if(flag){
    cout << "Yes";
  }else{
    cout << "No";
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:39:14: error: invalid types 'int[ll {aka long long int}]' for array subscript
   39 |     int t = t[i+1] - t[i];
      |              ^
a.cc:39:23: error: invalid types 'int[ll {aka long long int}]' for array subscript
   39 |     int t = t[i+1] - t[i];
      |                       ^
Language: C++

#include<algorithm>//sort(all(変数),greater<型名>())で降順に,reverse()で逆に
#include<cmath>//切り上げceil(値)
#include<deque>
#include<iomanip>//setprecision(数字)
#include<iostream>
#include<list>
#include<map>
#include<numeric> //xとyの最大公約数は__gcd(x,y),xとyの最小公倍数は(x*y)/__gcd
#include<queue>
#include<set>
#include<stack>
#include<string>//変数.substr(どこから,何文字)で文字列ゲット
#include<vector>

#include<bits/stdc++.h>
#include<cstdio>
#include<cstdlib>
#include<tuple>
#include<utility>
#define rep0(i,n) for(ll i=0; i<n; i++)
#define rep1(i,n) for(ll i=1; i<=n; i++)
#define vll vector<ll>
#define vi vector<int>
#define all(x) (x).begin(),(x).end()
#define mod 1000000007
using ll = long long;
using namespace std;

int main(){
  ll n;  cin >> n;
  vll x(n+1),y(n+1),t(n+1);
  rep1(i,n){
    cin >> t[i] >> x[i] >> y[i];
  }
  t[0] = x[0] = y[0] = 0;

  bool flag = true;
  rep0(i,n){
    int t = t[i+1] - t[i];
    int d = abs(x[i+1]-x[i]) + abs(y[i+1]-y[i]);
    if(t < d or t%2 != d%2){
      flag = false;
      break;
    }
  }
  if(flag){
    cout << "Yes";
  }else{
    cout << "No";
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:39:14: error: invalid types 'int[ll {aka long long int}]' for array subscript
   39 |     int t = t[i+1] - t[i];
      |              ^
a.cc:39:23: error: invalid types 'int[ll {aka long long int}]' for array subscript
   39 |     int t = t[i+1] - t[i];
      |                       ^
Language: C++

#include<algorithm>//sort(all(変数),greater<型名>())で降順に,reverse()で逆に
#include<cmath>//切り上げceil(値)
#include<deque>
#include<iomanip>//setprecision(数字)
#include<iostream>
#include<list>
#include<map>
#include<numeric> //xとyの最大公約数は__gcd(x,y),xとyの最小公倍数は(x*y)/__gcd
#include<queue>
#include<set>
#include<stack>
#include<string>//変数.substr(どこから,何文字)で文字列ゲット
#include<vector>

#include<bits/stdc++.h>
#include<cstdio>
#include<cstdlib>
#include<tuple>
#include<utility>
#define rep0(i,n) for(ll i=0; i<n; i++)
#define rep1(i,n) for(ll i=1; i<=n; i++)
#define vll vector<ll>
#define vi vector<int>
#define all(x) (x).begin(),(x).end()
#define mod 1000000007
using ll = long long;
using namespace std;

int main(){
  ll n;  cin >> n;
  vll x(n+1),y(n+1),t(n+1);
  rep1(i,n){
    cin >> t[i] >> x[i] >> y[i];
  }
  t[0] = x[0] = y[0] = 0;

  bool flag = true;
  rep0(i,n){
    int t = t[i+1] - t[i];
    d = abs(x[i+1]-x[i]) + abs(y[i+1]-y[i]);
    if(t < d or t%2 != d%2){
      flag = false;
      break;
    }
  }
  if(flag){
    cout << "Yes";
  }else{
    cout << "No";
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:39:14: error: invalid types 'int[ll {aka long long int}]' for array subscript
   39 |     int t = t[i+1] - t[i];
      |              ^
a.cc:39:23: error: invalid types 'int[ll {aka long long int}]' for array subscript
   39 |     int t = t[i+1] - t[i];
      |                       ^
a.cc:40:5: error: 'd' was not declared in this scope
   40 |     d = abs(x[i+1]-x[i]) + abs(y[i+1]-y[i]);
      |     ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
  int N;
  int *t, *x, *y;

  cin >> N;

  t = (int*)malloc(sizeof(int)*(N+1));
  x = (int*)malloc(sizeof(int)*(N+1));
  y = (int*)malloc(sizeof(int)*(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];
  }

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

#include <iostream>
using namespace std;

int main()
{
  int N;
  int *t, *x, *y;

  cin >> N;

  t = (int*)malloc(sizeof(int)*(N+1));
  x = (int*)malloc(sizeof(int)*(N+1));
  y = (int*)malloc(sizeof(int)*(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];
  }

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



Compiler output:
a.cc:42:5: error: redefinition of 'int main()'
   42 | int main()
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main()
      |     ^~~~
Language: C++

import math
import sys

n = int(input())

X = 0
Y = 0
T = 0

for i in range(1, n):
	t,x,y = map(int, sys.stdin.readline().split())

	sum = abs(X-x)+abs(Y-y)
	if ( sum )<T-t and sum%2 == (T-t)%2:
		X = x
		Y = y
	else:
		print('No')

print('Yes')


Compiler output:
a.cc:18:23: warning: multi-character character constant [-Wmultichar]
   18 |                 print('No')
      |                       ^~~~
a.cc:20:7: warning: multi-character character constant [-Wmultichar]
   20 | print('Yes')
      |       ^~~~~
a.cc:1:1: error: 'import' does not name a type
    1 | import math
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <iostream>
using namespace std;

int main() {
  int N;
  int t[110000], x[110000], y[110000];
  cin >> N;
  t[0] = x[0] = y[0] = 0;  // 初期状態
  for(int i=0;i<N;++i) cin t[i+1]>>x[i+1]>>y[i+1];
  
  bool can = true;
  for(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" MM endl;
  
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:27: error: expected ';' before 't'
    9 |   for(int i=0;i<N;++i) cin t[i+1]>>x[i+1]>>y[i+1];
      |                           ^~
      |                           ;
a.cc:20:20: error: expected ';' before 'MM'
   20 |   else cout << "No" MM endl;
      |                    ^~~
      |                    ;
Language: C++

#include<iostream>

	using namespace std;

	int main(void)
	{
		int N;
		int t[110000], x[110000], y[110000];
		cin >> N;
		t[0] = x[0] = y[0] = 0; //first step, t=0
		for(int i=0; i<N; i++) cin >> t[i+1] >> x[i+1] >> y[i+1] //t>=1

		bool can = 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) can = false;
		if(dt%2 != dis%2) can = false;
		}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:73: error: expected ';' before 'bool'
   11 |                 for(int i=0; i<N; i++) cin >> t[i+1] >> x[i+1] >> y[i+1] //t>=1
      |                                                                         ^
      |                                                                         ;
   12 | 
   13 |                 bool can = true;
      |                 ~~~~                                                     
a.cc:19:30: error: 'can' was not declared in this scope; did you mean 'scanf'?
   19 |                 if(dt < dis) can = false;
      |                              ^~~
      |                              scanf
a.cc:20:35: error: 'can' was not declared in this scope; did you mean 'scanf'?
   20 |                 if(dt%2 != dis%2) can = false;
      |                                   ^~~
      |                                   scanf
a.cc:23:20: error: 'can' was not declared in this scope; did you mean 'scanf'?
   23 |                 if(can) cout << "Yes" << endl;
      |                    ^~~
      |                    scanf
Language: C++

use std::io::*;
use std::str::FromStr;

pub fn read<T: FromStr>() -> T {
    let stdin = stdin();
    let stdin = stdin.lock();
    let token: String = stdin
        .bytes()
        .map(|c| c.expect("failed to read char") as char)
        .skip_while(|c| c.is_whitespace())
        .take_while(|c| !c.is_whitespace())
        .collect();
    token.parse().ok().expect("failed to parse token")
}

fn main() {
    let n = read::<usize>();
    let mut txy = vec![(0, 0, 0); n + 1];

    for i in 1..n+1 {
        
        txy[i] = (read::<i64>(), read::<i64>(), read::<i64>());
    }

    for i in 1..n+1 {
        if ((txy[i].0 - txy[i-1].0).abs() >= (txy[i].1 - txy[i-1].1).abs() + (txy[i].2 - txy[i-1].2).abs())
        && ((txy[i].0 - txy[i-1].0).abs() % 2 == (txy[i].1 - txy[i-1].1).abs() + (txy[i].2 - txy[i-1].2).abs() % 2) {
            continue;
        } else {
            println!("No");
            return;
        }
    }
    println!("Yes")
}

Compiler output:
a.cc:20:14: error: too many decimal points in number
   20 |     for i in 1..n+1 {
      |              ^~~~
a.cc:25:14: error: too many decimal points in number
   25 |     for i in 1..n+1 {
      |              ^~~~
a.cc:1:1: error: 'use' does not name a type
    1 | use std::io::*;
      | ^~~
a.cc:2:1: error: 'use' does not name a type
    2 | use std::str::FromStr;
      | ^~~
a.cc:4:1: error: 'pub' does not name a type
    4 | pub fn read<T: FromStr>() -> T {
      | ^~~
a.cc:16:1: error: 'fn' does not name a type
   16 | fn main() {
      | ^~
Language: C++

#include <iostream>
#include <cstring>
#include <map>
#include <stack>
#include <vector>
#include <algorithm>
#include <cmath>

int main()
{
    int t; cin>>t;
    int che=1;
    while(t--)
    {
        int n,x,y; cin>>n>>x>>y;
        if (n<abs(x)+abs(y)) che=0;
    }
    if (che) cout << "Yes";
    else cout << "No";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   11 |     int t; cin>>t;
      |            ^~~
      |            std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:18:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |     if (che) cout << "Yes";
      |              ^~~~
      |              std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:19:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   19 |     else cout << "No";
      |          ^~~~
      |          std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
#define rep(i, n) for(( int)i = 0; i< n; i++);
#define repr(i,n) for( (int)i = n-1 ; i>=0 ;i--);
#define pb push_back
#define pi 3.141592653589793
#define sll signed long long int // -10^9 to 10^9
#define ll long long int// for 0 to 10^18
#define ull unsigned long long int // for 0 to 10^18
#define endl "\n"
#define FAST ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define all(x) x.begin(),x.end()
#define MOD 1000000007
template<typename T> T gcd(T a,T b){if(a==0) return b; return gcd(b%a,a);}
template<typename T> T power(T x,T y,ll m=MOD){T ans=1;while(y>0){if(y&1LL) ans=(ans*x)%m;y>>=1LL;x=(x*x)%m;}return ans%m;}
typedef vector<int> vi;
/* 
ll sum_ofGP_modM(ll a , ll n, ll mod)  //// (1 + A^1 +A^2 + A^3 + A^4 + -------+ A^N) % M  usually here n= Total terms in series-1
////and  if series is something for eg 3^2 + 3^4 here a= 9,r=9  our ans can be found out as 
// let a1= first term 3^2 just do ans = a1*sum_ofGP_modM(9 , N-1, ull mod)
	if(n == 0) return 1;
	if(n == 1) return (1 + a) % mod;
	ll res;
	if(n % 2)
		res = (a + 1) * GPSumWithMod((a*a) % mod , (n-1)/2);
	else{ res = (a + 1) * GPSumWithMod((a*a) % mod , n/2 - 1);res %= mod;res = (res * a) + 1;}
    return res % mod;
}
//Whenever we have (a/b)%P == (a * fast_pow(b,P-2))%P
bool isprime(ll a){
  if(a==2)return 1;
  if(!(a&1))return 0;
  for(ll i=3;i*i<=a;i+=2)
    if(a%i==0)return 0;
  return 1;
} */



int main() {
  ll n,t=0,x=0,y=0,pt,px,py,nt,nx,ny,k;cin>>n;
	while(n--){
    cin>>nt>>nx>>ny;12
		pt=nt-t;px=abs(nx-x);py=abs(ny-y);
		k=pt-px-py;
		if((k<0)||(k&1)){cout<<"No";return 0;}
		t=nt;x=nx;y=ny;
	}
	cout<<"Yes";
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:44:23: error: expected ';' before 'pt'
   44 |     cin>>nt>>nx>>ny;12
      |                       ^
      |                       ;
   45 |                 pt=nt-t;px=abs(nx-x);py=abs(ny-y);
      |                 ~~
Language: C++

#include <iostream>
#include <cmath>

using std::cout;
using std::endl;
using std::cin;
using std::abs;

int T[100'010];
int X[100'010];
int Y[100'010];

int main() {
	// Input
	int N;
	cin >> N;
	for(int i = 0; i < N; ++i) {
		cin >> T[i] >> X[i] >> Y[i];
	}
	// Calculation
	bool isPossible = true;
	int curT = 0;
	int curX = 0;
	int curY = 0;
	for(int i = 0; i < N; ++i) {
		int duration = T[i] - curT;]
		int distance = abs(X[i] - curX) + abs(Y[i] - curY);
		if(distance > duration || ((duration ^ distance) & -2)) {
			isPossible = false;
			break;
		}
	}
	// Output
	if(isPossible) {
		cout << "Yes" << endl;
	} else {
		cout << "No" << endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:44: error: expected primary-expression before ']' token
   26 |                 int duration = T[i] - curT;]
      |                                            ^
a.cc:28:20: error: 'distance' was not declared in this scope; did you mean 'std::distance'?
   28 |                 if(distance > duration || ((duration ^ distance) & -2)) {
      |                    ^~~~~~~~
      |                    std::distance
In file included from /usr/include/c++/14/string:47,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 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/c++/14/bits/stl_iterator_base_funcs.h:148:5: note: 'std::distance' declared here
  148 |     distance(_InputIterator __first, _InputIterator __last)
      |     ^~~~~~~~
Language: C++


#include <stdio.h>
#include <iostream>

template <class _T> static _T tp_abs(const _T& a) {
	return ((a < 0) ? (a * -1) : a);
}
template<class _T> static void get1int(_T& a) {
	const char* fmt = " %d";
	if (sizeof(_T) == sizeof(long long)) {
		fmt = " %lld";
	}

	if (scanf(fmt, &a) < 0) {
		printf("g1int Error\n");
	}
}
template<class _T> static void get3int(_T& a, _T& b, _T& c) {
	const char* fmt = " %d %d %d";
	if (sizeof(_T) == sizeof(long long)) {
		fmt = " %lld %lld %lld";
	}

	if (scanf(fmt, &a, &b, &c) < 0) {
		printf("g3int Error\n");
	}
}

static void ABC086C_Traveling();

#if 1
int main()
{
	ABC086C_Traveling();
	fflush(stdout);
	return 0;
}
#endif

class ABC086C_Point {
public:
	int ti = 0;
	int xi = 0;
	int yi = 0;
	static bool asc_ti(const ABC086C_Point& a, const ABC086C_Point& b) {
		return a.ti < b.ti;
	}
};
static void ABC086C_Traveling()
{
	int N;
	get1int(N);

	auto pts = new ABC086C_Point[N + 2];
	for (int i = 1; i <= N; i++) {
		get3int(pts[i].ti, pts[i].xi, pts[i].yi);
	}
	std::sort(pts, pts + N + 1, ABC086C_Point::asc_ti);

	bool arrival = true;
	for (int i = 0; i < N; i++) {
		int distTime = pts[i + 1].ti - pts[i].ti;
		int dist = tp_abs(pts[i + 1].xi - pts[i].xi) + tp_abs(pts[i + 1].yi - pts[i].yi);
		
		int diff = dist - distTime;
		if ((diff > 0) || (diff % 2)) {
			arrival = false;
			break;
		}
	}
	
	printf("%s\n", arrival ? "Yes" : "No");
	delete[] pts;
}


Compiler output:
a.cc: In function 'void ABC086C_Traveling()':
a.cc:58:14: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   58 |         std::sort(pts, pts + N + 1, ABC086C_Point::asc_ti);
      |              ^~~~
      |              qsort
Language: C++

#include<iostream>
using namespace std;

int main(){

  int x[100000], y[100000];
  int t[100000];
  int n;
  int i;
  
  cin >> n;
  
  for(i=0; i<=n; i++){
    cin >> t[i] >> x[i] >> y[i];
  }
  
  for(i=0; i<=n; i++){
    if(t[i]>=x[i]+y[i] && t[i]%(x[i]+y[i]==0){
      cout << "Yes\n";
    }else{
      cout << "No\n";
      break;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:46: error: expected ')' before '{' token
   18 |     if(t[i]>=x[i]+y[i] && t[i]%(x[i]+y[i]==0){
      |       ~                                      ^
      |                                              )
a.cc:24:3: error: expected primary-expression before '}' token
   24 |   }
      |   ^
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main(){
  int N;
  cin >> N;
  int px,py,pt;
  cin  >> pt >> px >> py;
  
  int f = 0;
  for(int i = 1; i < N; i++){
    int ct, cx, cy;
    cin >> ct >> cx >> cy;
    if((long long int)(abs(cx - px) + abs(cy - py)) > long long int(ct - pt) || long long int((abs(cx - px) + abs(cy - py)) - long long int(ct - pt))% 2 != 0){
      f = 1;
      break;
    }
    pt = ct;
    px = cx;
    py = cy;
  }
    if(f) cout << "No";
    else cout << "Yes";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:55: error: expected primary-expression before 'long'
   16 |     if((long long int)(abs(cx - px) + abs(cy - py)) > long long int(ct - pt) || long long int((abs(cx - px) + abs(cy - py)) - long long int(ct - pt))% 2 != 0){
      |                                                       ^~~~
a.cc:16:54: error: expected ')' before 'long'
   16 |     if((long long int)(abs(cx - px) + abs(cy - py)) > long long int(ct - pt) || long long int((abs(cx - px) + abs(cy - py)) - long long int(ct - pt))% 2 != 0){
      |       ~                                              ^~~~~
      |                                                      )
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main(){
  int N;
  cin >> N;
  int px,py,pt;
  cin  >> pt >> px >> py;
  
  int f = 0;
  for(int i = 1; i < N; i++){
    int ct, cx, cy;
    cin >> ct >> cx >> cy;
    if(cx - px + cy - py != ct - pt){
      f = 1;
      break;
    }
    pt = ct;
    px = cx;
    py = cy;
  }
    if(f) cout << "No";
    else cout << "Yes";
  }
}

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

#define _USE_MATH_DEFINES
#include<bits/stdc++.h>
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define Rep(i,a,b) for(int i=0;i<b;i++)
#define REP(i,a,b) for(int i=0;i<=b;i++)
#define rev(i,n) for(int i=n-1;i>=0;i--)
#define vi vector<int>
#define vvi vector<vi>
#define pb push_back
#define pi pair<int,int>
#define vp vector<pair<int,int>>
#define mp make_pair
#define all(v) (v).begin(),(v).end()
#define fi first
#define se second
#define MEMSET(a) memset(a,0,sizeof(a))
#define inf (1ll<<60)
#define Yes(f) cout <<(f?"Yes":"No")<<endl//fが真の場合Yesを出力、偽の場合Noを出力
#define yes(f) cout <<(f?"yes":"no")<<endl
#define YES(f) cout <<(f?"YES":"NO")<<endl
#define SORT(v) sort(all(v))
#define RSORT(v) sort(all(v),greater<int>())
 
using namespace std;
 
const int mod=1e9+7;
 
signed main(){
	//入力
	int n;
	int x=0,y=0;
	cin >> n;
	vvi place(n*3);
	for(int i=0;i<n;i++)
	{
		//		0が時間	　		1がx軸			2がy軸
		cin >> place[i][0] >> place[i][1] >> place[i][2];
	}

	//処理
	for(int i=0;i<n-1;i++)
	{
		if (place[i+1][0]-place[i][0]<abs(place[i][1]-x)+abs(place[i][2]-y)||(place[i+1][0]-place[i][0]-abs(place[i][1]-x)-abs(place[i][2]-y))%2!=
		{
			cout << "No" << endl;
			return 0;
		}
		x=place[i][1];y=place[i][2];
	}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:45:17: error: expected primary-expression before '{' token
   45 |                 {
      |                 ^
a.cc:49:30: error: expected ')' before ';' token
   49 |                 x=place[i][1];y=place[i][2];
      |                              ^
      |                              )
a.cc:44:20: note: to match this '('
   44 |                 if (place[i+1][0]-place[i][0]<abs(place[i][1]-x)+abs(place[i][2]-y)||(place[i+1][0]-place[i][0]-abs(place[i][1]-x)-abs(place[i][2]-y))%2!=
      |                    ^
Language: C++

#define _USE_MATH_DEFINES
#include<bits/stdc++.h>

 
using namespace std;
 
const int mod=1e9+7;
 
int main(){
	//入力
	int n;
	int x=0,y=0;
	cin >> n;
	vector<vector<int>> place(n*2)
	for(int i=0;i<n;i++)
	{
		cin >> place[i][0] >> place[i][1];
	}

	//処理
	for(int i=0;i<n;i++)
	{
		if (abs(place[i][0]-x)!=1&&abs(place[i][1]-y)!=1)
		{
			cout << "Yes" << endl;
			return 0;
		}
		x=place[i][0];y=place[i][1];
	}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:9: error: expected ',' or ';' before 'for'
   15 |         for(int i=0;i<n;i++)
      |         ^~~
a.cc:15:21: error: 'i' was not declared in this scope
   15 |         for(int i=0;i<n;i++)
      |                     ^
Language: C++

#define _USE_MATH_DEFINES
#include<bits/stdc++.h>

 
using namespace std;
 
const int mod=1e9+7;
 
int main(){
	//入力
	int n;
	int x=0,y=0;
	cin >> n;
	vvi place(n*2)
	for(int i=0;i<n;i++)
	{
		cin >> place[i][0] >> place[i][1];
	}

	//処理
	for(int i=0;i<n;i++)
	{
		if (abs(place[i][0]-x)!=1&&abs(place[i][1]-y)!=1)
		{
			cout << "Yes" << endl;
			return 0;
		}
		x=place[i][0];y=place[i][1];
	}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'vvi' was not declared in this scope
   14 |         vvi place(n*2)
      |         ^~~
a.cc:15:21: error: 'i' was not declared in this scope
   15 |         for(int i=0;i<n;i++)
      |                     ^
a.cc:23:25: error: 'place' was not declared in this scope
   23 |                 if (abs(place[i][0]-x)!=1&&abs(place[i][1]-y)!=1)
      |                         ^~~~~
a.cc:28:19: error: 'place' was not declared in this scope
   28 |                 x=place[i][0];y=place[i][1];
      |                   ^~~~~
Language: C++

#define _USE_MATH_DEFINES
#include<bits/stdc++.h>
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define Rep(i,a,b) for(int i=0;i<b;i++)
#define REP(i,a,b) for(int i=0;i<=b;i++)
#define rev(i,n) for(int i=n-1;i>=0;i--)
#define vi vector<int>
#define vvi vector<vi>
#define pb push_back
#define pi pair<int,int>
#define vp vector<pair<int,int>>
#define mp make_pair
#define all(v) (v).begin(),(v).end()
#define fi first
#define se second
#define MEMSET(a) memset(a,0,sizeof(a))
#define inf (1ll<<60)
#define Yes(f) cout <<(f?"Yes":"No")<<endl//fが真の場合Yesを出力、偽の場合Noを出力
#define yes(f) cout <<(f?"yes":"no")<<endl
#define YES(f) cout <<(f?"YES":"NO")<<endl
#define SORT(v) sort(all(v))
#define RSORT(v) sort(all(v),greater<int>())
 
using namespace std;
 
const int mod=1e9+7;
 
signed main(){
	//入力
	int n;
	int x=0,y=0;
	cin >> n;
	vvi place(n*2)
	rep(i,n)
	{
		cin >> place[i][0] >> place[i][1];
	}

	//処理
	rep(i,n)
	{
		if (abs(place[i][0]-x)!=1&&abs(place[i][1]-y)!=1)
		{
			cout << "Yes" << endl;
			return 0;
		}
	}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:4:18: error: expected ',' or ';' before 'for'
    4 | #define rep(i,n) for(int i=0;i<n;i++)
      |                  ^~~
a.cc:35:9: note: in expansion of macro 'rep'
   35 |         rep(i,n)
      |         ^~~
a.cc:35:13: error: 'i' was not declared in this scope
   35 |         rep(i,n)
      |             ^
a.cc:4:30: note: in definition of macro 'rep'
    4 | #define rep(i,n) for(int i=0;i<n;i++)
      |                              ^
Language: C++

#define _USE_MATH_DEFINES
#include<bits/stdc++.h>
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define Rep(i,a,b) for(int i=0;i<b;i++)
#define REP(i,a,b) for(int i=0;i<=b;i++)
#define rev(i,n) for(int i=n-1;i>=0;i--)
#define vi vector<int>
#define vvi vector<vi>
#define pb push_back
#define pi pair<int,int>
#define vp vector<pair<int,int>>
#define mp make_pair
#define all(v) (v).begin(),(v).end()
#define fi first
#define se second
#define MEMSET(a) memset(a,0,sizeof(a))
#define inf (1ll<<60)
#define Yes(f) cout <<(f?"Yes":"No")<<endl//fが真の場合Yesを出力、偽の場合Noを出力
#define yes(f) cout <<(f?"yes":"no")<<endl
#define YES(f) cout <<(f?"YES":"NO")<<endl
#define SORT(v) sort(all(v))
#define RSORT(v) sort(all(v),greater<int>())

using namespace std;

const int mod=1e9+7;

signed main(){
	//入力
	int n;
	int x=0,y=0;
	cin >> n;
	vvi place(n*2)
	rep(i,n)
	{
		cin >> place[i][0] >> place[i][1];
	}

	//処理
	rep(i,n)
	{
		if (abs(place[i][0]-x)!=1&&abs(place[i][1]-y)!=1)
		{
			cout << "Yes" << endl;
			return 0;
		}
	}

	cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:18: error: expected ',' or ';' before 'for'
    4 | #define rep(i,n) for(int i=0;i<n;i++)
      |                  ^~~
a.cc:35:9: note: in expansion of macro 'rep'
   35 |         rep(i,n)
      |         ^~~
a.cc:35:13: error: 'i' was not declared in this scope
   35 |         rep(i,n)
      |             ^
a.cc:4:30: note: in definition of macro 'rep'
    4 | #define rep(i,n) for(int i=0;i<n;i++)
      |                              ^
Language: C++

#define _USE_MATH_DEFINES
#include<bits/stdc++.h>
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define Rep(i,a,b) for(int i=0;i<b;i++)
#define REP(i,a,b) for(int i=0;i<=b;i++)
#define rev(i,n) for(int i=n-1;i>=0;i--)
#define vi vector<int>
#define vvi vector<vi>
#define pb push_back
#define pi pair<int,int>
#define vp vector<pair<int,int>>
#define mp make_pair
#define all(v) (v).begin(),(v).end()
#define fi first
#define se second
#define MEMSET(a) memset(a,0,sizeof(a))
#define inf (1ll<<60)
#define Yes(f) cout <<(f?"Yes":"No")<<endl//fが真の場合Yesを出力、偽の場合Noを出力
#define yes(f) cout <<(f?"yes":"no")<<endl
#define YES(f) cout <<(f?"YES":"NO")<<endl
#define SORT(v) sort(all(v))
#define RSORT(v) sort(all(v),greater<int>())

using namespace std;

const int mod=1e9+7;

signed main(){
	//入力
	int n;
	int x=0,y=0;
	cin >> n;
	vvi place(n*2)
	rep(i,n)
	{
		cin >> place[i][0] >> place[i][1];
	}

	//処理
	rep(i,n)
	{
		if (abs(place[i][0]-x)!=1&&abs(place[i][1]-y)!=1)
		{
			cout << "Yes" << endl;
			return;
		}
	}

	cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:18: error: expected ',' or ';' before 'for'
    4 | #define rep(i,n) for(int i=0;i<n;i++)
      |                  ^~~
a.cc:35:9: note: in expansion of macro 'rep'
   35 |         rep(i,n)
      |         ^~~
a.cc:35:13: error: 'i' was not declared in this scope
   35 |         rep(i,n)
      |             ^
a.cc:4:30: note: in definition of macro 'rep'
    4 | #define rep(i,n) for(int i=0;i<n;i++)
      |                              ^
a.cc:46:25: error: return-statement with no value, in function returning 'int' [-fpermissive]
   46 |                         return;
      |                         ^~~~~~
Language: C++

#define _USE_MATH_DEFINES
#include<bits/stdc++.h>
#define int long long
#define rep(i,n) for(int i=0;i<n;i++)
#define Rep(i,a,b) for(int i=0;i<b;i++)
#define REP(i,a,b) for(int i=0;i<=b;i++)
#define rev(i,n) for(int i=n-1;i>=0;i--)
#define vi vector<int>
#define vvi vector<vi>
#define pb push_back
#define pi pair<int,int>
#define vp vector<pair<int,int>>
#define mp make_pair
#define all(v) (v).begin(),(v).end()
#define fi first
#define se second
#define MEMSET(a) memset(a,0,sizeof(a))
#define inf (1ll<<60)
#define Yes(f) cout <<(f?"Yes":"No")<<endl//fが真の場合Yesを出力、偽の場合Noを出力
#define yes(f) cout <<(f?"yes":"no")<<endl
#define YES(f) cout <<(f?"YES":"NO")<<endl
#define SORT(v) sort(all(v))
#define RSORT(v) sort(all(v),greater<int>())

using namespace std;

const int mod=1e9+7;

signed main(){
	//入力
	int x=0,y=0;
	cin >> n;
	vvi place(n*2)
	rep(i,n)
	{
		cin >> place[i][0] >> place[i][1];
	}

	//処理
	rep(i,n)
	{
		if (abs(place[i][0]-x)!=1&&abs(place[i][1]-y)!=1)
		{
			cout << "Yes" << endl;
			return;
		}
	}

	cout << "No" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:32:16: error: 'n' was not declared in this scope
   32 |         cin >> n;
      |                ^
a.cc:4:18: error: expected ',' or ';' before 'for'
    4 | #define rep(i,n) for(int i=0;i<n;i++)
      |                  ^~~
a.cc:34:9: note: in expansion of macro 'rep'
   34 |         rep(i,n)
      |         ^~~
a.cc:34:13: error: 'i' was not declared in this scope
   34 |         rep(i,n)
      |             ^
a.cc:4:30: note: in definition of macro 'rep'
    4 | #define rep(i,n) for(int i=0;i<n;i++)
      |                              ^
a.cc:45:25: error: return-statement with no value, in function returning 'int' [-fpermissive]
   45 |                         return;
      |                         ^~~~~~
Language: C

	int tt, xx, yy;
	int i;
	int c = 0;

	scanf("%d", &N);

	for(i=0; i<N; i++){
		tt = t;
		xx = x;
		yy = y;
		scanf("%d%d%d", &t, &x, &y);
		
		if(i == 0 && t < x + y){
			continue;
		}

		if(i != 0 && t - tt < (x - xx) + (y - yy)){
			continue;
		}

		if((t - (x + y)) % 2 != 0){
			continue;
		}
		
		c++;
	}


	if(c == N){
		printf("Yes");
	}
	else{
		printf("No");
	}


return 0;
}

Compiler output:
main.c:5:15: error: expected declaration specifiers or '...' before string constant
    5 |         scanf("%d", &N);
      |               ^~~~
main.c:5:21: error: expected declaration specifiers or '...' before '&' token
    5 |         scanf("%d", &N);
      |                     ^
main.c:7:9: error: expected identifier or '(' before 'for'
    7 |         for(i=0; i<N; i++){
      |         ^~~
main.c:7:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    7 |         for(i=0; i<N; i++){
      |                   ^
main.c:7:24: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    7 |         for(i=0; i<N; i++){
      |                        ^~
main.c:29:9: error: expected identifier or '(' before 'if'
   29 |         if(c == N){
      |         ^~
main.c:32:9: error: expected identifier or '(' before 'else'
   32 |         else{
      |         ^~~~
main.c:37:1: error: expected identifier or '(' before 'return'
   37 | return 0;
      | ^~~~~~
main.c:38:1: error: expected identifier or '(' before '}' token
   38 | }
      | ^
Language: C++

#include <iostream>
using namespace std;

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

  bool can = true;
  for(int i = 0; i < N; i++){
    ind dt = t[i+1] - t[i];
    int dist = abs(x[i+1]-x[i]) + abs(y[i+1]-y[i]);
    if(dt< dist) an = 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:13:5: error: 'ind' was not declared in this scope; did you mean 'int'?
   13 |     ind dt = t[i+1] - t[i];
      |     ^~~
      |     int
a.cc:15:8: error: 'dt' was not declared in this scope; did you mean 't'?
   15 |     if(dt< dist) an = false;
      |        ^~
      |        t
a.cc:15:18: error: 'an' was not declared in this scope; did you mean 'can'?
   15 |     if(dt< dist) an = false;
      |                  ^~
      |                  can
a.cc:16:21: error: 'dt' was not declared in this scope; did you mean 't'?
   16 |     if (dist % 2 != dt% 2) can = false;
      |                     ^~
      |                     t
Language: C++

#include<iostream>
#include<vector>

using namespace std;

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

    vector<int> t(n+1,0), x(n+1,0), y(n+1,0);

    for(int i=1;i<=n;i++)
        cin >> t[i] >> x[i] >> y[i];
    
    int t1, x1, y1;

    for(int i=0;i<n;i++){
        t1=t[i+1] - t[i];
        x1=x[i+1] - x[i];
        y1=y[i+1] - y[i];

        if(t1<(x1+y1)){
            cout << "No" << endl;
            return 0;
        } else if(t1 - x1 - y1) % 2 == 1){
            cout << "No" << endl;
            return 0;
        }
    }
    
    cout << "Yes" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:33: error: expected primary-expression before '%' token
   25 |         } else if(t1 - x1 - y1) % 2 == 1){
      |                                 ^
Language: C++

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

int main(){
    int pt,px,py;
    int t,x,y;
    int flag=1;
    int n;
    int ans;

    cin >>n;

    for (int i = 0; i < n; i++){
        pt=t;
        px=x;
        py=y;

        cin >>t>>x>>y;

        if(abs(x-px)+abs(y-py) > t-pt)flag=0;
    }
    
    
    //cout << ans <<endl;
    if(flag==1)cout << "Yes" <<endl;
    else cout << "No" <<endl;
    
    return 0;

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

#include <bits/stdc++.h>
#define FI first
#define SE second
#define EPS 1e-9
#define ALL(a) a.begin(),a.end()
#define SZ(a) int((a).size())
#define MS(s, n) memset(s, n, sizeof(s))
#define FOR(i,a,b) for (int i = (a); i <= (b); i++)
#define FORE(i,a,b) for (int i = (a); i >= (b); i--)
#define FORALL(it, a) for (__typeof((a).begin()) it = (a).begin(); it != (a).end(); it++)
#define WHATIS(x) cout << #x << " is " << x << endl;
#define ERROR(args...) { string _s = #args; replace(_s.begin(), _s.end(), ',', ' '); stringstream _ss(_s); istream_iterator<string> _it(_ss); err(_it, args); }
//__builtin_ffs(x) return 1 + index of least significant 1-bit of x
//__builtin_clz(x) return number of leading zeros of x
//__builtin_ctz(x) return number of trailing zeros of x

using namespace std;
using ll = long long;
using ld = double;
typedef pair<int, int> II;
typedef pair<II, ll> III;
typedef complex<ld> cd;
typedef vector<cd> vcd;

void err(istream_iterator<string> it) {}
template<typename T, typename... Args>
void err(istream_iterator<string> it, T a, Args... args) {
    cout << *it << " = " << a << endl;
    err(++it, args...);
}

const ll MODBASE = 1000000007LL;
const int MAXN = 200010;
const int MAXM = 100010;
const int MAXK = 510;
const int MAXQ = 200010;

ll x, y;

int main() {
    ios::sync_with_stdio(0);
    cin.tie(nullptr);
    int n;
    cin >> n;
    II now = II(0, 0);
    int tnow = 0;
    FOR(i,1,n) {
        int t, x, y;
        cin >> t >> x >> y;
        int dist = abs(now.FI - x) + abs(now.SE - y);
        if ((t-tnow) % 2 != dist % 2) {
            cout << "No";
            return 0;
        }
        now = II(x, y);
        tnow = t;
    }
    cout << "Yes";
    return 0;
}

Compiler output:
a.cc:44:12: error: stray '\10' in program
   44 |     cin >> <U+0008>n;
      |            ^~~~~~~~
Language: C++

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





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

	vecter<int>t(N+1);
	vecter<int>x(N+1);
	vecter<int>y(N+1);

	string ans="Yes";

	for(int i=0;i<N;i++) cin<<t[i]<<x[i]<<y[i]
	
	
	
	for(int i=1;i<N;i++){
	if(abs(x[i]-x[i-1])+abs(y[i]-y[i-1])<=t[i]-t[i-1] && t[i]-t[i-1]-(abs(x[i]-x[i-1])+abs(y[i]-y[i-1]))%2==0){

	}else{
		ans="No";
	}

	cout<<ans;
	
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'vecter' was not declared in this scope
   12 |         vecter<int>t(N+1);
      |         ^~~~~~
a.cc:12:16: error: expected primary-expression before 'int'
   12 |         vecter<int>t(N+1);
      |                ^~~
a.cc:13:16: error: expected primary-expression before 'int'
   13 |         vecter<int>x(N+1);
      |                ^~~
a.cc:14:16: error: expected primary-expression before 'int'
   14 |         vecter<int>y(N+1);
      |                ^~~
a.cc:18:35: error: 't' was not declared in this scope
   18 |         for(int i=0;i<N;i++) cin<<t[i]<<x[i]<<y[i]
      |                                   ^
a.cc:18:41: error: 'x' was not declared in this scope
   18 |         for(int i=0;i<N;i++) cin<<t[i]<<x[i]<<y[i]
      |                                         ^
a.cc:18:47: error: 'y' was not declared in this scope
   18 |         for(int i=0;i<N;i++) cin<<t[i]<<x[i]<<y[i]
      |                                               ^
a.cc:22:21: error: 'i' was not declared in this scope
   22 |         for(int i=1;i<N;i++){
      |                     ^
a.cc:31:2: error: expected '}' at end of input
   31 | }
      |  ^
a.cc:8:11: note: to match this '{'
    8 | int main(){
      |           ^