Language: C++

#include <iostream>
#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: In function 'int main()':
a.cc:21:15: error: type/value mismatch at argument 1 in template parameter list for 'template<class _Tp, class _Alloc> class std::vector'
   21 |   vector<entry> E;
      |               ^
a.cc:21:15: note:   expected a type, got 'entry'
a.cc:21:15: error: template argument 2 is invalid
a.cc:23:5: error: request for member 'push_back' in 'E', which is of non-class type 'int'
   23 |   E.push_back(entry(0,0,0));
      |     ^~~~~~~~~
a.cc:23:20: error: no match for call to '(<unnamed struct>) (int, int, int)'
   23 |   E.push_back(entry(0,0,0));
      |               ~~~~~^~~~~~~
a.cc:26:7: error: request for member 'push_back' in 'E', which is of non-class type 'int'
   26 |     E.push_back(entry(t,x,y));
      |       ^~~~~~~~~
a.cc:26:22: error: no match for call to '(<unnamed struct>) (int&, int&, int&)'
   26 |     E.push_back(entry(t,x,y));
      |                 ~~~~~^~~~~~~
a.cc:30:9: error: invalid types 'int[int]' for array subscript
   30 |       (E[i+1].x > E[i].x ?
      |         ^
a.cc:30:20: error: invalid types 'int[int]' for array subscript
   30 |       (E[i+1].x > E[i].x ?
      |                    ^
a.cc:31:9: error: invalid types 'int[int]' for array subscript
   31 |        E[i+1].x - E[i].x : E[i].x - E[i+1].x)
      |         ^
a.cc:31:20: error: invalid types 'int[int]' for array subscript
   31 |        E[i+1].x - E[i].x : E[i].x - E[i+1].x)
      |                    ^
a.cc:31:29: error: invalid types 'int[int]' for array subscript
   31 |        E[i+1].x - E[i].x : E[i].x - E[i+1].x)
      |                             ^
a.cc:31:38: error: invalid types 'int[int]' for array subscript
   31 |        E[i+1].x - E[i].x : E[i].x - E[i+1].x)
      |                                      ^
a.cc:33:9: error: invalid types 'int[int]' for array subscript
   33 |       (E[i+1].y > E[i].y ?
      |         ^
a.cc:33:20: error: invalid types 'int[int]' for array subscript
   33 |       (E[i+1].y > E[i].y ?
      |                    ^
a.cc:34:9: error: invalid types 'int[int]' for array subscript
   34 |        E[i+1].y - E[i].y : E[i].y - E[i+1].y);
      |         ^
a.cc:34:20: error: invalid types 'int[int]' for array subscript
   34 |        E[i+1].y - E[i].y : E[i].y - E[i+1].y);
      |                    ^
a.cc:34:29: error: invalid types 'int[int]' for array subscript
   34 |        E[i+1].y - E[i].y : E[i].y - E[i+1].y);
      |                             ^
a.cc:34:38: error: invalid types 'int[int]' for array subscript
   34 |        E[i+1].y - E[i].y : E[i].y - E[i+1].y);
      |                                      ^
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];
      |                               ^