Language: C++

tr();
}

const int MOD = 1e9+7;
const LL LINF = 1001002003004005006ll;
const int INF = 1001001001;

signed main(int argc, char const *argv[])
{
    cin.tie(0);
    ios::sync_with_stdio(false);
    LL N,A,B,C,D; cin >> N >> A>>B>>C>>D;
    N--;
    LL dif = abs(A-B);
    bool ok = 0;
    for(LL i = 0; i <= N/2; i++){
        LL s = C*(N-2LL*i);
        LL l = (D-C)*i + D * (N-2LL*i);
        if(s <= dif && dif <= l) ok = 1;
    }
    if(ok) cout << "YES" << endl;
    else cout << "NO" << endl;


}

Compiler output:
a.cc:1:5: error: expected constructor, destructor, or type conversion before ';' token
    1 | tr();
      |     ^
a.cc:2:1: error: expected declaration before '}' token
    2 | }
      | ^
a.cc:5:7: error: 'LL' does not name a type
    5 | const LL LINF = 1001002003004005006ll;
      |       ^~
a.cc: In function 'int main(int, const char**)':
a.cc:10:5: error: 'cin' was not declared in this scope
   10 |     cin.tie(0);
      |     ^~~
a.cc:11:5: error: 'ios' has not been declared
   11 |     ios::sync_with_stdio(false);
      |     ^~~
a.cc:12:5: error: 'LL' was not declared in this scope
   12 |     LL N,A,B,C,D; cin >> N >> A>>B>>C>>D;
      |     ^~
a.cc:12:26: error: 'N' was not declared in this scope
   12 |     LL N,A,B,C,D; cin >> N >> A>>B>>C>>D;
      |                          ^
a.cc:12:31: error: 'A' was not declared in this scope
   12 |     LL N,A,B,C,D; cin >> N >> A>>B>>C>>D;
      |                               ^
a.cc:12:34: error: 'B' was not declared in this scope
   12 |     LL N,A,B,C,D; cin >> N >> A>>B>>C>>D;
      |                                  ^
a.cc:12:37: error: 'C' was not declared in this scope
   12 |     LL N,A,B,C,D; cin >> N >> A>>B>>C>>D;
      |                                     ^
a.cc:12:40: error: 'D' was not declared in this scope
   12 |     LL N,A,B,C,D; cin >> N >> A>>B>>C>>D;
      |                                        ^
a.cc:14:7: error: expected ';' before 'dif'
   14 |     LL dif = abs(A-B);
      |       ^~~~
      |       ;
a.cc:16:11: error: expected ';' before 'i'
   16 |     for(LL i = 0; i <= N/2; i++){
      |           ^~
      |           ;
a.cc:16:19: error: 'i' was not declared in this scope
   16 |     for(LL i = 0; i <= N/2; i++){
      |                   ^
a.cc:17:11: error: expected ';' before 's'
   17 |         LL s = C*(N-2LL*i);
      |           ^~
      |           ;
a.cc:18:11: error: expected ';' before 'l'
   18 |         LL l = (D-C)*i + D * (N-2LL*i);
      |           ^~
      |           ;
a.cc:19:12: error: 's' was not declared in this scope
   19 |         if(s <= dif && dif <= l) ok = 1;
      |            ^
a.cc:19:17: error: 'dif' was not declared in this scope
   19 |         if(s <= dif && dif <= l) ok = 1;
      |                 ^~~
a.cc:19:31: error: 'l' was not declared in this scope
   19 |         if(s <= dif && dif <= l) ok = 1;
      |                               ^
a.cc:21:12: error: 'cout' was not declared in this scope
   21 |     if(ok) cout << "YES" << endl;
      |            ^~~~
a.cc:21:29: error: 'endl' was not declared in this scope
   21 |     if(ok) cout << "YES" << endl;
      |                             ^~~~
a.cc:22:10: error: 'cout' was not declared in this scope
   22 |     else cout << "NO" << endl;
      |          ^~~~
a.cc:22:26: error: 'endl' was not declared in this scope
   22 |     else cout << "NO" << endl;
      |                          ^~~~