Language: C

#include<stdio.h>
#define N 100001
int main(void){
  int n;
  scanf("%d",&n);
  int i;
  int t[N]={0},x[N]={0},y[N]={0};
  int flag = 0;
  for(i=1;i<=n;i++){
    scanf("%d%d%d",&t[i],&x[i],&y[i]);
    //judge
    if((t[i]-t[i-1])%2==0){
      if((0<=fabs(x[i]-x[i-1])+fabs(y[i]-y[i-1]))&&(fabs(x[i]-x[i-1])+fabs(y[i]-y[i-1])<=t[i]-t[i-1])&&(((fabs(x[i]-x[i-1])+fabs(y[i]-y[i-1]))-(t[i]-t[i-1]))&2==0)){
        flag=0;
      }else flag=1;
    }else{
      if((1<=fabs(x[i]-x[i-1])+fabs(y[i]-y[i-1]))&&(fabs(x[i]-x[i-1])+fabs(y[i]-y[i-1])<=t[i]-t[i-1])&&(((fabs(x[i]-x[i-1])+fabs(y[i]-y[i-1]))-(t[i]-t[i-1]))&2==0)){
        flag=0;
      }else flag=1;
    }
  }
  if(flag==1)printf("No");
  else printf("Yes");
  return 0;
}
//配列を取る必要すらない。


Compiler output:
main.c: In function 'main':
main.c:13:14: error: implicit declaration of function 'fabs' [-Wimplicit-function-declaration]
   13 |       if((0<=fabs(x[i]-x[i-1])+fabs(y[i]-y[i-1]))&&(fabs(x[i]-x[i-1])+fabs(y[i]-y[i-1])<=t[i]-t[i-1])&&(((fabs(x[i]-x[i-1])+fabs(y[i]-y[i-1]))-(t[i]-t[i-1]))&2==0)){
      |              ^~~~
main.c:2:1: note: include '<math.h>' or provide a declaration of 'fabs'
    1 | #include<stdio.h>
  +++ |+#include <math.h>
    2 | #define N 100001
main.c:13:14: warning: incompatible implicit declaration of built-in function 'fabs' [-Wbuiltin-declaration-mismatch]
   13 |       if((0<=fabs(x[i]-x[i-1])+fabs(y[i]-y[i-1]))&&(fabs(x[i]-x[i-1])+fabs(y[i]-y[i-1])<=t[i]-t[i-1])&&(((fabs(x[i]-x[i-1])+fabs(y[i]-y[i-1]))-(t[i]-t[i-1]))&2==0)){
      |              ^~~~
main.c:13:14: note: include '<math.h>' or provide a declaration of 'fabs'
main.c:13:158: error: invalid operands to binary & (have 'double' and 'int')
   13 |       if((0<=fabs(x[i]-x[i-1])+fabs(y[i]-y[i-1]))&&(fabs(x[i]-x[i-1])+fabs(y[i]-y[i-1])<=t[i]-t[i-1])&&(((fabs(x[i]-x[i-1])+fabs(y[i]-y[i-1]))-(t[i]-t[i-1]))&2==0)){
      |                                                                                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
      |                                                                                                                                               |
      |                                                                                                                                               double
main.c:17:14: warning: incompatible implicit declaration of built-in function 'fabs' [-Wbuiltin-declaration-mismatch]
   17 |       if((1<=fabs(x[i]-x[i-1])+fabs(y[i]-y[i-1]))&&(fabs(x[i]-x[i-1])+fabs(y[i]-y[i-1])<=t[i]-t[i-1])&&(((fabs(x[i]-x[i-1])+fabs(y[i]-y[i-1]))-(t[i]-t[i-1]))&2==0)){
      |              ^~~~
main.c:17:14: note: include '<math.h>' or provide a declaration of 'fabs'
main.c:17:158: error: invalid operands to binary & (have 'double' and 'int')
   17 |       if((1<=fabs(x[i]-x[i-1])+fabs(y[i]-y[i-1]))&&(fabs(x[i]-x[i-1])+fabs(y[i]-y[i-1])<=t[i]-t[i-1])&&(((fabs(x[i]-x[i-1])+fabs(y[i]-y[i-1]))-(t[i]-t[i-1]))&2==0)){
      |                                                                                                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^
      |                                                                                                                                               |
      |                                                                                                                                               double