Language: C++

#include<iostream>
#include<cstdio>
#include<algorithm>
#include<cstring>
#include<vector>
#include<queue>
#include<stack>
#include<cmath>
using namespace std;
int n,time[100005];
int x[100005],y[100005];
int main(){
    scanf("%d",&n);
    for(int i=1;i<=n;i++){
    	scanf("%d%d%d",&time[i],&x[i],&y[i]);
	}
	for(int i=1;i<=n;i++){
		if((time[i]-(abs(x[i]-x[i-1])+abs(y[i]-y[i-1])))<0||(time[i]-(abs(x[i]-x[i-1])+abs(y[i]-y[i-1])))%2==1){
			printf("No\n");
			return 0;
		}
	}
	printf("Yes");
    return 0;
}


Compiler output:
a.cc:10:18: error: 'int time [100005]' redeclared as different kind of entity
   10 | int n,time[100005];
      |                  ^
In file included from /usr/include/pthread.h:23,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr-default.h:35,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/gthr.h:157,
                 from /usr/include/c++/14/ext/atomicity.h:35,
                 from /usr/include/c++/14/bits/ios_base.h:39,
                 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/time.h:76:15: note: previous declaration 'time_t time(time_t*)'
   76 | extern time_t time (time_t *__timer) __THROW;
      |               ^~~~
a.cc: In function 'int main()':
a.cc:15:31: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   15 |         scanf("%d%d%d",&time[i],&x[i],&y[i]);
      |                               ^
a.cc:18:27: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   18 |                 if((time[i]-(abs(x[i]-x[i-1])+abs(y[i]-y[i-1])))<0||(time[i]-(abs(x[i]-x[i-1])+abs(y[i]-y[i-1])))%2==1){
      |                           ^
a.cc:18:28: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   18 |                 if((time[i]-(abs(x[i]-x[i-1])+abs(y[i]-y[i-1])))<0||(time[i]-(abs(x[i]-x[i-1])+abs(y[i]-y[i-1])))%2==1){
      |                     ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:18:65: error: ordered comparison of pointer with integer zero ('time_t (*)(time_t*) noexcept' {aka 'long int (*)(long int*) noexcept'} and 'int')
   18 |                 if((time[i]-(abs(x[i]-x[i-1])+abs(y[i]-y[i-1])))<0||(time[i]-(abs(x[i]-x[i-1])+abs(y[i]-y[i-1])))%2==1){
      |                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
a.cc:18:76: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   18 |                 if((time[i]-(abs(x[i]-x[i-1])+abs(y[i]-y[i-1])))<0||(time[i]-(abs(x[i]-x[i-1])+abs(y[i]-y[i-1])))%2==1){
      |                                                                            ^
a.cc:18:77: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   18 |                 if((time[i]-(abs(x[i]-x[i-1])+abs(y[i]-y[i-1])))<0||(time[i]-(abs(x[i]-x[i-1])+abs(y[i]-y[i-1])))%2==1){
      |                                                                      ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:18:114: error: invalid operands of types 'time_t (*)(time_t*) noexcept' {aka 'long int (*)(long int*) noexcept'} and 'int' to binary 'operator%'
   18 |                 if((time[i]-(abs(x[i]-x[i-1])+abs(y[i]-y[i-1])))<0||(time[i]-(abs(x[i]-x[i-1])+abs(y[i]-y[i-1])))%2==1){
      |                                                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~
      |                                                                             |                                     |
      |                                                                             |                                     int
      |                                                                             time_t (*)(time_t*) noexcept {aka long int (*)(long int*) noexcept}