Language: C++

#ifdef __LOCAL
  #define _GLIBCXX_DEBUG
#endif
#include <bits/stdc++.h>
using namespace std;
template<typename T> bool chmax(T &a,T b) {if(a<b) {a=b; return true;} return false;}
template<typename T> bool chmin(T &a,T b) {if(a>b) {a=b; return true;} return false;}
#define itn int
#define fi first
#define se second
#define intmax numeric_limits<int>::max()
#define llmax numeric_limits<ll>::max()
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<=(int)(n);i++)
#define rrep(i,n) for(int i=(int)(n)-1;i>=0;i--)
#define rrep1(i,n) for(int i=(int)(n);i>=1;i--)
#define all(vec) vec.begin(),vec.end()
#define sortt(vec) sort((vec).begin(),(vec).end())
#define rsort(vec) sort((vec).rbegin(), (vec).rend())
typedef int128_t ll;
typedef long double ld;
typedef pair<ll,ll> pll;
typedef pair<int,int> pii;
typedef tuple<ll,ll,ll> tlll;
typedef tuple<int,int,int> tiii;
const ll mod=1e9+7;
const int inf=1<<30;
const ll lnf=1ll<<60;

int main(){
  itn n; cin >> n;
  ll a,b,c,d; cin >> a >> b >> c >> d;
  if()
  vector<ll> m={a+n/2*(c-d),a+n/2*(d-c)};
  vector<ll> l={a-d+(n-1)/2*(c-d),a-c+(n-1)/2*(d-c)};
  vector<ll> r={a+c+(n-1)/2*(c-d),a+d+(n-1)/2*(d-c)};
  if(n%2==0){
    if(l[0]<=b&&b<=l[1]||r[0]<=b&&b<=r[1]){
      cout << "YES" << endl;
      return 0;
    }
    else{
      cout << "NO" << endl;
      return 0;
    }
  }
  else{
    if(m[0]<=b&&b<=m[1]){
      cout << "YES" << endl;
      return 0;
    }
    else{
      cout << "NO" << endl;
      return 0;
    }
  }
}

Compiler output:
a.cc:20:9: error: 'int128_t' does not name a type; did you mean 'int8_t'?
   20 | typedef int128_t ll;
      |         ^~~~~~~~
      |         int8_t
a.cc:22:14: error: 'll' was not declared in this scope; did you mean 'ld'?
   22 | typedef pair<ll,ll> pll;
      |              ^~
      |              ld
a.cc:22:17: error: 'll' was not declared in this scope; did you mean 'ld'?
   22 | typedef pair<ll,ll> pll;
      |                 ^~
      |                 ld
a.cc:22:19: error: template argument 1 is invalid
   22 | typedef pair<ll,ll> pll;
      |                   ^
a.cc:22:19: error: template argument 2 is invalid
a.cc:24:15: error: 'll' was not declared in this scope; did you mean 'pll'?
   24 | typedef tuple<ll,ll,ll> tlll;
      |               ^~
      |               pll
a.cc:24:18: error: 'll' was not declared in this scope; did you mean 'pll'?
   24 | typedef tuple<ll,ll,ll> tlll;
      |                  ^~
      |                  pll
a.cc:24:21: error: 'll' was not declared in this scope; did you mean 'pll'?
   24 | typedef tuple<ll,ll,ll> tlll;
      |                     ^~
      |                     pll
a.cc:24:23: error: template argument 1 is invalid
   24 | typedef tuple<ll,ll,ll> tlll;
      |                       ^
a.cc:24:23: error: template argument 2 is invalid
a.cc:24:23: error: template argument 3 is invalid
a.cc:26:7: error: 'll' does not name a type; did you mean 'pll'?
   26 | const ll mod=1e9+7;
      |       ^~
      |       pll
a.cc:28:7: error: 'll' does not name a type; did you mean 'pll'?
   28 | const ll lnf=1ll<<60;
      |       ^~
      |       pll
a.cc: In function 'int main()':
a.cc:32:3: error: 'll' was not declared in this scope; did you mean 'pll'?
   32 |   ll a,b,c,d; cin >> a >> b >> c >> d;
      |   ^~
      |   pll
a.cc:32:22: error: 'a' was not declared in this scope
   32 |   ll a,b,c,d; cin >> a >> b >> c >> d;
      |                      ^
a.cc:32:27: error: 'b' was not declared in this scope
   32 |   ll a,b,c,d; cin >> a >> b >> c >> d;
      |                           ^
a.cc:32:32: error: 'c' was not declared in this scope
   32 |   ll a,b,c,d; cin >> a >> b >> c >> d;
      |                                ^
a.cc:32:37: error: 'd' was not declared in this scope
   32 |   ll a,b,c,d; cin >> a >> b >> c >> d;
      |                                     ^
a.cc:33:6: error: expected primary-expression before ')' token
   33 |   if()
      |      ^
a.cc:34:12: error: template argument 2 is invalid
   34 |   vector<ll> m={a+n/2*(c-d),a+n/2*(d-c)};
      |            ^
a.cc:34:14: error: scalar object 'm' requires one element in initializer
   34 |   vector<ll> m={a+n/2*(c-d),a+n/2*(d-c)};
      |              ^
a.cc:35:12: error: template argument 2 is invalid
   35 |   vector<ll> l={a-d+(n-1)/2*(c-d),a-c+(n-1)/2*(d-c)};
      |            ^
a.cc:35:14: error: scalar object 'l' requires one element in initializer
   35 |   vector<ll> l={a-d+(n-1)/2*(c-d),a-c+(n-1)/2*(d-c)};
      |              ^
a.cc:36:12: error: template argument 2 is invalid
   36 |   vector<ll> r={a+c+(n-1)/2*(c-d),a+d+(n-1)/2*(d-c)};
      |            ^
a.cc:36:14: error: scalar object 'r' requires one element in initializer
   36 |   vector<ll> r={a+c+(n-1)/2*(c-d),a+d+(n-1)/2*(d-c)};
      |              ^
a.cc:48:8: error: 'm' was not declared in this scope
   48 |     if(m[0]<=b&&b<=m[1]){
      |        ^