Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,N) for(int i=0,i##_max=(N);i<i##_max;++i)
#define repp(i,l,r) for(int i=(l),i##_max=(r);i<i##_max;++i)
#define per(i,N) for(int i=(N)-1;i>=0;--i)
#define perr(i,l,r) for(int i=r-1,i##_min(l);i>=i##_min;--i)
#define all(arr) (arr).begin(), (arr).end()
#define SP << " " <<
#define SPF << " "
#define SPEEDUP cin.tie(0);ios::sync_with_stdio(false);
#define MAX_I INT_MAX //1e9
#define MIN_I INT_MIN //-1e9
#define MAX_UI UINT_MAX //1e9
#define MAX_LL LLONG_MAX //1e18
#define MIN_LL LLONG_MIN //-1e18
#define MAX_ULL ULLONG_MAX //1e19
  typedef long long ll;
  typedef pair<int,int> PII;
  typedef pair<char,char> PCC;
  typedef pair<ll,ll> PLL;
  typedef pair<char,int> PCI;
  typedef pair<int,char> PIC;
  typedef pair<ll,int> PLI;
  typedef pair<int,ll> PIL; 
  typedef pair<ll,char> PLC; 
  typedef pair<char,ll> PCL; 

inline void YesNo(bool b){ cout << (b?"Yes" : "No") << endl;}
inline void YESNO(bool b){ cout << (b?"YES" : "NO") << endl;}
inline void Yay(bool b){ cout << (b?"Yay!" : ":(") << endl;}

struct{
  int t,x,y;
}T;

int main(void){
  SPEEDUP
  cout << setprecision(15);
  int N;cin >> N;
  vector<T> v(N+1);
  v[0] = {0,0,0};
  rep(i,N) cin >> v[i+1].t >> v[i+1].x >> v[i+1].y;
  bool canVisit = true;
  rep(i,N){
    int t = v[i+1].t - v[i].t;
    int absx = abs(v[i+1].x - v[i].x);
    int absy = abs(v[i+1].y - v[i].y);
    if(t > absx + absy) canVisit = false;
    if(t&1 != (absx+absy)&1) canVisit = false;
  }
  YesNo(canVisit);
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:40:11: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
   40 |   vector<T> v(N+1);
      |           ^
a.cc:40:11: note:   expected a type, got 'T'
a.cc:40:11: error: template argument 2 is invalid
a.cc:41:4: error: invalid types 'int[int]' for array subscript
   41 |   v[0] = {0,0,0};
      |    ^
a.cc:42:20: error: invalid types 'int[int]' for array subscript
   42 |   rep(i,N) cin >> v[i+1].t >> v[i+1].x >> v[i+1].y;
      |                    ^
a.cc:42:32: error: invalid types 'int[int]' for array subscript
   42 |   rep(i,N) cin >> v[i+1].t >> v[i+1].x >> v[i+1].y;
      |                                ^
a.cc:42:44: error: invalid types 'int[int]' for array subscript
   42 |   rep(i,N) cin >> v[i+1].t >> v[i+1].x >> v[i+1].y;
      |                                            ^
a.cc:45:14: error: invalid types 'int[int]' for array subscript
   45 |     int t = v[i+1].t - v[i].t;
      |              ^
a.cc:45:25: error: invalid types 'int[int]' for array subscript
   45 |     int t = v[i+1].t - v[i].t;
      |                         ^
a.cc:46:21: error: invalid types 'int[int]' for array subscript
   46 |     int absx = abs(v[i+1].x - v[i].x);
      |                     ^
a.cc:46:32: error: invalid types 'int[int]' for array subscript
   46 |     int absx = abs(v[i+1].x - v[i].x);
      |                                ^
a.cc:47:21: error: invalid types 'int[int]' for array subscript
   47 |     int absy = abs(v[i+1].y - v[i].y);
      |                     ^
a.cc:47:32: error: invalid types 'int[int]' for array subscript
   47 |     int absy = abs(v[i+1].y - v[i].y);
      |                                ^