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((B-A+K-1)/K=>1){
   cout<<"OK"<<endl;
 }
  else{
    cout<<"NG"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: expected primary-expression before '>' token
    7 |  if((B-A+K-1)/K=>1){
      |                 ^
Language: C

#include<stdio.h>

int main() {
	int a,b;
	int k;
	int i, j=0;

	scanf("%d%d%d", &k, &a, &b);
	for ( i = a; i <= b; i++) {
		if (i % k == 0) {
			j = 1;
			break;
		}
			
	}
	if (j == 1)
		printf("OK");
	else
		printf("NG");




Compiler output:
main.c: In function 'main':
main.c:19:17: error: expected declaration or statement at end of input
   19 |                 printf("NG");
      |                 ^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
int K, A, B;
cin >> K >> A >> B;

for(A < B){
    if((A%K == 0)){
        cout << "OK" << endl;
        break;
    }
    A++;
}

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: expected ';' before ')' token
    7 | for(A < B){
      |          ^
      |          ;
a.cc:15:1: error: expected primary-expression before '}' token
   15 | }
      | ^
a.cc:13:2: error: expected ';' before '}' token
   13 | }
      |  ^
      |  ;
   14 | 
   15 | }
      | ~ 
a.cc:15:1: error: expected primary-expression before '}' token
   15 | }
      | ^
a.cc:13:2: error: expected ')' before '}' token
   13 | }
      |  ^
      |  )
   14 | 
   15 | }
      | ~ 
a.cc:7:4: note: to match this '('
    7 | for(A < B){
      |    ^
a.cc:15:1: error: expected primary-expression before '}' token
   15 | }
      | ^
Language: C++

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

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


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:11:33: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |                 if(i % n == 0) {cout << "OK\n"; flag = 1; break;}
      |                                 ^~~~
      |                                 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:23: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   13 |         if(flag == 0) cout << "NG\n";
      |                       ^~~~
      |                       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>
#include<stdio.h>
using namespace std;
int main()
{
int i,n,j=0,t;
int a,b;
cin>>n;
cin>>a>>b;
for(i=a;i<=b;i++)
{
    if(i%n==0)
        j++;
}
if(j!=0)
    cout<<"OK"<<endl;
else cout<<"NG"<<endl;
}
return 0;
}


Compiler output:
a.cc:19:1: error: expected unqualified-id before 'return'
   19 | return 0;
      | ^~~~~~
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
    int a,b,k;
    cin >> k;
    cin >> a >> b;
    bool OK = false;
    while (int i=1; i*k < b; ++i){
        if( a <= k*i && k*i <= b ){
            OK=true;
            break;
        }
    }
    if (OK)
        cout << "OK" << endl;
    else
        cout << "NG" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected ')' before ';' token
    8 |     while (int i=1; i*k < b; ++i){
      |           ~       ^
      |                   )
a.cc:8:21: error: 'i' was not declared in this scope
    8 |     while (int i=1; i*k < b; ++i){
      |                     ^
Language: C++

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespacce'
    2 | using namespacce std;
      |       ^~~~~~~~~~
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>>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:8:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |         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:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     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++

#include<iostream>
using namespace std;
int main(){
  unsigned long long int x;
  cin>>x;
  unsigned long long int n=100;
  while(x<n){
    n=n+n/100;
    c++;}
  cout<<c;}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'c' was not declared in this scope
    9 |     c++;}
      |     ^
a.cc:10:9: error: 'c' was not declared in this scope
   10 |   cout<<c;}
      |         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
#define FASTIO  ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define ll long long int
#define ld long double
#define vll vector<ll>
#define pll pair<ll,ll>
#define vl(p) vector<p>
#define W while
#define For(i,s,x) for(i=s;i<x;i++)
#define Fore(i,s,x) for(i=s;i<=x;i++)
#define FOR(i,x) for(i=0;i<x;i++)
#define Rof(i,s,x) for(i=s;i>=x;i--)
#define all(v) v.begin(),v.end()
#define it(r,v) for(auto r=v.begin();r!=v.end();r++)
#define pb push_back
#define in insert
#define sz size()
#define F first
#define S second
#define nl cout<<"\n"
#define pr(a) cout<<a<<" "
#define pr2(a,b) cout<<a<<" "<<b<<"\n"
#define pr3(a,b,c) cout<<a<<" "<<b<<" "<<c<<"\n"
#define mod 1000000007
#define mp make_pair

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

Compiler output:
a.cc:29:6: error: cannot declare '::main' to be a global variable
   29 |  int main
      |      ^~~~
a.cc:4:45: error: expected '}' before ';' token
    4 | #define FASTIO  ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
      |                                             ^
a.cc:31:7: note: in expansion of macro 'FASTIO'
   31 |       FASTIO;
      |       ^~~~~~
a.cc:30:2: note: to match this '{'
   30 |  {
      |  ^
a.cc:4:46: error: 'cin' does not name a type; did you mean 'in'?
    4 | #define FASTIO  ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
      |                                              ^~~
a.cc:31:7: note: in expansion of macro 'FASTIO'
   31 |       FASTIO;
      |       ^~~~~~
a.cc:4:57: error: 'cout' does not name a type
    4 | #define FASTIO  ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
      |                                                         ^~~~
a.cc:31:7: note: in expansion of macro 'FASTIO'
   31 |       FASTIO;
      |       ^~~~~~
a.cc:33:7: error: 'cin' does not name a type; did you mean 'in'?
   33 |       cin>>k;
      |       ^~~
      |       in
a.cc:34:7: error: 'cin' does not name a type; did you mean 'in'?
   34 |       cin>>a>>b;
      |       ^~~
      |       in
a.cc:36:7: error: expected unqualified-id before 'if'
   36 |       if(a%k==0)
      |       ^~
a.cc:38:7: error: expected unqualified-id before 'else'
   38 |       else
      |       ^~~~
a.cc:46:7: error: expected declaration before '}' token
   46 |       }
      |       ^
a.cc:47:2: error: expected declaration before '}' token
   47 |  }
      |  ^
Language: C

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

int main()
{
    int k, a, b; cin >> k >> a >> b;
    int c;
    c = (a + k)/k;
    if ( c*k <= b || k == 1) {
        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: Java

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


Compiler output:
Main.java:12: error: unexpected type
      if (i % a = 0){
            ^
  required: variable
  found:    value
1 error
Language: C++

#include <bits/stdc++>

using namespace std;

int main() {
  int k,a,b;
  cin>>k;
  cin>>a>>b;
  if(k >= a && k <=b) {
    cout<<"OK";
    return 0;
  } else {
    int i=2;
    while(k*i < b){
      if(k*i >= a && k*i <=b){
        cout<<"OK";
        return;
      }
      i++;
    }
  }
  cout<<"NG";
  
}

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

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

Compiler output:
main.c: In function 'main':
main.c:6:5: error: unknown type name 'bool'
    6 |     bool f=0;
      |     ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include<stdio.h>
  +++ |+#include <stdbool.h>
    2 | int main(){
Language: Java

class Solution{
  public static void main(String[] args){
    Scanner input = new Scanner(System.in);
    int k = input.nextInt();
    int a = input.nextInt();
    int b = input.nextInt();
    input.close();
    
    int mod = b % a;
    if(mod >= k) System.out.println("OK");
    else System.out.println("NG");
  }
}


Compiler output:
Main.java:3: error: cannot find symbol
    Scanner input = new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Solution
Main.java:3: error: cannot find symbol
    Scanner input = new Scanner(System.in);
                        ^
  symbol:   class Scanner
  location: class Solution
2 errors
Language: C++

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

int main(){
	int k,a,b;

	cin >> k >> a >> b;
	int i = 1;
	while(k * i <= b){
		if (k * >=a && k * i <= b){
			cout << "OK" << endl;
			return 0;
		}
      i++;
	}
	cout << "NG" << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:25: error: expected primary-expression before '>=' token
   12 |                 if (k * >=a && k * i <= b){
      |                         ^~
Language: C++

#include <bits/stdc++.h>
using namespace std;
//#define f(i, a, b) for(int i = 0; i < b; ++i)


int main(){
    int k, a, b;
    cin >> k >> a >> b;
    boolean k = false;
    while((a % k != 0) && (a < b)){
        a = a + 1;
    }
    if(a%k == 0){
      cout << "OK";
    } else{
        cout << "NG";
    }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'boolean' was not declared in this scope; did you mean 'bool'?
    9 |     boolean k = false;
      |     ^~~~~~~
      |     bool
a.cc: At global scope:
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:13: error: 's' was not declared in this scope
   14 |         if (s!=0){
      |             ^
Language: Java

import java.util.*;

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();
        boolean f = false;
        for(i=A; i<B; i++) {
            if(i%K == 0) {
                f = true;
                break;
            }
        }
        if(f == true) System.out.println("OK");
		else System.out.println("NG");

		
	}
}

Compiler output:
Main.java:10: error: cannot find symbol
        for(i=A; i<B; i++) {
            ^
  symbol:   variable i
  location: class Main
Main.java:10: error: cannot find symbol
        for(i=A; i<B; i++) {
                 ^
  symbol:   variable i
  location: class Main
Main.java:10: error: cannot find symbol
        for(i=A; i<B; i++) {
                      ^
  symbol:   variable i
  location: class Main
Main.java:11: error: cannot find symbol
            if(i%K == 0) {
               ^
  symbol:   variable i
  location: class Main
4 errors
Language: C++

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

int main() {
  int K, A ,B;
  cin >> K >> A >> B;
  
  if(K =< B-A){
    cout << "OK" << endl;
  }
  
  else if(B%K-A%K < 0){
    cout << "OK" << endl;
  }
  
  else{
    cout << "NG" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: expected primary-expression before '<' token
    8 |   if(K =< B-A){
      |         ^
Language: C++

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

int main() {
  int K, A, B;
  cin >> K >> A >> B;

  for (int i = A; i <= B i++) {
    if (i % K == 0) {
      cout << "OK" << endl;
      break;
    }

    if (i == B) {
      if (i % K != 0) {
        cout << "NG" << endl;
      }
    }

  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: expected ';' before 'i'
    8 |   for (int i = A; i <= B i++) {
      |                         ^~
      |                         ;
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();
     if(a/k<b/k){
       System.out.println("OK");
     }else if(a==b&&a%x==0){
       System.out.println("OK");
     }else{
       System.out.println("NG");
   }
}

Compiler output:
Main.java:15: error: reached end of file while parsing
}
 ^
1 error
Language: C

#include<stdio.h>
int main()
{
    int K,A,B;
    scanf("%d",&k);
    scanf("%d%d",&A,&B);
    int i;
    for(i=A;i<=B;i++)
    {
    if(i%k==0)
    printf("Ok\n");
    else
    printf("NG\n");
    }
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:17: error: 'k' undeclared (first use in this function)
    5 |     scanf("%d",&k);
      |                 ^
main.c:5:17: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<algorithm>
#include<bitset>
#include<cmath>
#include<complex>
#include<deque>
#include<functional>
#include<iomanip>
#include<iostream>
#include<iterator>
#include<list>
#include<map>
#include<numeric>
#include<queue>
#include<set>
#include<stack>
#include<string>
#include<utility>
#include<vector>
#include <boost/multiprecision/cpp_int.hpp>

using namespace std;
namespace mp = boost::multiprecision;

typedef long long ll;
typedef unsigned long long ull;

// 最大公約数
ll gcd(ll a, ll b)
{
    if (a < 0)
        a = -a;
    if (b < 0)
        b = -b;
    if (b == 0)
        return a;
    else
        return gcd(b, a % b);
}

// 最小公倍数
ll lcm(ll a, ll b)
{
    ll g = gcd(a, b);
    return a / g * b;
}

int main()
{
    int a, b, c;
    cin >> a >> b >> c;
    if (a == 1) {
        cout << "OK" << endl;
        return;
    }
    if (c - b >= a) {
        cout << "OK" << endl;
    }
    else {
        cout << "NG" << endl;
    }
    return 0;
}

Compiler output:
a.cc:19:10: fatal error: boost/multiprecision/cpp_int.hpp: No such file or directory
   19 | #include <boost/multiprecision/cpp_int.hpp>
      |          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
using namespace std;
 
int main(){
  int k,a,b;
  cin>>k;
  cin>>a>>b;
  int i= 0;
  int check = 0;
  while (i<=b/k){
    if (a<i*k &&b>i*k){
      check=1;
      break;      
    }
    i+=1;
  }
  if(check==1){
    cout<<"NG"<<endl;
  }
  else{
    cout<<"OK"<<endl;
  }
  return 0;
}
#include <iostream>
using namespace std;
 
int main(){
  int k,a,b;
  cin>>k;
  cin>>a>>b;
  int i= 0;
  int check = 0;
  while (i<=b/k){
    if (a<i*k &&b>i*k){
      check=1;
      break;      
    }
    i+=1;
  }
  if(check==1){
    cout<<"OK"<<endl;
  }
  else{
    cout<<"NG"<<endl;
  }
  return 0;
}


Compiler output:
a.cc:28:5: error: redefinition of 'int main()'
   28 | int main(){
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
  int K, A, B;
  cin >> K >> A >> B;
  
  int i = 1;
  while ( 1 ) {
    if ( A <= i * K && i * K <= B ) {
      cout << "OK" << endl;
      break;
    }
    if ( i > B ) {
      cout << "NO" << endl;
      break;
    }
    i++
  }
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:8: error: expected ';' before '}' token
   18 |     i++
      |        ^
      |        ;
   19 |   }
      |   ~
Language: C++

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


int main() {
  int K,A,B;
  cin >> K >> A >> B;
  if(K ==!){
    cout << "OK" <<endl;
  }
  else if(A%K ==0){
    cout << "OK" <<endl;
  }
  else if(B/K >> A/K){
    cout << "OK" <<endl;
  }
  else{
    cout << "NG" <<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected primary-expression before ')' token
    9 |   if(K ==!){
      |           ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
int K, A, B;
cin >> K >> A >> B;

for(A < B ;A++){
    if((A%K == 0)){
        cout << "OK" << endl;
        
    }
    else cout << "NG" << endl;
}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:15: error: expected ';' before ')' token
    7 | for(A < B ;A++){
      |               ^
      |               ;
Language: C++

#include <iostream>
#include <algorithm>
#include <cmath>
#include <queue>
#include <set>
#include <map>
#include <vector>
#include <string>
using namespace std;

typedef long long ll;
typedef long double ld;

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

  
}

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

#include<iostream>
 using namespace std;
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()
      | ^~~~
Language: Java

public class Solution{
  public static void main(String[] args){
    Scanner input = new Scanner(System.in);
    int k = input.nextInt();
    int a = input.nextInt();
    int b = input.nextInt();
    input.close();
    
    int mod = b % a;
    if(mode >= k) System.out.println("OK");
    else System.out.println("NG");
  }
}

Compiler output:
Main.java:1: error: class Solution is public, should be declared in a file named Solution.java
public class Solution{
       ^
Main.java:3: error: cannot find symbol
    Scanner input = new Scanner(System.in);
    ^
  symbol:   class Scanner
  location: class Solution
Main.java:3: error: cannot find symbol
    Scanner input = new Scanner(System.in);
                        ^
  symbol:   class Scanner
  location: class Solution
Main.java:10: error: cannot find symbol
    if(mode >= k) System.out.println("OK");
       ^
  symbol:   variable mode
  location: class Solution
4 errors
Language: Java

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

Compiler output:
Main.java:8: error: cannot find symbol
    for (i=b;i<=b+a;i++){
         ^
  symbol:   variable i
  location: class Main
Main.java:8: error: cannot find symbol
    for (i=b;i<=b+a;i++){
             ^
  symbol:   variable i
  location: class Main
Main.java:8: error: cannot find symbol
    for (i=b;i<=b+a;i++){
                    ^
  symbol:   variable i
  location: class Main
Main.java:9: error: cannot find symbol
      if (i>c){
          ^
  symbol:   variable i
  location: class Main
Main.java:12: error: cannot find symbol
      if (i % a = 0){
          ^
  symbol:   variable i
  location: class Main
5 errors
Language: C++

///#pragma GCC optimize("Ofast")
///#pragma GCC target("sse,sse2,sse3,ssse3,sse4,popcnt,abm,mmx,avx,avx2,fma")
///#pragma GCC optimize("unroll-loops")

#include<bits/stdc++.h>
///#include<ext/pb_ds/assoc_container.hpp>
///#include<ext/pb_ds/tree_policy.hpp>
using namespace std;
///using namespace __gnu_pbds;
///template<typename T> using orderset = tree<T,null_type,less<T>,rb_tree_tag,tree_order_statistics_node_update>;

typedef long long ll;
typedef vector<int> vii;
typedef vector<ll> vll;
typedef vector<vll> vvll;
typedef vector<vii> vvii;
typedef pair<int,int> pii;
typedef pair<ll,ll> pll;
typedef vector<pii> vpii;
typedef vector<pll> vpll;
typedef vector<bool> vbb;

const ll N = 100001;
const ll MOD = 1000000007;
const ll INF = LLONG_MAX;

#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define rev(a) reverse(all(a))
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define yes cout<<"YES"<<nl
#define no cout<<"NO"<<nl
#define space ' '
#define nl '\n'
#define PI acos(-1)
#define Case(x) cout<<"Case "<<x<<": "
#define strtoint(a) atoi(a.c_str())
#define inttostr(n) to_string(n)

#define coutv(v) for(auto it:v)cout<<it<<space;cout<<nl;
#define cinv(v) for(auto &it:v)cin>>it;


int main()
{
    ios::sync_with_stdio(false),cin.tie(0),cout.tie(0);
    int tc=1,cs=0;
    //cin>>tc;
    while(tc--)
    {
        int n,a,b;
        cin>>n>>a>>b;
        for(int i=a;i<=b;i++)
            if(i%n==0)
            return cout<<"OK"<<nl;
        cout<<"NG"<<nl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:58:30: error: cannot convert 'std::basic_ostream<char>' to 'int' in return
   58 |             return cout<<"OK"<<nl;
      |                              ^
      |                              |
      |                              std::basic_ostream<char>
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected primary-expression before '>' token
    7 |  if((B-A)/K=>1){
      |             ^
Language: C++

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

int main() {
   nt K,A,B;
  cin >> K >> A >> B;
  string ans;
  for (int i = A; i < B + 1; i++) {
    if (i%7 == 0) {
      ans = "OK";
    }
  }
  cout << ans <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:4: error: 'nt' was not declared in this scope; did you mean 'int'?
    5 |    nt K,A,B;
      |    ^~
      |    int
a.cc:6:10: error: 'K' was not declared in this scope
    6 |   cin >> K >> A >> B;
      |          ^
a.cc:6:15: error: 'A' was not declared in this scope
    6 |   cin >> K >> A >> B;
      |               ^
a.cc:6:20: error: 'B' was not declared in this scope
    6 |   cin >> K >> A >> B;
      |                    ^
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:11: error: 'OK' was not declared in this scope
   19 |     cout<<OK<<endl;
      |           ^~
a.cc:21:11: error: 'NG' was not declared in this scope
   21 |     cout<<NG<<endl;
      |           ^~
Language: C

#include <iostream>
using namespace std;
int K, A, B;
int N;
int M;
int main() {
  cin >> K >> A >> B;
  N = A / K;
  M = B / K;
  if (M - N >= 1) {
    cout << "OK" << endl;
  } else {
    cout << "NG" << endl;
  }
  return 0;
}


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

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


int main() {
  int K,A,B;
  cin >> K >> A >> B;
  if(K ==!){
    cout << "OK" <<endl;
  }
  else if(A%K ==0){
    cout << "OK" <<endk;
  }
  else if(B/K >> A/K){
    cout << "OK" <<endl;
  }
  else{
    cout << "NG" <<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:11: error: expected primary-expression before ')' token
    9 |   if(K ==!){
      |           ^
a.cc:13:20: error: 'endk' was not declared in this scope
   13 |     cout << "OK" <<endk;
      |                    ^~~~
Language: C

k = int(input())
a,b = map(int,input().split())

total = k
while True:
    if a<=total<=b:
        print('OK')
        break
    elif total<a:
        total += k
    elif total>b:
        print('NO')
        break

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | k = int(input())
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'k' [-Wimplicit-int]
main.c:1:5: error: expected expression before 'int'
    1 | k = int(input())
      |     ^~~
main.c:7:15: warning: multi-character character constant [-Wmultichar]
    7 |         print('OK')
      |               ^~~~
main.c:12:15: warning: multi-character character constant [-Wmultichar]
   12 |         print('NO')
      |               ^~~~
Language: C

#include <bits/stdc++.h> 
using namespace std;
int main()
{
int K,A,B,m,n;
cin>>K;
cin>>A;
cin>>B;
m=A/K;
n=B/K;
if((m-n)>=1)
cout<<"OK";
else
cout<<"NG";
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 <cstdio>
#include <cmath>

int get() {
    int x = 0; char s = getchar();
    while (s < '0' || s > '9') s = getchar();
    while (s >= '0' && s <= '9') x = (x << 3) + (x << 1) + (s ^ 48), s = getchar();
    return x;
}

int main() {
    int k, a, b;
    scanfe("%d%d%d", &k, &a, &b);
    if(ceil(1.0 * a / k) * k <= b) printf("OK");
    else printf("NG");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'scanfe' was not declared in this scope; did you mean 'scanf'?
   13 |     scanfe("%d%d%d", &k, &a, &b);
      |     ^~~~~~
      |     scanf
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:26: error: expected '}' at end of input
   15 |   if(count==0)cout<<"NG";
      |                          ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
int K, A, B;
cin >> K >> A >> B;

for(A<B;A++){
    if((A%K == 0)){
        cout << "OK" << endl;
        
    }
    else cout << "NG" << endl;
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected ';' before ')' token
    7 | for(A<B;A++){
      |            ^
      |            ;
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 0;
    }
  }
  cout<<"NG";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: expected initializer before 'cin'
    6 |     cin>>k;
      |     ^~~
a.cc:11:10: error: 'k' was not declared in this scope
   11 |     if(i%k==0)
      |          ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:7:14: error: expected ';' before ')' token
    7 |   for(a<=i<=b){
      |              ^
      |              ;
main.c:7:14: error: expected expression before ')' token
Language: C++

#include <iostream>

int main(void)
{
	int K, A, B;
	
	cin >> K;
	cin >> 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:
a.cc: In function 'int main()':
a.cc:7:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |         cin >> K;
      |         ^~~
      |         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:14:25: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |                         cout << "OK" << endl;
      |                         ^~~~
      |                         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:41: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |                         cout << "OK" << endl;
      |                                         ^~~~
      |                                         std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:18:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   18 |         cout << "NG" << endl;
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:18:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   18 |         cout << "NG" << endl;
      |                         ^~~~
      |                         std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream.h>
 
int 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:1:9: fatal error: iostream.h: No such file or directory
    1 | #include<iostream.h>
      |         ^~~~~~~~~~~~
compilation terminated.
Language: C++

#include <iostream>
using namespace std;

int main() {
  int K, A, B;
  cin >> K >> A >> B;
  
  int i = 1;
  while ( 1 ) {
    if ( A <= i * K <= B ) {
      cout << "OK" << endl;
      break;
    }
    if ( i > B ) {
      cout << "NO" << endl;
      break;
    }
    i++
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:8: error: expected ';' before '}' token
   18 |     i++
      |        ^
      |        ;
   19 |   }
      |   ~
Language: C++

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

int main() {
  int K, A, B;
  cin >> K >> A >> B;

  for (int i = A; i <= B i++) {
    if (i % K = 0) {
      cout << "OK" << endl;
      break;
    }

    if (i == B) {
      if (i % K != 0) {
        cout << "NG" << endl;
      }
    }

  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:25: error: expected ';' before 'i'
    8 |   for (int i = A; i <= B i++) {
      |                         ^~
      |                         ;
a.cc:9:11: error: lvalue required as left operand of assignment
    9 |     if (i % K = 0) {
      |         ~~^~~
Language: C++

#include<bits/stdc++.h>
using namesace std;
int main()
{
  int a,b,k;
  cin>>a>>b>>k;
  int q=a/k;
  if(q+1*k>=a and q+*k<=b)
    cout<<"OK";
  else
    cout<<"NG";
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesace'
    2 | using namesace std;
      |       ^~~~~~~~
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>>a>>b>>k;
      |   ^~~
      |   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:8:21: error: invalid type argument of unary '*' (have 'int')
    8 |   if(q+1*k>=a and q+*k<=b)
      |                     ^~
a.cc:9:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     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:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     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

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

Compiler output:
main.c: In function 'main':
main.c:7:14: error: expected ';' before ')' token
    7 |   for(a<=i<=b){
      |              ^
      |              ;
main.c:7:14: error: expected expression before ')' token
main.c:9:10: error: expected ';' before '}' token
    9 |       i++
      |          ^
      |          ;
   10 |     }
      |     ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define PI 3.14159265359

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:12: error: 'i' was not declared in this scope
   16 |         if(i == b){
      |            ^
Language: C++


#include <bits/stdc++.h>]
using namespace std;
int main(){
int K, A, B;
cin >> K >> A >> B;

for(A<B;A++){
    if((A%K == 0)){
        cout << "OK" << endl;
        
    }
    else cout << "NG" << endl;
}
}


Compiler output:
a.cc:2:25: warning: extra tokens at end of #include directive
    2 | #include <bits/stdc++.h>]
      |                         ^
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before ')' token
    8 | for(A<B;A++){
      |            ^
      |            ;
Language: C

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

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

Compiler output:
main.c:1:10: fatal error: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
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(abs(a-b)<k){
        if(a%k==0 || b%k==0){
            cout<<"OK\n";
        }
        else {
            cout<<"NG\n";
        }
    else {
        if(abs(a-b)%k==0){
            cout<<"OK\n";
        }
        else{
            cout<<"NG\n";
        }
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:5: error: expected '}' before 'else'
   18 |     else {
      |     ^~~~
a.cc:11:18: note: to match this '{'
   11 |    if(abs(a-b)<k){
      |                  ^
Language: C++

#include<iostream>
using namespace std;
typedef long long ll;
int t;
ll n,m,x,y;
string s;

int main()
{
    cin>>n>>x>>y;
    if((x%n)==0||(y%n)==0) cout<<"OK"<<endl;
    else{
        int d = (x/n+1)*n;
        int f = (y/n)*n;1
        if(d>=x&&d<=y&&f>=x&&f<=y)
            cout<<"OK"<<endl;
        else
            cout<<"NG"<<endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:26: error: expected ';' before 'if'
   14 |         int f = (y/n)*n;1
      |                          ^
      |                          ;
   15 |         if(d>=x&&d<=y&&f>=x&&f<=y)
      |         ~~                
a.cc:17:9: error: 'else' without a previous 'if'
   17 |         else
      |         ^~~~
Language: C++

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

ll gcd(ll a, ll b) { return b?gcd(b,a%b):a;}
ll lcm(ll a, ll b) { return a/gcd(a,b)*b;}

int main(){ 
  ll n;
  cin >> n;
  ll a,b;
  cin >> a >> b;
  for(ll i = a; i <= b; i++){
    if(i/n*n==i){
      cout << "OK" << endl;
      return 0;
    }
  }
  cout << "NG" << endl;
  return 0;
}



Compiler output:
a.cc:1:2: error: stray '#' in program
    1 | _#include <bits/stdc++.h>
      |  ^
a.cc:1:1: error: '_' does not name a type
    1 | _#include <bits/stdc++.h>
      | ^
a.cc:5:9: error: 'pair' does not name a type
    5 | typedef pair<int, int> P;
      |         ^~~~
a.cc: In function 'int main()':
a.cc:12:3: error: 'cin' was not declared in this scope
   12 |   cin >> n;
      |   ^~~
a.cc:17:7: error: 'cout' was not declared in this scope
   17 |       cout << "OK" << endl;
      |       ^~~~
a.cc:17:23: error: 'endl' was not declared in this scope
   17 |       cout << "OK" << endl;
      |                       ^~~~
a.cc:21:3: error: 'cout' was not declared in this scope
   21 |   cout << "NG" << endl;
      |   ^~~~
a.cc:21:19: error: 'endl' was not declared in this scope
   21 |   cout << "NG" << endl;
      |                   ^~~~
Language: C++


using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   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 | 
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout >> "OK" >> endl;
      |     ^~~~
a.cc:9:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:21: error: 'endl' was not declared in this scope
    9 |     cout >> "OK" >> endl;
      |                     ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | 
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout >> "NG" >> endl;
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:21: error: 'endl' was not declared in this scope
   12 |     cout >> "NG" >> endl;
      |                     ^~~~
a.cc:12:21: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int K,A,B,i,cnt=0;
  cin>>k>>endl;
  cin>>A>>B;
  for(i=A;i<=B;i++)
  {
    if(i%K==0)
      cnt++;
    else 
      continue;
  }
  if(cnt>=1)
  cout<<"OK";
  else
    cout<<"NG";
  return 0;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:5:8: error: 'k' was not declared in this scope
    5 |   cin>>k>>endl;
      |        ^
Language: C++

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

int main() {
  int K, A, B;
  cin >> K >> A >> B;

  for (i = A; i <= B i++) {
    if (i % K = 0) {
      cout << "OK" << endl;
      break;
    }

    if (i == B) {
      if (i % K != 0) {
        cout << "NG" << endl;
      }
    }

  }
  
}

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

#inlcude<bits/stdc++.h>
using namespace std;
int main()
{
  int k;
  cin>>k;
  int a,b;
  cin>>a>>b;
  bool f=0;
  for(int i=a;i<=b;i++)
  {
    if(k%i==0)
      f=1;
    break;
  }
  cout<<(f?"OK":"NG")<<endl;
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin>>k;
      |   ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inlcude<bits/stdc++.h>
a.cc:16:3: error: 'cout' was not declared in this scope
   16 |   cout<<(f?"OK":"NG")<<endl;
      |   ^~~~
a.cc:16:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:24: error: 'endl' was not declared in this scope
   16 |   cout<<(f?"OK":"NG")<<endl;
      |                        ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #inlcude<bits/stdc++.h>
Language: C

#include <bits/stdc++.h> 
using namespace std;
int main()
{
int K,A,B,m,n;
cin>>K;
cin>>A;
cin>>B;
m=A/K;
n=B/K;
if((m-n)>=1)
cout<<"OK";
else
cout<<"NG";
    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;

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;


}
int main() {
  func();
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:2: error: return-statement with no value, in function returning 'int' [-fpermissive]
   11 |  return;
      |  ^~~~~~
a.cc: At global scope:
a.cc:18:5: error: redefinition of 'int main()'
   18 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
a.cc: In function 'int main()':
a.cc:19:3: error: 'func' was not declared in this scope
   19 |   func();
      |   ^~~~
Language: C

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

int main(){
  int K,A,B;
  cin >> K>>A>>B;
  int ans=0;
  
  for(int i=A;i<=B;i++){
    if(i%K==0){
      ans++;
      break;
    }
  }
  if (ans==0)
    cout<<"NG"<<endl;
  else
    cout << "OK"<<endl;
  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++

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

int main() {
  int A,,K,B;
  cin >>A>>K>>B;

  if (B-A+1>=K) {
    cout << "OK" << endl;
  }

else{
  cout<<"NG"<<endl;
}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: expected unqualified-id before ',' token
    5 |   int A,,K,B;
      |         ^
Language: C++

using namespace std;
int main() {
	int k, a, b,t;
	cin >> k >> a >> b;
	t = b - a;
	if (t / k >= 1)puts("OK");
	else puts("NG");
}

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:6:24: error: 'puts' was not declared in this scope
    6 |         if (t / k >= 1)puts("OK");
      |                        ^~~~
a.cc:7:14: error: 'puts' was not declared in this scope
    7 |         else puts("NG");
      |              ^~~~
Language: C

#include<iostream>
#include<iomanip>
#include<algorithm>
#include<math.h>
#include<vector>
using namespace std;

int main() 
{
	int k;
	int a, b;
	cin >> k;
	cin >> a >> b;

	if (k == 1) {
		cout << "OK";
	}
	else {
		if((b - a) /k > 0)
			cout << "OK";
		else
			cout << "NG";
	}
	return 0;
}


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

#include <stdio>

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

Compiler output:
a.cc:1:10: fatal error: stdio: No such file or directory
    1 | #include <stdio>
      |          ^~~~~~~
compilation terminated.