Language: C

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

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

}


Compiler output:
main.c: In function 'main':
main.c:17:9: error: subscripted value is neither array nor pointer nor vector
   17 |     h=(a[i]>a[i+1]?a[i]-a[i+1]:a[i+1]-a[i]);
      |         ^
main.c:17:14: error: subscripted value is neither array nor pointer nor vector
   17 |     h=(a[i]>a[i+1]?a[i]-a[i+1]:a[i+1]-a[i]);
      |              ^
main.c:17:21: error: subscripted value is neither array nor pointer nor vector
   17 |     h=(a[i]>a[i+1]?a[i]-a[i+1]:a[i+1]-a[i]);
      |                     ^
main.c:17:26: error: subscripted value is neither array nor pointer nor vector
   17 |     h=(a[i]>a[i+1]?a[i]-a[i+1]:a[i+1]-a[i]);
      |                          ^
main.c:17:33: error: subscripted value is neither array nor pointer nor vector
   17 |     h=(a[i]>a[i+1]?a[i]-a[i+1]:a[i+1]-a[i]);
      |                                 ^
main.c:17:40: error: subscripted value is neither array nor pointer nor vector
   17 |     h=(a[i]>a[i+1]?a[i]-a[i+1]:a[i+1]-a[i]);
      |                                        ^
main.c:18:9: error: subscripted value is neither array nor pointer nor vector
   18 |     v=(b[i]>b[i+1]?b[i]-b[i+1]:b[i+1]-b[i]);
      |         ^
main.c:18:14: error: subscripted value is neither array nor pointer nor vector
   18 |     v=(b[i]>b[i+1]?b[i]-b[i+1]:b[i+1]-b[i]);
      |              ^
main.c:18:21: error: subscripted value is neither array nor pointer nor vector
   18 |     v=(b[i]>b[i+1]?b[i]-b[i+1]:b[i+1]-b[i]);
      |                     ^
main.c:18:26: error: subscripted value is neither array nor pointer nor vector
   18 |     v=(b[i]>b[i+1]?b[i]-b[i+1]:b[i+1]-b[i]);
      |                          ^
main.c:18:33: error: subscripted value is neither array nor pointer nor vector
   18 |     v=(b[i]>b[i+1]?b[i]-b[i+1]:b[i+1]-b[i]);
      |                                 ^
main.c:18:40: error: subscripted value is neither array nor pointer nor vector
   18 |     v=(b[i]>b[i+1]?b[i]-b[i+1]:b[i+1]-b[i]);
      |                                        ^
main.c:30:10: error: expected '}' before 'else'
   30 |          else
      |          ^~~~
main.c:32:8: error: 'else' without a previous 'if'
   32 |       }else{
      |        ^~~~
main.c:35:10: error: 'else' without a previous 'if'
   35 |          else
      |          ^~~~
main.c: At top level:
main.c:41:1: error: expected identifier or '(' before '}' token
   41 | }
      | ^