Language: C++

#include <bits/stdc++.h>
#define ll long long int
#define pb push_back
#define se second
#define fi first
#define rep(i, l, r) for (ll i = (ll)(l); i < (ll)(r); i++)
#define print(v) for (const auto itr : v){cout << itr << ' ';} cout << endl;
#define fastIO ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define mod 1000000007
#define endl "\n"
#define inf 1e18
using namespace std;
const ll INF = 1e18L + 5;
const ll maxn = 1e5+5, maxn1=202;
ll ceel(ll a, ll b)
{
   if (a % b == 0)
       return a / b;
   return a / b + 1;
}
ll modneg(ll a,ll m)
{
    a = a % m;
    if(a<0)
        a=a+m;
    return a;
}
ll powermod(ll x, unsigned ll y, ll p){ll res = 1;x = x % p;while (y > 0){if (y & 1){res = (res*x) % p;}y = y>>1; x = (x*x) % p;}return res;}
ll lcm(ll a, ll b) { return (a * b) / __gcd(a, b); };
ll csb(ll n){ ll count = 0;while (n){ count += n & 1; n >>= 1; } return count;}
 
int main()
{
 
ll t,i,j,k,n,m,a,b,x,y,u,temp;
cin>>t>>a>>b;
// cout<<a<<b<<endl;
a=a/t; b=b/t;
// cout<<a<<b<<endl;
rep(i,a,b+1)
    if(i%t==0)
    {
        cout<<"OK\n";
        exit(0);
    }
{
    cout<<"NG\n";
}
return 0;
}
#include <bits/stdc++.h>
#define ll long long int
#define pb push_back
#define se second
#define fi first
#define rep(i, l, r) for (ll i = (ll)(l); i < (ll)(r); i++)
#define print(v) for (const auto itr : v){cout << itr << ' ';} cout << endl;
#define fastIO ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);
#define mod 1000000007
#define endl "\n"
#define inf 1e18
using namespace std;
const ll INF = 1e18L + 5;
const ll maxn = 1e5+5, maxn1=202;
ll ceel(ll a, ll b)
{
   if (a % b == 0)
       return a / b;
   return a / b + 1;
}
ll modneg(ll a,ll m)
{
    a = a % m;
    if(a<0)
        a=a+m;
    return a;
}
ll powermod(ll x, unsigned ll y, ll p){ll res = 1;x = x % p;while (y > 0){if (y & 1){res = (res*x) % p;}y = y>>1; x = (x*x) % p;}return res;}
ll lcm(ll a, ll b) { return (a * b) / __gcd(a, b); };
ll csb(ll n){ ll count = 0;while (n){ count += n & 1; n >>= 1; } return count;}

int main()
{

ll t,i,j,k,n,m,a,b,x,y,u,temp;
cin>>t>>a>>b;
// cout<<a<<b<<endl;
// cout<<a<<b<<endl;
rep(i,a,b+1)
    if(i%t==0)
    {
        cout<<"OK\n";
        exit(0);
    }
{
    cout<<"NG\n";
}
return 0;
}
Submission Info

Compiler output:
a.cc:63:10: error: redefinition of 'const long long int INF'
   63 | const ll INF = 1e18L + 5;
      |          ^~~
a.cc:13:10: note: 'const long long int INF' previously defined here
   13 | const ll INF = 1e18L + 5;
      |          ^~~
a.cc:64:10: error: redefinition of 'const long long int maxn'
   64 | const ll maxn = 1e5+5, maxn1=202;
      |          ^~~~
a.cc:14:10: note: 'const long long int maxn' previously defined here
   14 | const ll maxn = 1e5+5, maxn1=202;
      |          ^~~~
a.cc:64:24: error: redefinition of 'const long long int maxn1'
   64 | const ll maxn = 1e5+5, maxn1=202;
      |                        ^~~~~
a.cc:14:24: note: 'const long long int maxn1' previously defined here
   14 | const ll maxn = 1e5+5, maxn1=202;
      |                        ^~~~~
a.cc:65:4: error: redefinition of 'long long int ceel(long long int, long long int)'
   65 | ll ceel(ll a, ll b)
      |    ^~~~
a.cc:15:4: note: 'long long int ceel(long long int, long long int)' previously defined here
   15 | ll ceel(ll a, ll b)
      |    ^~~~
a.cc:71:4: error: redefinition of 'long long int modneg(long long int, long long int)'
   71 | ll modneg(ll a,ll m)
      |    ^~~~~~
a.cc:21:4: note: 'long long int modneg(long long int, long long int)' previously defined here
   21 | ll modneg(ll a,ll m)
      |    ^~~~~~
a.cc:78:4: error: redefinition of 'long long int powermod(long long int, long long unsigned int, long long int)'
   78 | ll powermod(ll x, unsigned ll y, ll p){ll res = 1;x = x % p;while (y > 0){if (y & 1){res = (res*x) % p;}y = y>>1; x = (x*x) % p;}return res;}
      |    ^~~~~~~~
a.cc:28:4: note: 'long long int powermod(long long int, long long unsigned int, long long int)' previously defined here
   28 | ll powermod(ll x, unsigned ll y, ll p){ll res = 1;x = x % p;while (y > 0){if (y & 1){res = (res*x) % p;}y = y>>1; x = (x*x) % p;}return res;}
      |    ^~~~~~~~
a.cc:79:4: error: redefinition of 'long long int lcm(long long int, long long int)'
   79 | ll lcm(ll a, ll b) { return (a * b) / __gcd(a, b); };
      |    ^~~
a.cc:29:4: note: 'long long int lcm(long long int, long long int)' previously defined here
   29 | ll lcm(ll a, ll b) { return (a * b) / __gcd(a, b); };
      |    ^~~
a.cc:80:4: error: redefinition of 'long long int csb(long long int)'
   80 | ll csb(ll n){ ll count = 0;while (n){ count += n & 1; n >>= 1; } return count;}
      |    ^~~
a.cc:30:4: note: 'long long int csb(long long int)' previously defined here
   30 | ll csb(ll n){ ll count = 0;while (n){ count += n & 1; n >>= 1; } return count;}
      |    ^~~
a.cc:82:5: error: redefinition of 'int main()'
   82 | int main()
      |     ^~~~
a.cc:32:5: note: 'int main()' previously defined here
   32 | int main()
      |     ^~~~
a.cc:100:1: error: 'Submission' does not name a type
  100 | Submission Info
      | ^~~~~~~~~~