Language: C++

#include <cstdio>
#include <cmath>
using namespace std;
int n, to, xo, yo, tn, xn, yn, t, d;
int main() {
	scanf("%d", &n);
	for(int i=1; i<=n; i++) {
		scanf("%d%d%d", &tn, &xn, &yn);
		t = abs(tn - to);
		d = abs(xn - xo) + abs(yn - yo);
		if(t<d || (t-d)%2) {puts("No"); return 0;}
		to=tn, xo=xn, yo=yn;
	}
	puts("Yes");
	return 0;
}

Compiler output:
a.cc:4:28: error: 'int yn' redeclared as different kind of entity
    4 | int n, to, xo, yo, tn, xn, yn, t, d;
      |                            ^~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:683,
                 from /usr/include/c++/14/cstdio:41,
                 from a.cc:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:258:1: note: previous declaration 'double yn(int, double)'
  258 | __MATHCALL (yn,, (int, _Mdouble_));
      | ^~~~~~~~~~
a.cc: In function 'int main()':
a.cc:10:43: warning: pointer to a function used in arithmetic [-Wpointer-arith]
   10 |                 d = abs(xn - xo) + abs(yn - yo);
      |                                        ~~~^~~~
a.cc:10:39: error: no matching function for call to 'abs(double (*)(int, double) noexcept)'
   10 |                 d = abs(xn - xo) + abs(yn - yo);
      |                                    ~~~^~~~~~~~~
In file included from /usr/include/c++/14/bits/std_abs.h:38,
                 from /usr/include/c++/14/cmath:49,
                 from a.cc:2:
/usr/include/stdlib.h:980:12: note: candidate: 'int abs(int)' (near match)
  980 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
      |            ^~~
/usr/include/stdlib.h:980:12: note:   conversion of argument 1 would be ill-formed:
a.cc:10:43: error: invalid conversion from 'double (*)(int, double) noexcept' to 'int' [-fpermissive]
   10 |                 d = abs(xn - xo) + abs(yn - yo);
      |                                        ~~~^~~~
      |                                           |
      |                                           double (*)(int, double) noexcept
/usr/include/c++/14/bits/std_abs.h:85:3: note: candidate: 'constexpr __int128 std::abs(__int128)' (near match)
   85 |   abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:85:3: note:   conversion of argument 1 would be ill-formed:
a.cc:10:43: error: invalid conversion from 'double (*)(int, double) noexcept' to '__int128' [-fpermissive]
   10 |                 d = abs(xn - xo) + abs(yn - yo);
      |                                        ~~~^~~~
      |                                           |
      |                                           double (*)(int, double) noexcept
/usr/include/c++/14/bits/std_abs.h:61:3: note: candidate: 'long long int std::abs(long long int)' (near match)
   61 |   abs(long long __x) { return __builtin_llabs (__x); }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:61:3: note:   conversion of argument 1 would be ill-formed:
a.cc:10:43: error: invalid conversion from 'double (*)(int, double) noexcept' to 'long long int' [-fpermissive]
   10 |                 d = abs(xn - xo) + abs(yn - yo);
      |                                        ~~~^~~~
      |                                           |
      |                                           double (*)(int, double) noexcept
/usr/include/c++/14/bits/std_abs.h:56:3: note: candidate: 'long int std::abs(long int)' (near match)
   56 |   abs(long __i) { return __builtin_labs(__i); }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:56:3: note:   conversion of argument 1 would be ill-formed:
a.cc:10:43: error: invalid conversion from 'double (*)(int, double) noexcept' to 'long int' [-fpermissive]
   10 |                 d = abs(xn - xo) + abs(yn - yo);
      |                                        ~~~^~~~
      |                                           |
      |                                           double (*)(int, double) noexcept
/usr/include/c++/14/bits/std_abs.h:137:3: note: candidate: 'constexpr __float128 std::abs(__float128)'
  137 |   abs(__float128 __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:137:18: note:   no known conversion for argument 1 from 'double (*)(int, double) noexcept' to '__float128'
  137 |   abs(__float128 __x)
      |       ~~~~~~~~~~~^~~
/usr/include/c++/14/bits/std_abs.h:79:3: note: candidate: 'constexpr long double std::abs(long double)'
   79 |   abs(long double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:79:19: note:   no known conversion for argument 1 from 'double (*)(int, double) noexcept' to 'long double'
   79 |   abs(long double __x)
      |       ~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/std_abs.h:75:3: note: candidate: 'constexpr float std::abs(float)'
   75 |   abs(float __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:75:13: note:   no known conversion for argument 1 from 'double (*)(int, double) noexcept' to 'float'
   75 |   abs(float __x)
      |       ~~~~~~^~~
/usr/include/c++/14/bits/std_abs.h:71:3: note: candidate: 'constexpr double std::abs(double)'
   71 |   abs(double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:71:14: note:   no known conversion for argument 1 from 'double (*)(int, double) noexcept' to 'double'
   71 |   abs(double __x)
      |       ~~~~~~~^~~
a.cc:12:34: error: invalid conversion from 'double (*)(int, double) noexcept' to 'int' [-fpermissive]
   12 |                 to=tn, xo=xn, yo=yn;
      |                                  ^~
      |                                  |
      |                                  double (*)(int, double) noexcept