criyle/codenet-compile-errors huggingface dataset:
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
 int K,A,B;
 cin>>K>>A>>B;
 if((A+K=1)/K+1<=(B+K-1)/K){
   cout<<"Yes"<<endl;
 }
  else{
    cout<<"No",<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: lvalue required as left operand of assignment
    7 |  if((A+K=1)/K+1<=(B+K-1)/K){
      |      ~^~
a.cc:11:16: error: expected primary-expression before '<' token
   11 |     cout<<"No",<endl;
      |                ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
int k,a,b;
cin>>k;
cin>>a>>b;
for(int i=a;i<b+1;i++){
if(i%k==0){
cout<<"OK"<<endl;
return;
}
}
cout<<"NG"<<endl;


}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:1: error: return-statement with no value, in function returning 'int' [-fpermissive]
   11 | return;
      | ^~~~~~
Language: C++

//Author- Vaibhav singh
//will be expert soon 
// *#####################################################################################*
#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define YES cout<<"YES"<<"\n";
#define NO cout<<"NO"<<"\n";
#define yes cout<<"yes"<<"\n";
#define no cout<<"no"<<"\n";
#define No cout<<"No"<<"\n";
#define Yes cout<<"Yes"<<"\n";
#define f(i,a) for(i=0;i<a;i++)
#define en "\n"
#define ull unsigned long long int
#define o(x) cout<<x<<"\n";
#define o1(x) cout<<x<<" ";
#define pb push_back
#define mp make_pair
#define fast ios_base::sync_with_stdio(false);cin.tie(NULL);
#define test ll t;cin>>t;while(t-->0)
const ll Mod = 998244353;
#define mod 1000000007
#define re return 0;
// *#######################################################################################*

/*ll gcd(ll a, ll b) 
{ 
    if (b == 0) 
        return a; 
    return gcd(b, a % b); 
} 
*/

/*void calculateprime()
{
    //calculating primes
    prime[0] = prime[1] = 1 ;
    for(int i = 2 ; (ll)i*i <= 10000000 ; i++)
    {
        if(prime[i] == 0)
        {
            for(ll j = i*i ; j <= 10000000 ; j += i )
            {
                prime[j] = 1 ;
            }
        }
    }
}  */


ll cdigit(ll n)
{ ll c=0,f=0;
 while(n>0){
 ll rem=n%10;
 c+=rem;
n=n/10;}
return c;
} 


ll div(ll n)
{
      ll c=0,i;
for(i=1;i*i<=n;i++)
{
      if(n%i==0)
      {
       c++;
           if(n/i!=i)
           {
                 c++;
           }
            
            
      }
}
      return c;
}



// *#########################################################################################*

int main()
{
      fast
 
    
      ll k,a,b;
      cin>>k>>a>>b;
      ll f=0;
      for(i=a;i<=b;i++)
      {
            if(i%k==0)
            {
                  f=1;
                  break;
            }
      }
      
      if(f==1)
      {
            o("OK")
      }
else
{
      o("NG")
}







re}

Compiler output:
a.cc: In function 'int main()':
a.cc:93:11: error: 'i' was not declared in this scope
   93 |       for(i=a;i<=b;i++)
      |           ^
Language: C++

#include <cstdio>
using namespace std; 
int main() {
  short k, a, b; 
  scanf("%hd%hd%hd", &k, &a, &b); 
  if (a-b+1 >= k) 
    printf("%s", "OK"); 
  else {
    if (a % k == 0) {
      printf("%s", "OK"); 
    else {
    	printf("%s", "NG"); 
    }
  }
  return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected '}' before 'else'
   11 |     else {
      |     ^~~~
a.cc:9:21: note: to match this '{'
    9 |     if (a % k == 0) {
      |                     ^
Language: C++

#include  "bits/stdc++.h"
//#include  <iostream>
 using namespace std;
 
#define IOS         ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); 
#define mem(a,v)    memset((a), (v), sizeof (a))
#define FOR(i,a,n)  for(int i = (a); i<(n); ++i) 
#define FORE(i,a,n) for(int i = (a); i<=(n); ++i)
#define mp(a , b)   make_pair(a , b)
#define pb(a)       push_back(a)

#define anal         '\n'

#define mod 1000000009


typedef long long ll;


 

int main(){
     
 IOS;
 
 #ifndef ONLINE_JUDGE  
    freopen("input.in", "r", stdin);
    freopen("output.in", "w", stdout);
 #else
// online submission
#endif 

 // -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
   
    int k , a, b,
     cin >> k >> a >> b;

      while(a <= b){
      	 if(a % k == 0){
      	 	  cout << "OK";
      	 	  return 0;
      	 }
        a++;
      }
      cout << "NG";
  return  0 ;      
}        


Compiler output:
a.cc: In function 'int main()':
a.cc:36:10: error: expected initializer before '>>' token
   36 |      cin >> k >> a >> b;
      |          ^~
Language: Java

import java.util.*;
import java.math.*;
public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int k = in.nextInt();
		int a = in.nextInt();
		int b = in.nextInt();
		int a;
		for(i = a; i <= b; i++) {
			if(i % k == 0) {
				System.out.println('OK');
				break;
			}
		}
		if(i > b) System.out.println('NG');
	}
} 


Compiler output:
Main.java:12: error: unclosed character literal
				System.out.println('OK');
				                   ^
Main.java:12: error: unclosed character literal
				System.out.println('OK');
				                      ^
Main.java:12: error: not a statement
				System.out.println('OK');
				                     ^
Main.java:16: error: unclosed character literal
		if(i > b) System.out.println('NG');
		                             ^
Main.java:16: error: unclosed character literal
		if(i > b) System.out.println('NG');
		                                ^
Main.java:16: error: not a statement
		if(i > b) System.out.println('NG');
		                               ^
6 errors
Language: C++

#include<iostream>
using namespace std;
int main()
{  
     int a,b,k;
  cin>>k;
  cin>>a>>b;
  int c=0;
  for(i=a;i<=b;i++)
  {
    if(i%k==0)
      c++;
  }
  if(c>0)
cout<<"OK";
  else
    cout<<"NG";
  return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: 'i' was not declared in this scope
    9 |   for(i=a;i<=b;i++)
      |       ^
a.cc:18:12: error: expected '}' at end of input
   18 |   return 0;
      |            ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main() {
  int K, A, B;
  cin >> N >> A >> B;
  if ((B-A+1) / K > 0) cout << "OK" << endl;
  else cout << "NG" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: 'N' was not declared in this scope
    6 |   cin >> N >> A >> B;
      |          ^
Language: C++

#include <bits/stdc++.h>
#define Max(xx,yy) (xx > yy ? xx : yy);
#define Min(xx,yy) (xx < yy ? xx : yy);

using namespace std;
 
bool isDebug;
 
template<typename... T>
void dbg(T... args){
	if(!isDebug)
		return;
	
	#ifdef LOCAL
		((cout << args << " "),...) << "\n";
	#endif
}
               
int t,n;
    
int main(int argc, char* argv[]){
	ios_base :: sync_with_stdio(false);
	cout.tie(NULL), cin.tie(NULL);
	isDebug = (argc > 1 && string(argv[1]) == "debug");
	                              
	int n,a,b;
	cin >> n >> a >> b;
	
	for(int i = a;i <= b;i++){
	 	if(i % n == 0){
	 	 	cout << "OK";
			return 0;
		}
	}
	else cout << "NG";
}


Compiler output:
a.cc: In function 'int main(int, char**)':
a.cc:35:9: error: 'else' without a previous 'if'
   35 |         else cout << "NG";
      |         ^~~~
Language: C

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < (n); ++i)
using ll= long long;

int main(){
  int k,a,b;
  cin>>k>>a>>b;
  bool flag =false;
  for(int i=a;i<=b;i++){
    if (i%k==0) flag =true;
  }
  if (flag) cout <<"OK";
  else cout << "NG";
}
  

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std
  int main()
{
  int k;
  cin>>k;
  int A,B;
  cin>>A>>B;
  for(int i=A;i<=B;i++)
  {
    if(i%k==0)
    {
      cout<<"OK";
      return;
    }
  }
  cout<<"NG";
  return 0
}

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 |   int main()
      |   ~~~               
a.cc: In function 'int main()':
a.cc:14:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   14 |       return;
      |       ^~~~~~
a.cc:18:11: error: expected ';' before '}' token
   18 |   return 0
      |           ^
      |           ;
   19 | }
      | ~
Language: C

#include<bits/stdc++.h>
using namespace std;

long long int k, a, b;

void solve() {
	cin >> k >> a >> b;
	int flag = 0;
	for (int i = a; i <= b; i++) {
		if (i % k == 0) {
			flag = 1;
			break;
		}
	}
	if (flag)
		cout << "OK";
	else
		cout << "NG";
}

int main()
{
#ifndef ONLINE_JUDGE
	freopen("input.txt", "r", stdin);
	freopen("output.txt", "w", stdout);
#endif

	ios_base::sync_with_stdio(false);
	cin.tie(NULL);

	solve();

	return 0;
}

Compiler output:
main.c:1:9: fatal error: bits/stdc++.h: No such file or directory
    1 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#define rep(i, n) for(int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(),(x).end()
typedef long long ll;
// #include<C:\Users\J\Desktop\AC\athead.h>
#define showa(v) for(int iii = 0; iii < v.size(); iii++){ cout << v[iii] << " ";} cout << endl;
#define show(iiii) cout << iiii << endl; 
#define shows(iiiii) cout << iiiii << " ";
#include<iostream>
#include<string>
#include<vector>
#include<stdio.h>
#include <cmath>
#include <cstdlib>
#include <cassert>
#include <algorithm>
#include <set>
#include <deque>
#include <numeric>
#include<tuple>
#include <utility>
#include <map>
#include<stack>
#include<queue>
#include <cassert>
using namespace std;

 
int main(){
        int k, a, b;
    cin >> k >> a >> b;
    int bb = b/k;
    if(bb == 0){
        cout << "NG" << endl;

    }
    else{
        int aa = a/k;
        if( a % k == 0){
            cout << "OK" << endl;
        }
        else{
            if(aa < bb){
                cout << "OK" << endl;
            }
            else{
                cout << "NG" <<endl;
            }
        }
    }
}

Compiler output:
main.c:8:9: fatal error: iostream: No such file or directory
    8 | #include<iostream>
      |         ^~~~~~~~~~
compilation terminated.
Language: C++

//rohitaas_15
#include<bits/stdc++.h>
//#include<ext/pb_ds/assoc_container.hpp>
//#include<ext/pb_ds/tree_policy.hpp>
//using namespace __gnu_pbds;
using namespace std;
//typedef tree<int, null_type, less<int>, rb_tree_tag,tree_order_statistics_node_update> o_set;
#define ll  long long
#define int ll
#define um(a,b) unordered_map<a,b>
#define fastio() ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0)
#define all(v) v.begin(),v.end()
#define f(a,b) for(ll i=a;i<=b;i++)
#define pb push_back
#define mp make_pair
#define pii pair<ll,ll>
#define ff first
#define ss second
#define lb(v,x) lower_bound(v.begin(),v.end(),x)
#define ub(v,x) upper_bound(v.begin(),v.end(),x)
#define show(x) cout<<x<<"\n"
#define printvector(v,n) f(0,n-1){cout<<v[i]<<" ";}
#define input(v,n) f(0,n-1){cin>>v[i];}
#define vr vector<ll>
#define check() cout<<"hi"<<"\n"
#define MOD 1000000007
//#define endl "\n"
#define len() length()
#define maxv(v) *max_element(all(v));
#define minv(v) *min_element(all(v));
#define sumv(v) accumulate(all(v),0)
#define test() ll t;cin>>t;while(t--)
ll search(vr arr, ll l, ll r, ll x){if (r >= l) {ll mid = l + (r - l) / 2;if (arr[mid] == x)return mid;if (arr[mid] > x)return search(arr, l, mid - 1, x);return search(arr, mid + 1, r, x);} return -1;}
ll gcd(ll a, ll b){if(!b)return a;return gcd(b, a % b);}
ll lcm(ll a , ll b){return (a*b)/ gcd(a,b);}
ll power(ll x, 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 modInverse(ll n, ll p){return power(n, p-2, p);}
ll CmP(ll n, ll r, ll p=MOD){if (r==0)return 1;ll fac[n+1];fac[0] = 1;for (ll i=1 ; i<=n; i++)fac[i] = fac[i-1]*i%p; return (fac[n]* modInverse(fac[r], p) % p *modInverse(fac[n-r], p) % p) % p; }
/*ll constructSTUtil(vr v,ll start,ll end,int *st,ll index)
{
	if(start==end)
	{
		st[index]=v[start];
		return st[index];
	}
	ll mid=(start+end)/2;
	st[index]=constructSTUtil(v,start,mid,st,2*index)+constructSTUtil(v,mid+1,end,st,2*index+1);
	return st[index];
}
ll *constructST(vr v,ll n)
{
	ll po=(ll)(ceil(log2(n)));
	ll msize=2*power(2,po)+1;
	vr st[msize];
	constructSTUtil(v,0,n-1,st,1);
	return st;
}*/
ll ask1(ll y)
{
	cout<<1<<" "<<y<<endl;
	ll x;
	cin>>x;
	return x;
}
bool compare(pair<ll,ll> &a,pair<ll,ll> &b)
{
	return a.second<b.second;
}
signed main()
{
	/*
	#ifndef ONLINE_JUDGE
	 freopen("input.txt","r",stdin);
	 freopen("output.txt","w",stdout);
	 #endif
	 //*/
	 /*ll t;
	 cin>>t;
	 ll cccc=t;
	 while(t--)
	 {
	 */
	 	ll a,b,k;
	 	cin>>a>>b;
	 	cin>>k;
	 	ll flag=0;
	 	f(a,b)
	 	{
	 		if(i%k==0)
	 		{
	 			show("OK");
	 			flag=1;
	 			break;
	 		}
	 	}
	 	if(!flag)
	 	{
	 		show("NG")
	 	}
	 //}
	/*cout<<"Case #"<<cccc-t<<": ";*/

}


Compiler output:
a.cc: In function 'int main()':
a.cc:99:17: error: expected ';' before '}' token
   99 |                 }
      |                 ^
Language: C++

#include<bits/stdc++.h>
#define pb push_back
#define mp make_pair
#define se second
#define fi first
#define ll long long int
#define INF INT_MAX
#define mod 1000000007
#define chutiyaap ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL)
using namespace std;
int main()
{
    chutiyaap;
    int k,a,b;cin>>k>>a>>b;
    if(k==1)
    {
        cout<<"OK";
        return -;
    }
    int r1=a/k,r2=b/k;
    if(r2>r1)cout<<"OK";
    else cout<<"NG";

}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:17: error: expected primary-expression before ';' token
   18 |         return -;
      |                 ^
Language: C

#include <bits/stdc++.h>
using namespace std;

int main() {
    int K, a, b;
    string ret = "NG";

    cin >> K >> a >> b;

    for(int i = a; i <= b; i++) {
        if(i % K == 0) {
            ret = "OK";
            break;
        }
    }

    cout << ret << endl;
    return 0;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C


// Problem : A - We Love Golf
// Contest : AtCoder - AtCoder Beginner Contest 165
// URL : https://atcoder.jp/contests/abc165/tasks/abc165_a
// Memory Limit : 1024 MB
// Time Limit : 2000 ms
// Powered by CP Editor (https://github.com/cpeditor/cpeditor)

#include <bits/stdc++.h>

#define FIO ios_base::sync_with_stdio(0); cin.tie(0);
#define T() int tt; cin >> tt; rep1(qq,1,tt)
#define rep(i,start,lim) for(int i=start;i<lim;i++)
#define rep1(i,start,lim) for(int i=start; i<=lim; ++i)
#define repd(i,start,lim) for(int i=start;i>=lim;i--)
#define mp make_pair
#define pb push_back
#define ff first
#define ss second
#define br cout<<"\n"
#define MOD (1000000007LL)
#define all(v) (v).begin(), (v).end()
#define rall(v) (v).rbegin(), (v).rend()
#define eps (1e-6)
#define what_is(x) cerr << #x << " is " << x << "\n";
#define int long long int
#define infll 9e18
#define inf 1e12

#define lnode (2 * node + 1)
#define rnode (2 * node + 2)

using namespace std;

typedef pair<int, int> pii;

const int N = 3 * 1e6 + 2;

int n, k;

int32_t main(){

  FIO
  //cout << fixed << setprecision(10);
  //freopen("input.txt", "r", stdin);
  //freopen("output.txt", "w", stdout);

  cin >> k;
  int a, b;
  if(k == 1) return cout << "OK\n", 0;
  cin >> a >> b;
  if((a / k) * k >= a && (a / k) * k <= b) cout << "OK\n";
  else if((a / k) * k + k <= b) cout << "OK\n";
  else cout << "NG\n";


	return 0;
}






Compiler output:
main.c:9:10: fatal error: bits/stdc++.h: No such file or directory
    9 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>

void main()
{
  int k , a , b;
  cin>> k >> a >> b;
  
  int mini = (a/k);
  
  if((mini+2)*k <= b)
    cout<<"OK";
  else 
    cout<<"NG";
  
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | void main()
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>> k >> a >> b;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout<<"OK";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:13:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |     cout<<"NG";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

// #pragma GCC target("avx,avx2,fma")
// #pragma GCC optimization ("Ofast")
// #pragma GCC optimization ("unroll-loops")
#include<bits/stdc++.h>

using namespace std;

typedef long long ll;
typedef pair<int , int> pii;
typedef pair<ll, ll> pll;
typedef vector<pii> vii;
typedef vector<pll> vll;
#define mod 1000000007
#define rep(i, a, b) for(ll i = a; i < b; i++)
#define repc(i, a, b, c) for (ll i = a; (c > 0 ? i < b : i > b) and c != 0; i += c)
// #define mp make_pair
#define fi first
#define si second
#define pb push_back
#define all(name) name.begin(), name.end()
#define ral(name) name.rbegin(), name.rend()
#define fact(n) rep(i, 1, n+1)ft.pb((ft[i-1]*i)%mod)
#define mod_in(a) power(a, mod - 2)
#define ncr(n, r) (n>=r?((ft[n]*mod_in((ft[r]*ft[(n)-(r)])%mod))%mod):0LL)
#define deb(x) cerr << "[" << #x << " " << x << "]" << endl;
#define endl '\n'
// #define int ll
vector<ll> ft(1, 1LL);

/*======================================================================*/


void solve(){
    int a, b, k;
    cin >> k >> a >> b;
    rep(i, a, b+1){if(i%k == 0){cout << "OK";return;}}
    cout << "NG";
}
signed main() {
    ios_base::sync_with_stdio(false);
    cin.tie(NULL);cout.tie(NULL);
    int t = 1;
    //cin >> t;
    while(t--){
        solve();
    }
}

Compiler output:
main.c:4:9: fatal error: bits/stdc++.h: No such file or directory
    4 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
using namespace std;

#define all(v) v.begin(), v.end()
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define intll int long long
const int INF = 1e9;
const int MOD = 1e9 + 7;

int main() {
  int k , a , b ;
  cin >> k >> a >>  b ;
  bool ans = false ;
  
  rep(i,10000){
    int x = k ;
    x *= i ;
    if(x>= a && x<= b) ans = true;
  }
  
  if(ans) cout << "OK";
  else    cout << "NG" ;


}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
#include<windows.h>
using namespace std;
int main() {
	ios_base::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
	int k;
	cin>>k;
	int a,b;
	cin>>a>>b;
	for(int i=a;i<b;i++)
	{
		if(i%k==0)
		{
			cout<<"OK"<<endl;
			return 0;
		}
	}
	cout<<"NG"<<endl;
}

Compiler output:
a.cc:2:9: fatal error: windows.h: No such file or directory
    2 | #include<windows.h>
      |         ^~~~~~~~~~~
compilation terminated.
Language: C

//“Make it work, make it right, make it fast.” – Kent Beck
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef double dd;
const int siz = 1e6 + 5;
const int MOD = 1e9 + 7;
#define endl '\n'
#define deb(x) cout << #x << " = " << x << endl;

void solve(){
	int k;
	cin >> k;
	int a, b;
	cin >> a >> b;
	int s = a/k;
	bool flag = false;
	while(s <= b){
		int x = s*k;
		if( x >= a && x <= b){
			flag = true;
			break;
		}
		s++;
	}
	if(flag)
		cout << "OK";
	else
		cout << "NG";
}

int main(){
	#ifndef RAY
		//freopen("input.txt", "r", stdin);
	#endif
		ios::sync_with_stdio(false);
		cin.tie(nullptr);
		int t = 1;
		//cin >> t;
		while(t--){
			solve();
		}
	return 0;
}	


Compiler output:
main.c:2:9: fatal error: bits/stdc++.h: No such file or directory
    2 | #include<bits/stdc++.h>
      |         ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
#define r1(i, n) for (int i=0;i<n;i++)
#define r2(i, n) for (int i=1;i<n+1;i++)
#define intc(n) int n; cin >> n;
#define ll long long
#define llc(n) ll n; cin >> n;
#define stringc(s) string s; cin >> s;
using namespace std;
int main() {
  int k,a,b;
  cin >> k >> a >> b;
  string s="NG";
  if(a+k<=b) s="OK";
  else {
    a=a%k;
    b=b%k;
    if(a>b || a*b==0) s="OK";
  cout << s << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:2: error: expected '}' at end of input
   19 | }
      |  ^
a.cc:9:12: note: to match this '{'
    9 | int main() {
      |            ^
Language: C

K = input()
A,B = input().split()

for i in range(int(A), int(B)):
    if i % int(K) == 0:
        print('OK')
        exit()
    
print('NG')

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | K = input()
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'K' [-Wimplicit-int]
main.c:1:5: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | K = input()
      |     ^~~~~
main.c:1:5: error: initializer element is not constant
main.c:2:1: error: expected ',' or ';' before 'A'
    2 | A,B = input().split()
      | ^
main.c:6:15: warning: multi-character character constant [-Wmultichar]
    6 |         print('OK')
      |               ^~~~
main.c:9:7: warning: multi-character character constant [-Wmultichar]
    9 | print('NG')
      |       ^~~~
Language: C++

using namespace std;
int main(){
	int n,i,j,k,m,a,b;
	cin>>k>>a>>b;
	int fl=0;
	for(i=a;i<=b;i++){
		if(i%k==0){
			fl=1;break;
		}
	}
	if(fl)cout<<"OK";
	else cout<<"NG";
	getchar();getchar();
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin>>k>>a>>b;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:11:15: error: 'cout' was not declared in this scope
   11 |         if(fl)cout<<"OK";
      |               ^~~~
a.cc:11:15: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:14: error: 'cout' was not declared in this scope
   12 |         else cout<<"NG";
      |              ^~~~
a.cc:12:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:13:9: error: 'getchar' was not declared in this scope
   13 |         getchar();getchar();
      |         ^~~~~~~
a.cc:1:1: note: 'getchar' is defined in header '<cstdio>'; this is probably fixable by adding '#include <cstdio>'
  +++ |+#include <cstdio>
    1 | using namespace std;
Language: Java



import java.io.*;


public class Solve {
    public static void main(String[] args) throws IOException {
        Reader reader=new Reader();
        PrintWriter pw=new PrintWriter(System.out);
        int t=reader.nextInt();
        int a=reader.nextInt();
        int b=reader.nextInt();
        for (int i = a; i <=b; i++) {
            if (i%t==0) {
                System.out.println("OK");
                return;
            }
            
        }
        System.out.println("NG");

        pw.close();
    }
}

 class Reader {
    final private int BUFFER_SIZE = 1 << 16;
    private DataInputStream din;
    private byte[] buffer;
    private int bufferPointer, bytesRead;

    public Reader() {
        din = new DataInputStream(System.in);
        buffer = new byte[BUFFER_SIZE];
        bufferPointer = bytesRead = 0;
    }

    public Reader(String file_name) throws IOException {
        din = new DataInputStream(new FileInputStream(file_name));
        buffer = new byte[BUFFER_SIZE];
        bufferPointer = bytesRead = 0;
    }

    public String readLine() throws IOException {
        byte[] buf = new byte[64];
        int cnt = 0, c;
        while ((c = read()) != -1) {
            if (c == '\n') break;
            buf[cnt++] = (byte) c;
        }
        return new String(buf, 0, cnt);
    }

    public int nextInt() throws IOException {
        int ret = 0;
        byte c = read();
        while (c <= ' ') c = read();
        boolean neg = (c == '-');
        if (neg) c = read();
        do {
            ret = ret * 10 + c - '0';
        } while ((c = read()) >= '0' && c <= '9');
        if (neg) return -ret;
        return ret;
    }

    public long nextLong() throws IOException {
        long ret = 0;
        byte c = read();
        while (c <= ' ') c = read();
        boolean neg = (c == '-');
        if (neg) c = read();
        do {
            ret = ret * 10 + c - '0';
        } while ((c = read()) >= '0' && c <= '9');
        if (neg) return -ret;
        return ret;
    }

    public double nextDouble() throws IOException {
        double ret = 0, div = 1;
        byte c = read();
        while (c <= ' ') c = read();
        boolean neg = (c == '-');
        if (neg) c = read();
        do {
            ret = ret * 10 + c - '0';
        } while ((c = read()) >= '0' && c <= '9');
        if (c == '.') while ((c = read()) >= '0' && c <= '9') ret += (c - '0') / (div *= 10);
        if (neg) return -ret;
        return ret;
    }

    private void fillBuffer() throws IOException {
        bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE);
        if (bytesRead == -1) buffer[0] = -1;
    }

    private byte read() throws IOException {
        if (bufferPointer == bytesRead) fillBuffer();
        return buffer[bufferPointer++];
    }

    public void close() throws IOException {
        if (din == null) return;
        din.close();
    }
}



Compiler output:
Main.java:6: error: class Solve is public, should be declared in a file named Solve.java
public class Solve {
       ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;


int main() {
    int N,M,O,cnt=0;
    cin >> N >> M >> O;

    for(int i=K;i<=O;i++){
        if (i%N==0){
            cout << "OK" << endl;
            cnt=1;
            break;
        }
    }
    if(cnt==0)cout << "NO" << endl;

    

}




Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: 'K' was not declared in this scope
    9 |     for(int i=K;i<=O;i++){
      |               ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using Graph = vector<vector<int>>;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
const long long MOD=1e9+7;

int main() {
    int k,a,b;
    cin>>k>>a>>b;
    int exist=0;
    for(int i=k;i<=b;i+=k)
        if(i>=a) exist+;
    if(exist>0) cout<<"OK"<<endl;
    else cout<<"NG"<<endl;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: expected primary-expression before ';' token
   12 |         if(i>=a) exist+;
      |                        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;

int n,m,k;
bool ok;
int main(){
	cin>>k;
	cin>>n>>m;
	for (int i=n;i<=m;i++){
		if (i mod k==0) ok=true;
	}
	if (ok==true)cout<<"OK\n";
	else cout<<"NG\n";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: expected ')' before 'mod'
   10 |                 if (i mod k==0) ok=true;
      |                    ~ ^~~~
      |                      )
Language: C

#include <cstdio>
#include <iostream>
#include <algorithm>
#include <vector>
#include <numeric>
#include <map>
typedef long long ll;
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;




int main() {
	int k,a,b;
	cin >> k>>a>>b;
	int x = b - a;
	if (k % x == 0) {
		cout << "NG" << endl;
	}
	else cout << "OK" << endl;


	return 0;
}

Compiler output:
main.c:1:10: fatal error: cstdio: No such file or directory
    1 | #include <cstdio>
      |          ^~~~~~~~
compilation terminated.
Language: C++

#include <bits>/stdc++.h>

using namespace std;

int main(){
int k, a, b;
  cin>>k>>a>>b;
  string ans = "NG";
  for(int i = a; i<b+1; i++)
  {
  if(i%k==0){
  	ans = "OK";
    break;
  }
  }
  cout<<ans;

return 0;
}

Compiler output:
a.cc:1:16: warning: extra tokens at end of #include directive
    1 | #include <bits>/stdc++.h>
      |                ^
a.cc:1:10: fatal error: bits: No such file or directory
    1 | #include <bits>/stdc++.h>
      |          ^~~~~~
compilation terminated.
Language: C++

#include <iostream>

int main()
{
	int n = 0;
	cin >> n;

	int s, l;
	cin >> s >> l;
	bool  is_found = false;
	for (int i = s; i < l; i++)
	{
		if (i % 7 == 0)
		{
			is_found = true;
		}
	}
	cout << (is_found ? "OK" : "NG");

	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         cin >> n;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:18:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |         cout << (is_found ? "OK" : "NG");
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main() {	
  int k;
  cin >> k;
  int a,b;
  cin >> a >> b;
  if (a/k == b/k) cout << "OK";
  else if (a%k == 0 || b %k == 0) cout << "OK";
  else cout << "NG"
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected ';' before 'return'
   12 |   else cout << "NG"
      |                    ^
      |                    ;
   13 |   return 0;
      |   ~~~~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
  int K;
  int A, B;
  cin >> K >> A >> B;
  for (int i = A; i <= B; i++) {
    if (i % K == 0) {
      cout << "OK";
      return;
    }
  }
  cout << "NG";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
   11 |       return;
      |       ^~~~~~
Language: C++

#include <iostream>
using namespace std;
int main()
{
	int K;
	int A;
	int B;
	cin >> K >> A >> B;
	
	
	
	if(A%K==0) || (B%K==0)){
		std::cout <<  "Yes" <<  std::endl;
	}else{
		std::cout <<  "No" <<  std::endl;
	}
	
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:20: error: expected primary-expression before '||' token
   12 |         if(A%K==0) || (B%K==0)){
      |                    ^~
Language: C++

//#pragma GCC optimize(2)
#include <bits/stdc++.h>
#define ll long long
#define sc(x) scanf("%lld",&x)
#define scs(x) scanf("%s",x)
#define pr(x) printf("%lld\n",x)
#define prs(x) printf("%s\n",x)
using namespace std;
const int maxn=2e5+5;
const int mod=998244353;
const double pi=acos(-1.0);
ll n,a,b;

int main()
{
    ios::sync_with_stdio(false);
    cin.tie(0);
    sc(n);
    sc(a),sc(b);
    for(int i=a;i<=b;i++){
        if(i%n==0) {
            printf("OK\n");
            return 0;
        }
    }
    printf("NG\n")
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:19: error: expected ';' before 'return'
   26 |     printf("NG\n")
      |                   ^
      |                   ;
   27 |     return 0;
      |     ~~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;

#define ll long long
#define ar array


ll solve()
{
    ll k,a,b;
    cin>>k>>a>>b;
    for(i=a;i<=b;i++)
    {
        if(i%k==0){
            cout<<"OK"<<endl;
            return 0;
        }
    }
    cout<<"NG"<<endl;
    
    
  return 0;
}

int main() {
    ios::sync_with_stdio(0);
    cin.tie(0);

    
        solve();

    
}


Compiler output:
a.cc: In function 'long long int solve()':
a.cc:12:9: error: 'i' was not declared in this scope
   12 |     for(i=a;i<=b;i++)
      |         ^
Language: C

#include<stdio.h>
int main(void){
  int k,a,b,i,c;
  c=0;
  scanf("%d",&k);
  scanf("%d %d",%a,%b);
  for(i=a;i<=b;i++){
    if(i%k==0){
      printf("OK\n");
      c==1;
      break;
    }
  }
  if(c==0){
    printf("NG\n");
  }
  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:6:17: error: expected expression before '%' token
    6 |   scanf("%d %d",%a,%b);
      |                 ^
Language: C

#include <bits/stdc++.h>

using namespace std;

int main(){
    int k, a, b;
    cin >> k >> a >> b;
    bool sol = false;
    for(int i = a; i <= b; i++){
        if(i % k == 0)
            sol = true;
    }
    cout << (sol ? "OK": "NG") << '\n';
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;

int main()
{
	int k,a,b;
  cin>>k;
  cin>>a>>b;
  int flag = 0;
  for(int i=a;i<=b;i++)
  {
		if(a%k==0)
        {
			flag = 1;
          break;
        }
  }
  if(flag==1)
  {
    cout<<"OK"<<endl;
  }
  else
    cout<<"NG"<<endl;

Compiler output:
a.cc: In function 'int main()':
a.cc:23:22: error: expected '}' at end of input
   23 |     cout<<"NG"<<endl;
      |                      ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
	int a,b,k;
  	cin>>k>>a>>b;
  	for(int i=a;i<=b;++i)
      if(i%k==0){
        cout<<"OK";
        break;
      }
	}
	cout<<"NG";
}


Compiler output:
a.cc:12:9: error: 'cout' does not name a type
   12 |         cout<<"NG";
      |         ^~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n;
  cin>>n;
  int a,b;
  cin>>a>>b;
  int flag = 1;
  for( int i=a;i<=b;i++0{
    if( i%n==0 ){
      cout<<"OK";
      flag = 0;
      break;
    }
  }
      if(flag) cout<<"NG";
      }

Compiler output:
a.cc: In function 'int main()':
a.cc:9:24: error: expected ')' before numeric constant
    9 |   for( int i=a;i<=b;i++0{
      |      ~                 ^
      |                        )
a.cc:9:25: error: expected ';' before '{' token
    9 |   for( int i=a;i<=b;i++0{
      |                         ^
      |                         ;
Language: C

#include <bits/stdc++.h>
#define ff first
#define ss second
#define ll long long
#define rep(i, n) for (int i = 0; i < n; i++)
using namespace std;


int main() {

   ios::sync_with_stdio(false);   cin.tie(NULL);   cout.tie(NULL);

   int k, a, b;
   cin >> k >> a >> b;
   for (int i = a; i <= b; i++) {
      if (i % k == 0) {
         cout << "OK" << endl;
         return 0;
      }
   }
   cout << "NG" << endl;

   return 0;
}

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
using namespace std;
#define LL long long 
#define LLU long long unsigned
#define rarr(arr, n) for(int aab = 0; aab < n; aab++){cin >> arr[aab];}
#define parr(arr, n) for(int aab = 0; aab < n; aab++){cout << arr[aab] << " ";}
#define pb push_back
#define f first
#define s second
#define all(x) x.begin(), x.end()
#define debug(x) cout << #x << " = " << x << "\n";

#define freopen freopen("in.txt", "r", stdin);freopen("out.txt", "w", stdout);ios_base::sync_with_stdio(0);cin.tie(0);

int main(){
	int a, b, k;
	cin >> k >> a >> b;
	bool flag = false;
	for(int i = a; i <= b; i++){
		if(i % k == 0){
			flag = true;
		}
	}
	if(flag){
		cout << "OK";
	}
	else{
		cout << "NG";
	}
} 

Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: Java

import java.util*;

public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int k = sc.nextInt();
    int a = sc.nextInt();
    int b = sc.nextInt();
    String ans = (k <= b-a) ? "OK" : "NG";
    System.out.println(ans);
  }
}

Compiler output:
Main.java:1: error: ';' expected
import java.util*;
                ^
1 error
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
using ll = long long;
using P = pair<int,int>;

int main(){
  int k,a,b;
  string ans = NG;
  cin >> k >> a >> b;
  for(int i=a; i<=b;i++){
    if(i%k==0){
      ans = OK;
      break;
    }
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:16: error: 'NG' was not declared in this scope
    9 |   string ans = NG;
      |                ^~
a.cc:13:13: error: 'OK' was not declared in this scope
   13 |       ans = OK;
      |             ^~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int X;
  int A, B;
  bool flag = 0;
  cin>>X>>A>>B;
  for (i=A;i<=B;i++){
    if(i%X==0){
      flag = 1;
      break
    }
  }
  if(flag)
    cout<<"OK\n";
  else 
    cout<<"NG\n";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'i' was not declared in this scope
    9 |   for (i=A;i<=B;i++){
      |        ^
a.cc:12:12: error: expected ';' before '}' token
   12 |       break
      |            ^
      |            ;
   13 |     }
      |     ~
Language: C

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <queue>
#include <math.h>
#include <tuple>

#include <set>
#include <unordered_map>
#include <stack>
#include <map>

using namespace std;

#define rep(i,n) for(int (i)=0;(i)<(n);(i)++)
#define all(x) (x).begin(),(x).end()
using ll = long long;
template<class T>bool chmaxj(T &a, const T &b) { if (a < b) { a = b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b < a) { a = b; return 1; } return 0; }
void YesNo(bool y) { cout << (y ? "Yes" : "No") << endl; } //true==yes


#define INF 21474836

//////////////////////////////////////////////////////////////



int main() {

	int A, B, K;
	cin >> K >> A >> B;

	bool ex = false;
	for (int i = A; i <= B; i++) {
		if (i%K == 0)ex = true;
	}
	
	if (ex)cout << "OK" << endl;
	else cout << "NG" << endl;

}


Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: Java

import java.util.*;
import java.math.*;
public class Main {
	public static void main(String[] args) {
		Scanner in = new Scanner(System.in);
		int a = in.nextInt();
		int b = in.nextInt();
		int k = in.nextInt();
		int a;
		for(i = a; i <= b; i++) {
			if(i % k == 0) {
				System.out.println('OK');
				break;
			}
		}
		if(i > b) System.out.println('NG');
	}
} 


Compiler output:
Main.java:12: error: unclosed character literal
				System.out.println('OK');
				                   ^
Main.java:12: error: unclosed character literal
				System.out.println('OK');
				                      ^
Main.java:12: error: not a statement
				System.out.println('OK');
				                     ^
Main.java:16: error: unclosed character literal
		if(i > b) System.out.println('NG');
		                             ^
Main.java:16: error: unclosed character literal
		if(i > b) System.out.println('NG');
		                                ^
Main.java:16: error: not a statement
		if(i > b) System.out.println('NG');
		                               ^
6 errors
Language: C++

#include <iostream>

void resolve() {
   using namespace std;
  int k,a,b;
  cin >> k >> a >> b;
  for(int i=0; i<1000; i++) {
    if(a <= k*i && k*i <= b) {
      cout << "OK" << endl;
      return;
    }
  }
  cout << "NG" << endl;
  return
}

int main() {
	resolve();
}

Compiler output:
a.cc: In function 'void resolve()':
a.cc:15:1: error: expected primary-expression before '}' token
   15 | }
      | ^
a.cc:14:9: error: expected ';' before '}' token
   14 |   return
      |         ^
      |         ;
   15 | }
      | ~
Language: C++

#include<bits/stdc++.h>
using namespace std;

int main()
{
    long long a,b,c,d;
    int i;
    cin >> a;
    cin >> b >> c;
    for(i=b;i<=c;i++)
    {
        if(i%a == 0)
        {
            cout << "OK";
            return 0;
        }
    }
    cout << "NG";
    return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:19:14: error: expected '}' at end of input
   19 |     return 0;
      |              ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

#include <bits/stdc++.h>
#define ll long long int
#define ld long double
#define pb push_back
#define vs v.size()
using namespace std;

int main() {
   ll k,a,b;
   cin>>k>>a>>b;
   if(a%k== || b%k==0 || (a-b)%k==0){
       cout<<"OK\n";
   }
   else {
       cout<<"NG\n";
   }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected primary-expression before '||' token
   11 |    if(a%k== || b%k==0 || (a-b)%k==0){
      |             ^~
Language: C

#include<stdio.h>
int main(){
int a,b,k;
scanf("%d", &k);
scanf("%d%d", &a,&b);

for(i=a;i<=b;i++){
if(i%k==0){
printf("OK\n");
return 0;
}
}
printf("NG\n");
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:5: error: 'i' undeclared (first use in this function)
    7 | for(i=a;i<=b;i++){
      |     ^
main.c:7:5: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include  "bits/stdc++.h"
//#include  <iostream>
 using namespace std;
 
#define IOS         ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); 
#define mem(a,v)    memset((a), (v), sizeof (a))
#define FOR(i,a,n)  for(int i = (a); i<(n); ++i) 
#define FORE(i,a,n) for(int i = (a); i<=(n); ++i)
#define mp(a , b)   make_pair(a , b)
#define pb(a)       push_back(a)

#define anal         '\n'

#define mod 1000000009


typedef long long ll;


 

int main(){
     
 IOS;
 
 #ifndef ONLINE_JUDGE  
    freopen("input.in", "r", stdin);
    freopen("output.in", "w", stdout);
 #else
// online submission
#endif 

 // -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-
   
    int k , a, b,
     cin >> k >> a >> b;

      while(a <= b){
      	 if(a % k == 0){
      	 	  cout << "OK";
      	 	  return 0;
      	 }
      }
      cout << "NG";
  return  0 ;      
}        


Compiler output:
a.cc: In function 'int main()':
a.cc:36:10: error: expected initializer before '>>' token
   36 |      cin >> k >> a >> b;
      |          ^~
Language: C

///Astalavista Code........~CodeSlayer007
#include <bits/stdc++.h>
using namespace std;
#define endl "\n"
#define int long long
#define double long double
#define all(v) v.begin(),v.end()
#define allr(v) v.rbegin(),v.rend()
#define PT(x) cout << (#x) << " is " << (x) << endl;
#define SPD_emergency ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef vector<ii> vii;
const int M = 1e9 + 7;
int IM = 1e17;
void PV(vi v) { for (int i = 0 ; i < v.size() ; i++) cout << v[i] << " "; cout << endl;}
void PA(int v[], int n) {for (int i = 0 ; i < n ; i++)cout << v[i] << " " ; cout << endl;}
void IN(int a[], int n) {for (int i = 0; i < n; i++)cin >> a[i];}
inline void PTN(int n = 1, int a = 0, int b = 0, int c = 0) { if (n--)cout << a << " "; if (n--)cout << b << " "; if (n--)cout << c << " "; cout << endl; }
inline void open() {
#ifndef ONLINE_JUDGE
   freopen("input.txt", "r", stdin);
   freopen("output.txt", "w", stdout);
#endif
}
// <-------------------------------------------------------------------------------------------------------------------------------------------------------------------------> Ignore This-->  tuple first second push_back  continue make_pair break deque stack queue sort reverse accumulate  count lower_bound upper_bound next_permutation copy_n __builtin_popcount make_tuple
// <========================================================================================================================================================================

signed  main() {
   SPD_emergency

   //int t; cin >> t; int tt = 1; while (t--)
   {
      int k, a, b;
      cin >> k;
      cin >> a >> b;
      int n = b/k;
      n = n*k;     
      if( n>=a && n<=b)
         cout<<"OK";
      else
         cout<<"NG";
    
   }
   return 0;
}

Compiler output:
main.c:2:10: fatal error: bits/stdc++.h: No such file or directory
    2 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int MOD = 1e9 + 7;
const ll INF = 1LL << 60;
ll mod_pow(ll, ll, ll);
ll mod_fact(ll, ll);
ll mod_inv(ll, ll);
//
int main(){
    int k, a, b;
    cin >> k >> a >> b;
    for(int i = a; i <= b; i++){
        if(i % k == 0){
            cout << "OK";
            return 0;
        }
    }
    cou << "NG";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:5: error: 'cou' was not declared in this scope; did you mean 'cos'?
   19 |     cou << "NG";
      |     ^~~
      |     cos
Language: C

#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
using mii = map<int, int>;
using mll = map<ll, ll>;
using vi = vector<int>;
using vii = vector<vi>;
using vpi = vector<pii>;
using vl = vector<ll>;
using vll = vector<vl>;
using vpl = vector<pll>;
using vs = vector<string>;

int main()
{
    int k, a, b;
    cin >> k >> a >> b;
    if(a<=b/k * k) cout << "OK" << endl;
    else cout << "NG" << endl;
    return 0;
}


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C

#include <bits/stdc++.h>
using namespace std;
#define endl '\n'
#define show(a) cout<<""#a""<<" is "<<a<<endl;
#define shw(a,b)cout<<"-->"<<a<<" "<<b<<endl;
#define print(arr,xx)for(int i=0;i<xx;i++)cout<<arr[i]<<" \n"[i>=xx];
#define here cout<<"here\n"; 
int caseno=0;
#define print_case cout<<"Case "<<++caseno<<": ";
#define fout freopen("output.txt","w",stdout);
#define fin freopen("input.txt","r",stdin);
#define pb push_back
#define ll long long
const int primemod=1e9+7;
#define fastio   
ll max(ll a,ll b) {return (a>b)?a:b;}
//string max(string a,string b) {return (a>b)?a:b;}
//ll min(ll a,ll b) {return (a<b)?a:b;}
const int maxsize = 100000+9;
void solve(){
	int a,b,k;
	cin>>k>>a>>b;
	bool ok =0;
	for(int i=a;i<=b;i++)if(i%k==0)ok=1;
	if(ok)cout<<"OK"<<endl;
	else cout<<"NG"<<endl;
}

int main(){
	#ifndef ONLINE_JUDGE
 	fout	
 	fin
 	int kase=1; 	
 	while(kase--){
 	#endif     
 	///-----		
 	//fastio
 	int T;
 	// cin>>T;
 	T=1;
 	while(T--){
 		 // if(solve())cout<<"Yes"<<endl;
 		 // else cout<<"No"<<endl;
 		solve();
 	}
 	///-----
 }
 
 #ifndef ONLINE_JUDGE
 }			
 #endif


Compiler output:
main.c:1:10: fatal error: bits/stdc++.h: No such file or directory
    1 | #include <bits/stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.