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

#include<iostream>

using namespace std;
int main()
{
    int num1, num2, num3;
    cin >> num1;
    cin >> num2 >> num3;

    int a = num2/num1;
    int b = num3/num1;
    if(b-a => 0 || num1 == 1)
    {
        cout << "OK" << endl;
    }
    else
    {
        cout << "NG" << endl;
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:13: error: expected primary-expression before '>' token
   12 |     if(b-a => 0 || num1 == 1)
      |             ^
Language: C++

#include <iostream>
#include <math>
using namespace std;
 
int main(void) {
  long K, A, B;
  long mod_A, mod_B;
  
  cin >> K;
  cin >> A >> B;
  
  mod_A = A % K;
  mod_B = B % K;
 
  if (mod_B - mod_A < K) {
    if (mod_A == 0) or (mod_B == 0) {
      cout << "OK";
    }
    else if (mod_A > mod_B) {
      cout << "OK";
    }
    else {
      cout << "NG";
    }
  }
  else {
    cout << "OK";
  }
} 

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

#include <stdio.h>
#include <limits.h>
 
int main(void) {
	int K,A,B;
    int i=0;
    scanf("%d", K);
	scanf("%d, %d", A, B);
     if((B-A)/K>=1){
       printf("OK\n");
     else
       do{
         printf("OK\n");
         i++;
         if(i=B-A){break;}
       } while(((A+i)/K)*K=A+i);
       printf("NO\n");
       
       return 0;
         }
           

Compiler output:
main.c: In function 'main':
main.c:11:6: error: expected '}' before 'else'
   11 |      else
      |      ^~~~
main.c:16:27: error: lvalue required as left operand of assignment
   16 |        } while(((A+i)/K)*K=A+i);
      |                           ^
Language: C

#include<stdio.h>

int main(void)
{
int K,A,B;
scanf("%d %d %d",&K,&A,&B);
if((A <= B) % K = 0)printf("OK");
else printf("NG");

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:17: error: lvalue required as left operand of assignment
    7 | if((A <= B) % K = 0)printf("OK");
      |                 ^
Language: C++

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

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


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

#include <iostream>
#include <sstream>
#include <cstdio>
#include <cmath>
#include <cstring>
#include <cctype>
#include <string>
#include <vector>
#include <list>
#include <set>
#include <map>
#include <queue>
#include <stack>
#include <algorithm>
#include <functional>
using namespace std; 
#define DEBUG(x) cout << '>' << #x << ':' << x << endl;
#define REP(i,n) for(int i=0;i<(n);i++)
#define FOR(i,a,b) for(int i=(a);i<=(b);i++)
#define FORD(i,a,b) for(int i=(a);i>=(b);i--)

int main() {
  int k,i,a,b,r=0;
  cin>>k;
  cin>>a>>b;
  FOR(i,a,b)
  {
    if(i%k==0)
		r=1;
  }
  if(r==1)
    print("OK");
  else
  print("NG");
  

Compiler output:
a.cc: In function 'int main()':
a.cc:32:5: error: 'print' was not declared in this scope; did you mean 'rint'?
   32 |     print("OK");
      |     ^~~~~
      |     rint
a.cc:34:3: error: 'print' was not declared in this scope; did you mean 'rint'?
   34 |   print("NG");
      |   ^~~~~
      |   rint
a.cc:34:15: error: expected '}' at end of input
   34 |   print("NG");
      |               ^
a.cc:22:12: note: to match this '{'
   22 | int main() {
      |            ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:21: error: lvalue required as left operand of assignment
    8 |   else if (A%K>=B%K || A%K=0) {cout<< "OK" <<endl;}
      |            ~~~~~~~~~^~~~~~
Language: C++

# include <bits/stdc++.h>
using namespace std;
int k,a,b; 
int main(){
	cin>>k>>a>>b;
	if(a%k==0||b%k==0) return puts("OK"),0;
	int t1=a/n,t2=b/n;
	if(t1<t2) puts("OK");
	else puts("NG");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: 'n' was not declared in this scope; did you mean 'yn'?
    7 |         int t1=a/n,t2=b/n;
      |                  ^
      |                  yn
a.cc:8:15: error: 't2' was not declared in this scope; did you mean 't1'?
    8 |         if(t1<t2) puts("OK");
      |               ^~
      |               t1
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0; i<(int)(n); i++)
#define INF = numeric_limits<long long>::max();
#define intf int_fast64_t

int main(){
    int A, B, K;
    cin >> K >> A >> B;
    string can = "NG";
    // if ((A % K) + (B % K) > K || B - A >= K-1 || A % K == 0 || B % K == 0 ){
        if (A / K != B / K || A % K == 0 || B % K == 0){}
            can = "OK";
        }
    cout << can << endl;
}

Compiler output:
a.cc:15:5: error: 'cout' does not name a type
   15 |     cout << can << endl;
      |     ^~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
Language: C++

#include <iostream>
using namespace std;
 
int main(void) {
  long K, A, B;
  long mod_A, mod_B;
  
  cin >> K;
  cin >> A >> B;
  
  mod_A = A % K;
  mod_B = B % K;
 
  if (mod_B - mod_A < K) {
    if (mod_A == 0) || (mod_B == 0) {
      cout << "OK";
    }
    else if (mod_A > mod_B) {
      cout << "OK";
    }
    else {
      cout << "NG";
    }
  }
  else {
    cout << "OK";
  }
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:15:21: error: expected primary-expression before '||' token
   15 |     if (mod_A == 0) || (mod_B == 0) {
      |                     ^~
Language: C++

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

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

#include <iostream>
using namespace std;

int main() {
    // prepare variables
    int multiplier, lb, ub;
    cin >> multiplier >> lb >> ub;
    bool is_achievable = false;

    // determines search upper boundary
    int ub_search = lb + multiplier - 1;
    ub_search = ub < ub_search ? ub : ub_search;
    for(int i = lb; i <= ub_search; ++i) {
        int mod = i%multiplier;
        if(mod == 0){
            is_achievable = true;
            break;
        }
    }

    if(is_achievable)
        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;

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


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: conflicting declaration 'bool b'
    9 |   bool b = true;
      |        ^
a.cc:5:11: note: previous declaration as 'int b'
    5 |   int k,a,b;
      |           ^
Language: C

#include <iostream>
#include <cmath>
#include <algorithm>
#include <string>
#include <vector>
#include <set>
using namespace std;
 
int main(){
    int K;
    int A,B;

    cin >> K;
    cin >> A >> B;

    if (B - A >= K || K == 1 ){
        cout<<"OK"<<endl;
    }
    else{
        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: iostream: No such file or directory
    1 | #include <iostream>
      |          ^~~~~~~~~~
compilation terminated.
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int a,b,c,d,i;
    cin>>a>>b>>c;
    for(i=1;i<=1000;i++)
    {
        d=i*a;
        if(d>=b&&d=<c)
        {
            cout<<"OK";
            return 0;
        }
        if(d>c)
        {
            cout<<"NG";
            return 0;
        }
    }

}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: expected primary-expression before '<' token
   10 |         if(d>=b&&d=<c)
      |                    ^
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();
     int flag=0;
    for( int i=a;i<=b;i++){
      if(i%k==0){
        flag++;
      }
    }
    if(flag<0){
      System.out.println("OK");
    }else{
      SYstem.out.println("NG");
    }
   }
}

Compiler output:
Main.java:17: error: package SYstem does not exist
      SYstem.out.println("NG");
            ^
1 error
Language: C++

#include <iostream>

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

    if ((int)A / K == (int)B / K)
    {
        cout << "OK" << endl;
    }
    else
        cout << "NG" << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |     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:11:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |         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:11:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |         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:14:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |         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:14:25: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |         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>
#include <vector>
#include <cmath>
#include <algorithm>
#include <map>
 
using namespace std;
int main() {
  int k,a,b;
  cin>>k;
  cin>>a>>b;
  for(int i;i=0;i<b-a+1;i++){
  if((a+i)%k==0){
    cout<<"Yes"<<endl;
    break;
  }
  else{
    }
    cout<<"NO"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: expected ')' before ';' token
   12 |   for(int i;i=0;i<b-a+1;i++){
      |      ~                 ^
      |                        )
a.cc:12:25: error: 'i' was not declared in this scope
   12 |   for(int i;i=0;i<b-a+1;i++){
      |                         ^
Language: Java

import java.util.*;
public class main
{
	public  static  void main(String args[])
	{
		Scanner s=new Scanner(System.in);
		int k=s.nextInt();
		int a=s.nextInt();
		int b=s.nextInt();
		int n=b-a;
		if(k==1)
		{
			System.out.println("OK");
			//break;
		}
		else
		{
			if(n>=k)
			{
				System.out.println("OK");
				//break;
			}
			else
			{
				System.out.println("NG");
				//break;
			}
		}
	}
}

Compiler output:
Main.java:2: error: class main is public, should be declared in a file named main.java
public class main
       ^
1 error
Language: C

#include <iostream>
#include <vector>
#include <string>
#include <math.h>
#include <algorithm>
#include <functional>

using namespace std;


int main()
{
	long K, A, B;

	cin >> K >> A >> B;

	if (abs(A - B) >= K) 
		cout << "OK";
  	else if(B > 0 && K == 1)
      	cout << "OK";
	else
		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 <iostream>
#include <math>
using namespace std;

int main(void) {
  long K, A, B;
  long mod_A, mod_B;
  
  cin >> K;
  cin >> A >> B;
  
  mod_A = A % K;
  mod_B = B % K;

  if (mod_B - mod_A < K) {
    if (mod_A == 0) || (mod_B == 0) {
      cout << "OK";
    }
    else if (mod_A > mod_B) {
      cout << "OK";
    }
    else {
      cout << "NG";
    }
  }
  else {
    cout << "OK";
  }
} 

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

#include<iostream>
#include<string>

using std::cout;
using std::cin;
using std::endl;

int main(){
    int K,A,B,k;
    bool ans = true;
    cin >> K;
    k = K;
    cin >> A >> B;
    while(K <= B && ans){
        if(A <= K && K <= B){
            ans = false;
            cout << "OK";
        }
        K += k;
    }
    if(ans) cout << "NG";
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:39: error: break statement not within loop or switch
    8 |     if(a==k && k==b){cout<<"OK"<<endl;break();}
      |                                       ^~~~~
a.cc:8:44: error: expected ';' before '(' token
    8 |     if(a==k && k==b){cout<<"OK"<<endl;break();}
      |                                            ^
      |                                            ;
a.cc:8:45: error: expected primary-expression before ')' token
    8 |     if(a==k && k==b){cout<<"OK"<<endl;break();}
      |                                             ^
Language: C++

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: lvalue required as left operand of assignment
    7 |     if (A % K = 0) {
      |         ~~^~~
Language: C

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'elseif' was not declared in this scope
    9 |         elseif((a+(k-(a%k)))<=b)
      |         ^~~~~~
a.cc:11:3: error: 'else' without a previous 'if'
   11 |   else
      |   ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ')' before '!' token
    7 |   if(A/K!=B/K! ||K==1  ||A<=K<=B){
      |     ~        ^
      |              )
Language: C++

#include <bits/stdc++.h>
#include <string>
#include <stdio.h>
#include <cstdlib>

using namespace std;

int main() {
int k, a, b, flg;
cin >> k >> a>> b;
flg=0;
for (i=1; i <= (b-a)+1;i++){
    if (i+a-1 % k ==0 ){
        flg=1;
    }
}
if(flg=1){
    cout << "YES";
}
else{
    cout << "NO";
}
}

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

# include <iostream>

using namespace std;

int main () {
  int a,b,f;
  cin>>a>>b>>f;
  for(int i=1;i<=1000;i++); {
    if(i>=a and i<=b and i%f==0) cout<<"OK";
    else  cout<<"NG";
	}  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: 'i' was not declared in this scope
    9 |     if(i>=a and i<=b and i%f==0) cout<<"OK";
      |        ^
Language: Java

import java.io.IOException;
import java.io.InputStream;
import java.util.NoSuchElementException;

public class Main {
	public static void main(String[] args) {
		FastScanner sc = new FastScanner();
		int a = Integer.parseInt(sc.next());
		int b = Integer.parseInt(sc.next());
		int c = Integer.parseInt(sc.next());
		String ans = "NG";
		for(int i = b; i <= c; i++) {
			if(i > 0 && a % i == 0) {
				ans = "OK";
			}
		}
		System.out.print(ans);
	}
}

class FastScanner {
    private final InputStream in = System.in;
    private final byte[] buffer = new byte[1024];
    private int ptr = 0;
    private int buflen = 0;
    private boolean hasNextByte() {
        if (ptr < buflen) {
            return true;
        }else{
            ptr = 0;
            try {
                buflen = in.read(buffer);
            } catch (IOException e) {
                e.printStackTrace();
            }
            if (buflen <= 0) {
                return false;
            }
        }
        return true;
    }
    private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}
    private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}
    public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}
    public String next() {
        if (!hasNext()) throw new NoSuchElementException();
        StringBuilder sb = new StringBuilder();
        int b = readByte();
        while(isPrintableChar(b)) {
            sb.appendCodePoint(b);
            b = readByte();
        }
        return sb.toString();
    }


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

#include< stdio.h >
  
  int main(){
  int K,A,B,x;
  A <= B;
  scanf("%d",&K);
  scanf("%d,%d",&A ,&B);
  
    for(x=1,xK<=B,x++){
  if(A <= xK && xK <= B ){
  printf("OK");
  }

   else(){
   printf("NG");
   }
    }
}

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

#include <iostresm>

using namespace std;

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

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int K,A,B;
  cin >>K>>A>>B;
  if(B>=A+A/K || (A<K && K<B))cout<<"OK"<<endl;
  else cout<<"NG"<<endl;
  
  }
}

Compiler output:
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
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;
   ll flag =0;
   for(ll i=a;i<=b;i++){
       if(i%k == 0){
           flag = 1;
           break;
       }
   }
   if(flag == 1){
       cout<<"OK\n";
   }
   else{
       cout<<"NG\n;
    }
}

Compiler output:
a.cc:22:14: warning: missing terminating " character
   22 |        cout<<"NG\n;
      |              ^
a.cc:22:14: error: missing terminating " character
   22 |        cout<<"NG\n;
      |              ^~~~~~
a.cc: In function 'int main()':
a.cc:23:5: error: expected primary-expression before '}' token
   23 |     }
      |     ^
Language: C++

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

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


Compiler output:
a.cc:11:15: error: stray '\' in program
   11 |   if(A % K == \\ B % K == 0){
      |               ^
a.cc:11:16: error: stray '\' in program
   11 |   if(A % K == \\ B % K == 0){
      |                ^
Language: C++

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

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

#include<iostream>
using namespace std;

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

  cin >> k;
  cin >> a >> b;

  a /= k;
  b /= k;

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

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:11: error: lvalue required as left operand of assignment
   17 |     if (a % k = 0){
      |         ~~^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: lvalue required as left operand of assignment
    8 |   if(A >= K||K = 1||K==A||K==B) cout << "OK" << endl;
      |      ~~~~~~^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'd' was not declared in this scope
    6 |   d = b/a;
      |   ^
a.cc:7:3: error: 'e' was not declared in this scope
    7 |   e = (d+1)*a;
      |   ^
Language: C

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

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

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

int main(){
  int A,B,K;
  cin >> K;
  cin >> A >> B;
  
  while(true){
     if(A==B){
       cout << "Ok";
       break;}
     else if(A!=B){
     if((A++)%k==true){
       cout << "OK"}
     }else{
     cout <<"NG";}}
  
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: 'k' was not declared in this scope
   14 |      if((A++)%k==true){
      |               ^
a.cc:15:20: error: expected ';' before '}' token
   15 |        cout << "OK"}
      |                    ^
      |                    ;
Language: C++

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

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

#include<iostream>
using namespace stdio; 
int main()
{
  int k, a, b, f=1; 
  cin>>k>>a>>b; 
  for(int i=a; i<=b; i++)
    {
       if(i%k ==  0)
         {f=0;
            cout<<"OK"<<endless; 
         break; 
         }
    if(f==1) cout<<"NG";
    }
  }

Compiler output:
a.cc:2:17: error: 'stdio' is not a namespace-name
    2 | using namespace stdio;
      |                 ^~~~~
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 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:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |             cout<<"OK"<<endless;
      |             ^~~~
      |             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:25: error: 'endless' was not declared in this scope
   11 |             cout<<"OK"<<endless;
      |                         ^~~~~~~
a.cc:14:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |     if(f==1) 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()
{ int A,B,K,i,count;
 scanf("%d%d%d",&K,&A,&B);
 for(i=1;i<=B,i++)
 { if(A<=K*i<=B)
   count=count+1;
 }
 if(count!=0)
   printf("OK");
  else 
    printf("NG");
return 0;
}
 


Compiler output:
main.c: In function 'main':
main.c:5:18: error: expected ';' before ')' token
    5 |  for(i=1;i<=B,i++)
      |                  ^
      |                  ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: lvalue required as left operand of assignment
    8 |   if(A >= K||K = 1||K=A||K=B) cout << "OK" << endl;
      |                       ~^~~
Language: C++

#include <bits/stdc++.h>

using namespace std;


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


		int k, a, b;
		cin >> k;
		cin >> a >> b;

		int i = a;
		bool f = false;
		for (; i <= b; i++) {
			if (i%k == 0) {
				cout << "OK\n";
				f = true;
				break;
			}
			debug(i);
		}
		if (f != true)cout << "NG\n";

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:25: error: 'debug' was not declared in this scope
   23 |                         debug(i);
      |                         ^~~~~
Language: Java

import java.lang.*;
import java.util.*;
import java.io.*;
public class Main{
  public static void main(String[] args) throws IOException{
    BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
    int k=Integer.parseInt(bf.readLine());
    String[] s=bf.readLine().split(" ");
    int a=Integer.parseInt(s[0]);
    int b=Integer.parseInt(s[1]);
    if((b-a)>=k){
      System.out.println("OK");
    }
    else{
      if(b%k==0 || a%k==0){
        System.out.println("OK");
      }
      else if(a%k=<b%k){
        System.out.println("OK");
      }
      else{
        System.out.println("NG");
      }  
    }
  }
}


Compiler output:
Main.java:18: error: > or ',' expected
      else if(a%k=<b%k){
                    ^
1 error
Language: C++

#include <iostream>
 
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: In function 'int main()':
a.cc:17:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   17 |         return;
      |         ^~~~~~
Language: C

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
int main(void){
    int a,b,i,k,ans,flag=0;
    scanf("%d\n",&k);
    scanf("%d %d",&a,&b);
    for(i=0; i<b-a; i++){
        ans = b+i;
        if((ans%k==0)flag++;
    }
    if(flag==0)printf("NG");
    else printf("OK");
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:22: error: expected ')' before 'flag'
   11 |         if((ans%k==0)flag++;
      |           ~          ^~~~
      |                      )
main.c:12:5: error: expected expression before '}' token
   12 |     }
      |     ^
Language: C++

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

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


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

#include<stdio.h>
int main()
{
  int a,b,c,d,e;
  scanf("%d",&a);
  scanf("%d %d",&b,&c);
  d=b%a;
  e=c-b+d;
  if(d==0||(a>=d&&a<=e)) printf("OK\n");
  else printf("NG\n);
   return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:15: warning: missing terminating " character
   10 |   else printf("NG\n);
      |               ^
main.c:10:15: error: missing terminating " character
   10 |   else printf("NG\n);
      |               ^~~~~~~
main.c:11:4: error: expected expression before 'return'
   11 |    return 0;
      |    ^~~~~~
main.c:11:13: error: expected ';' before '}' token
   11 |    return 0;
      |             ^
      |             ;
   12 | }
      | ~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: lvalue required as left operand of assignment
    9 |   else if (A%K=0) {cout<< "OK" <<endl;}
      |            ~^~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:14: error: expected ')' before '!' token
    7 |   if(A/K!=B/K! ||K==1){
      |     ~        ^
      |              )
Language: C++

#include <iostream>
#include <algorithm>
#include <iomanip>
#include"stdio.h"
#include <cstring>
#include<math.h>
#include<map>
#include<queue>
#include<stack>
#include"time.h"
#define MAX_INT  ((unsigned)(-1)>>1)
#define MIN_INT  (~MAX_INT)
#define db printf("where!\n");
#define pb push_back
using namespace std;
#define ll long long
ll gcd(ll x,ll y){return y ? gcd(y,x%y) : x;}
template<class T>inline void read(T &res){
char c;T flag=1;
while((c=getchar())<'0'||c>'9')if(c=='-')flag=-1;res=c-'0';
while((c=getchar())>='0'&&c<='9')res=res*10+c-'0';res*=flag;
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:29:14: error: 'k' was not declared in this scope
   29 |         if(i%k==0) {
      |              ^
Language: C

#include<stdio.h>
int main()
{ int A,B,K,i,count;
 scanf("%d%d%d",&K,&A,&B);
 for(i=1;i<=B,i++)
 { if(A<=K*i<=B)
   count=count+1;
 }
 if(count!=0)
   printf("OK")
  else 
    printf("NG");
return 0;
}
 

Compiler output:
main.c: In function 'main':
main.c:5:18: error: expected ';' before ')' token
    5 |  for(i=1;i<=B,i++)
      |                  ^
      |                  ;
main.c:10:16: error: expected ';' before 'else'
   10 |    printf("OK")
      |                ^
      |                ;
   11 |   else
      |   ~~~~
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();
            for(; a <= b+1; a++){
              if(a % k == 0){
                System.out.println("OK");
                break;
              } else if(a == b){
                System.out.println("NG");
                break;
              }
            }

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

#include <iostream>
using namespace std;


int main() {
    unsigned long long x;
    cin >>x;
    unsigned long long temp = 100;
    int counter = 0;
    while(temp < x) {
        temp += temp / 100;
        counter++;
    }
    cout << counter;



Compiler output:
a.cc: In function 'int main()':
a.cc:14:21: error: expected '}' at end of input
   14 |     cout << counter;
      |                     ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

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

int main(){
        fast_io
        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: 'fast_io' was not declared in this scope
    6 |         fast_io
      |         ^~~~~~~
a.cc:8:16: error: 'n' was not declared in this scope; did you mean 'yn'?
    8 |         cin >> n;
      |                ^
      |                yn
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int k , a , b;
  cin>> k >> a >> b;
  if(k>a)
      if(k>b)
return "OK";
else 
return "NG";

 int mini = (a/k);
  
  if((mini+2)*k <= b)
    cout<<"OK";
  else 
    cout<<"NG";
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:8: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
    9 | return "OK";
      |        ^~~~
      |        |
      |        const char*
a.cc:11:8: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   11 | return "NG";
      |        ^~~~
      |        |
      |        const char*
Language: C++

#include <iostream.h>
 
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: iostream.h: No such file or directory
    1 | #include <iostream.h>
      |          ^~~~~~~~~~~~
compilation terminated.
Language: Java

import java.lang.*;
import java.util.*;
import java.io.*;
public class Main{
  public static void main(String[] args) throws IOException{
    BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
    int k=Integer.parseInt(bf.readLine());
    String[] s=bf.readLine().split(" ");
    int a=Integer.parseInt(s[0]);
    int b=Integer.parseInt(s[1]);
    if((b-a)>=k){
      System.out.println("OK");
    }
    else{
      if(b%k==0 || a%k==0){
        System.out.println("OK");
      }
      else if(a%k=<b%k){
        System.out.println("OK"):
      }
      else{
        System.out.println("NG");
      }  
    }
  }
}

Compiler output:
Main.java:18: error: > or ',' expected
      else if(a%k=<b%k){
                    ^
Main.java:19: error: ';' expected
        System.out.println("OK"):
                                ^
2 errors
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: Java


import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Scanner;



public class D {

	public static class pair implements Comparable<pair> {
		int id;
		int ans;
 
		pair(int x, int y) {
 
			id = x;
			ans = y;
 
		}
 
		public pair() {
 
		}
 
		public int compareTo(pair o) {
			// TODO Auto-generated method stub
 
			return this.id - o.id;
		}
	}
 
//	static int mod = (int) 998244353.;
	static ArrayList<Integer> gr[];
	static int[] ar;
	static Scanner sc = new Scanner(System.in);
	static int pri[] = new int[(int) 1e6 + 5];
	static StringBuilder out = new StringBuilder();
 
	//static long dp[];
 
	public static void main(String[] args) throws IOException {
		int t =1;//sc.nextInt();
		
		while (t-- > 0) {
 
			int n=sc.nextInt();
			int a=sc.nextInt();
			int b=sc.nextInt();
			if(a%n==0 || b%n==0) {
				out.append("OK\n");
				continue;
			}
			if(a/n!=b/n ) {
				out.append("OK\n");
				continue;
			}
			out.append("NG\n");
			

		
		}
		
		System.out.println(out);
	}
 
	
}

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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for(int i = 0; i < (int)(n); i++)
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
template<typename T> using min_priority_queue = priority_queue<T, vector<T>, greater<T>>;
const ll INF = 1LL<<60;
const ll MOD = 1e9 + 7;


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

}

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.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class Main {

    public static void main(String[] args) {
        FastReader fs = new FastReader();
        int k = fs.nextInt();
        int A = fs.nextInt();
        int B = fs.nextInt();

        if(B - A =1>= k){
            System.out.println("OK");
        }else{
            System.out.println("NG");
        }
    }

    static class FastReader
    {
        BufferedReader br;
        StringTokenizer st;

        public FastReader()
        {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }

        String next()
        {
            while (st == null || !st.hasMoreElements())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt()
        {
            return Integer.parseInt(next());
        }

        long nextLong()
        {
            return Long.parseLong(next());
        }

        double nextDouble()
        {
            return Double.parseDouble(next());
        }

        String nextLine()
        {
            String str = "";
            try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
        }
    }
}


Compiler output:
Main.java:14: error: unexpected type
        if(B - A =1>= k){
             ^
  required: variable
  found:    value
1 error
Language: C

include < stdio.h >
  
  int main(){
  int K,A,B,x;
  A <= B;
  scanf("%d",&K);
  scanf("%d,%d",&A ,&B);
  
  if(A <= xK && xK <= B ){
  printf("OK");
  }

   else(){
   printf("NG");
   }
  
}

Compiler output:
main.c:1:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include < stdio.h >
      |         ^
Language: C++

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

int main() {
  int K, A, B;
  double a, b;
  cin >> K >> A >> B;
  a = A / K;
  b = B / K;
  if (a == b) {
    cout << NG << endl;
  } else {
    cout << OK << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: 'NG' was not declared in this scope
   11 |     cout << NG << endl;
      |             ^~
a.cc:13:13: error: 'OK' was not declared in this scope; did you mean 'K'?
   13 |     cout << OK << endl;
      |             ^~
      |             K
Language: C++

#include <iostream>
#include <algorithm>
#include <iomanip>
#include"stdio.h"
#include <cstring>
#include<math.h>
#include<map>
#include<queue>
#include<stack>
#include"time.h"
#define MAX_INT  ((unsigned)(-1)>>1)
#define MIN_INT  (~MAX_INT)
#define db printf("where!\n");
#define pb push_back
using namespace std;
#define ll long long
ll gcd(ll x,ll y){return y ? gcd(y,x%y) : x;}
template<class T>inline void read(T &res){
char c;T flag=1;
while((c=getchar())<'0'||c>'9')if(c=='-')flag=-1;res=c-'0';
while((c=getchar())>='0'&&c<='9')res=res*10+c-'0';res*=flag;
}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:28:18: error: expected ';' before '<=' token
   28 |     for(int i=b,i<=c;i++){
      |                  ^~
      |                  ;
a.cc:28:18: error: expected primary-expression before '<=' token
   28 |     for(int i=b,i<=c;i++){
      |                  ^~
a.cc:29:14: error: 'k' was not declared in this scope
   29 |         if(i%k==0) {
      |              ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:16:19: error: expected '}' at end of input
   16 |   else cout<<"NG";
      |                   ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C

#include<bits/stdc++.h>

using namespace std;

#define read(in) freopen("Input.txt","r",stdin)
#define write(out) freopen("Ouput.txt","w",stdout)
#define Pi 2*acos(0.0)

typedef long long int lli;

lli i,j,k,l,m,n,t,a,b,c,d,x,y,p,q,s,r,f,sum=0,total=0;

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

    //read(in);

    cin>>k>>a>>b;
    sum=0;
    for(i=a ; i<=b ; i++)
    {
    	if(i%k==0)
    	{
    		sum=1;break;
    	}
    }
    if(sum==1)	cout<<"OK\n";
    else cout<<"NG\n";
}

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 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: In function 'int main()':
a.cc:17:9: error: return-statement with no value, in function returning 'int' [-fpermissive]
   17 |         return;
      |         ^~~~~~
Language: C

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

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

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 = 0;
    int a = 0;
    int b = 0;
    cin >> k >> a >> b;

    bool flag = false;

    for(int i = a; i <= b ; i++){
        if(i % k == 0){
            flag true;
            break;
        }
    }

    if(flag){
        cout << "OK" << endl;
    }else{
        cout << "NG" << endl;
    }
    
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: expected ';' before 'true'
   15 |             flag true;
      |                 ^~~~~
      |                 ;
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;

    while((a % k != 0) && (a < b)){
        a = a + 1;
    }
    if(a%k == 0){
      cout << "OK";
    } else{
        cout << "NG";
    }
    }
}


Compiler output:
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
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:47:2: error: expected declaration before '}' token
   47 |  }
      |  ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   11 |   if(a%k==0 || a+k<=b){
      |      ~^~
      |      | |
      |      | int
      |      double