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

#include <iostream>
#include <stdio.h>
#include <string.h>
int main() {
    int k;
    std::cin >> k;
    int a, b;
    std::cin >> a >> b;
    
    int min = a/k;
    int max = b/k;
 
    if( a < max*k){
        std::cout << "OK" << std::endl;
    }
    else{std::cout << "NG" << std::endl;}
 
 
    return 0;
}
#include <iostream>
#include <stdio.h>
#include <string.h>
int main() {
    int k;
    std::cin >> k;
    int a, b;
    std::cin >> a >> b;
    
    int min = a/k;
    int max = b/k;
 
    if( a <= max*k){
        std::cout << "OK" << std::endl;
    }
    else{std::cout << "NG" << std::endl;}
 
 
    return 0;
}
提出情報

Compiler output:
a.cc:24:5: error: redefinition of 'int main()'
   24 | int main() {
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main() {
      |     ^~~~
a.cc:41:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
   41 | 提出情報
      | ^~~~~~~~
Language: C

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

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

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

int main(){
//srandom((unsigned long)time(NULL));

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

string ans="NG"
for(int i=a;i<=b;i++){
    if(i%k==0) ans="OK";
}

cout<<ans<<endl;


return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:1: error: expected ',' or ';' before 'for'
   11 | for(int i=a;i<=b;i++){
      | ^~~
a.cc:11:13: error: 'i' was not declared in this scope
   11 | for(int i=a;i<=b;i++){
      |             ^
Language: Java

import java.util.*;
public class Main(){
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    
    int k = scanner.nextInt();
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    
    int mulValue = 1;
    while(k < b){
      if(a <= k && k <= b){
        System.out.println("OK");
        return;
      }
      k = k * mulValue;
    }
    System.out.println("NG");
  }
}

Compiler output:
Main.java:2: error: '{' expected
public class Main(){
                 ^
1 error
Language: Java

import java.util.*;
public class Main(){
  public static void main(String[] args){
    Scanner scanner = new Scanner(System.in);
    
    int k = scanner.nextInt();
    int a = scanner.nextInt();
    int b = scanner.nextInt();
    
    int mulValue = 1;
    while(k < b){
      if(a <= k && k <== b){
        System.out.println("OK");
        return;
      }
      k = k * mulValue;
    }
    System.out.println("NG");
  }
}

Compiler output:
Main.java:2: error: '{' expected
public class Main(){
                 ^
Main.java:12: error: illegal start of expression
      if(a <= k && k <== b){
                       ^
2 errors
Language: C

#include <stdio.h>

int main(void) {
	Int k, a, b;
	
	scanf("%d", &k);
	scanf("%d%d", &a, &b);
	
	int largest = (b / k) * k;
	if (a <= largest) {
		puts("OK");
	} else {
		puts("NG");
	}
	return 0;
}


Compiler output:
main.c: In function 'main':
main.c:4:9: error: unknown type name 'Int'; did you mean 'int'?
    4 |         Int k, a, b;
      |         ^~~
      |         int
Language: C

#include <stdio.h>

Int main(void) {
	Int k, a, b;
	
	scanf("%d", &k);
	Scanf("%d%d", &a, &b);
	
	Int largest = (b / k) * k;
	If (a <= largest) {
		Puts("OK");
	} else {
		Puts("NG");
	}
	Return 0;
}


Compiler output:
main.c:3:1: error: unknown type name 'Int'; did you mean 'int'?
    3 | Int main(void) {
      | ^~~
      | int
main.c: In function 'main':
main.c:4:9: error: unknown type name 'Int'; did you mean 'int'?
    4 |         Int k, a, b;
      |         ^~~
      |         int
main.c:7:9: error: implicit declaration of function 'Scanf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    7 |         Scanf("%d%d", &a, &b);
      |         ^~~~~
      |         scanf
main.c:9:9: error: unknown type name 'Int'; did you mean 'int'?
    9 |         Int largest = (b / k) * k;
      |         ^~~
      |         int
main.c:10:9: error: implicit declaration of function 'If' [-Wimplicit-function-declaration]
   10 |         If (a <= largest) {
      |         ^~
main.c:10:26: error: expected ';' before '{' token
   10 |         If (a <= largest) {
      |                          ^~
      |                          ;
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
      Scanner scn = new Scanner(System.in);
      int k=scn.nextInt();
      int a=scn.nextInt();
      int b=scn.nextInt();
      for(a<b;a++){
          if(a%k==0){
            System.out.printf("OK\n");
            return;
          }
      }
      System.out.printf("NG\n");
    }
}


Compiler output:
Main.java:9: error: > or ',' expected
      for(a<b;a++){
             ^
Main.java:9: error: not a statement
      for(a<b;a++){
           ^
Main.java:9: error: ';' expected
      for(a<b;a++){
                 ^
3 errors
Language: Java

import java.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
      Scanner scn = new Scanner(System.in);
      int k=scn.nextInt();
      int a=scn.nextInt();
      int b=scn.nextInt();
      for(a;a<b;a++){
          if(a%k==0){
            System.out.printf("OK\n");
            return;
          }
      }
      System.out.printf("NG\n");
    }
}

Compiler output:
Main.java:9: error: not a statement
      for(a;a<b;a++){
          ^
1 error
Language: C++

#include <iostream>
using namespace std;
int main(){
  int K;
  int A,B;
  cin >> B;
  bai = B - A;
  if ( bai > K )
   		cout << "ok" << endl;
  	else
      	cout << "ng" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'bai' was not declared in this scope
    7 |   bai = B - A;
      |   ^~~
Language: C++

#include <stdio.h>
using namespace std;
int main(){
  int K;
  int A,B;
  cin >> B;
  bai = B - A;
  if ( bai > K )
   		cout << "ok" << endl;
  	else
      	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 >> B;
      |   ^~~
a.cc:2:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    1 | #include <stdio.h>
  +++ |+#include <iostream>
    2 | using namespace std;
a.cc:7:3: error: 'bai' was not declared in this scope
    7 |   bai = B - A;
      |   ^~~
a.cc:9:17: error: 'cout' was not declared in this scope
    9 |                 cout << "ok" << endl;
      |                 ^~~~
a.cc:9:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:9:33: error: 'endl' was not declared in this scope
    9 |                 cout << "ok" << endl;
      |                                 ^~~~
a.cc:2:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    1 | #include <stdio.h>
  +++ |+#include <ostream>
    2 | using namespace std;
a.cc:11:9: error: 'cout' was not declared in this scope
   11 |         cout << "ng" << endl;
      |         ^~~~
a.cc:11:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:11:25: error: 'endl' was not declared in this scope
   11 |         cout << "ng" << endl;
      |                         ^~~~
a.cc:11:25: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <stdio.h>
using namespace std;
int main){
  int K;
  int A,B;
  cin >> B;
  bai = B - A;
  if ( bai > K )
   		cout << "ok" << endl;
  	else
      	cout << "ng" << endl;
}

Compiler output:
a.cc:3:9: error: expected initializer before ')' token
    3 | int main){
      |         ^
Language: C++

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

Compiler output:
a.cc:3:9: error: expected initializer before ')' token
    3 | int main){
      |         ^
Language: C++

#include <bits/std++.h>
using namespace std;
int main){
  int K;
  int A,B;
  cin >> B;
  bai = B - A;
  if ( bai > K )
   		cout << "ok" << endl;
  	else
      	cout << "ng" << endl;
}

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

#include <stdio.h>
#include <iostream>
#include <string.h>
#include <vector>
using namespace std;

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:20: error: 'A' was not declared in this scope
    5 |   if(k*(int)(b/k)>=A) cout<<"OK"<<endl;
      |                    ^
Language: C++

#include <bits/stdc++.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: return-statement with no value, in function returning 'int' [-fpermissive]
    9 |       return;
      |       ^~~~~~
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;
      return 0;
    }
  }
      cout << "NO" <<endl;
  	return 0;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: lvalue required as left operand of assignment
    9 |     if(i%K = 0 ){
      |        ~^~
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;
    }else{
      cout << "NO" <<endl;
    }
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:14:4: error: expected '}' at end of input
   14 |   }
      |    ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: Java

public class Main {
    public static void main(String[] args) {
        //コード
        Scanner scanner = new Scanner(System.in);
        Integer k = Integer.parseInt(scanner.next());
        Integer a = Integer.parseInt(scanner.next());
        Integer b = Integer.parseInt(scanner.next());


        int total = 0;
        for(int i = 1; i < b; i++) {
            total = k * i;
            if(total >= a && total <= b) {
                System.out.println("OK");
                break;
            }
            if(total > b) {
                System.out.println("NG");
                break;
            }
        }
    }
}

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

#include <iostream>
using namespace std;
int main() {
  
  int k, a, b, i = 1;
  cin>>k;
  cin>>a>>b;
  int large = (b / k) * k;
  if(a <= large)
    cout<<"OK\n";
  else
    cout<<"NG\n"
  return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   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:5: 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:12:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |     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>
#include <stdio.h>
#include <string.h>
int main() {
    std::int k;
    std::cin >> k;
    std::int a, b;
    std::cin >> a >> b;
    int min = a/k;
    int max = b/k;
    if (max == min){std::cout << "NG" << std::endl;}
    else{std::cout << "OK" << std::endl;}


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: expected unqualified-id before 'int'
    5 |     std::int k;
      |          ^~~
a.cc:6:17: error: 'k' was not declared in this scope
    6 |     std::cin >> k;
      |                 ^
a.cc:7:10: error: expected unqualified-id before 'int'
    7 |     std::int a, b;
      |          ^~~
a.cc:8:17: error: 'a' was not declared in this scope
    8 |     std::cin >> a >> b;
      |                 ^
a.cc:8:22: error: 'b' was not declared in this scope
    8 |     std::cin >> a >> b;
      |                      ^
Language: C++

#include <iostream>
#include <stdio.h>
#include <string.h>
int main() {
    std::int k;
    std::cin >> s;
    std::int a, b;
    std::cin >> a >> b;
    int min = a/k;
    int max = b/k;
    if (max == min){std::cout << "OK" << std::endl;}
    else{std::cout << "NG" << std::endl;}


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: expected unqualified-id before 'int'
    5 |     std::int k;
      |          ^~~
a.cc:6:17: error: 's' was not declared in this scope
    6 |     std::cin >> s;
      |                 ^
a.cc:7:10: error: expected unqualified-id before 'int'
    7 |     std::int a, b;
      |          ^~~
a.cc:8:17: error: 'a' was not declared in this scope
    8 |     std::cin >> a >> b;
      |                 ^
a.cc:8:22: error: 'b' was not declared in this scope
    8 |     std::cin >> a >> b;
      |                      ^
a.cc:9:17: error: 'k' was not declared in this scope
    9 |     int min = a/k;
      |                 ^
Language: C

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

int main() {
 int K; int X; int Y; cin>>K>>X>>Y;
  int N=0;
  for(int i=X;i<Y+1; i++){
    if(i%K==0)
      N++;
    else continue;
  }
  if(N!=0) 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: C++

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

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

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

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'anmespace'
    2 | using anmespace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> k >> a >> b;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |       cout << "OK\n";
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:16:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |   if(!f)        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<iostream>
using namespace std;
double main(){
  int X;
  cin >> X;
  int m = 100;
  int y = 0;
  while(X > m){
    m *= 1.01;
    y++;
  }
  cout << y <<endl;
}

Compiler output:
a.cc:3:1: error: '::main' must return 'int'
    3 | double main(){
      | ^~~~~~
Language: C++

#include<iostream>
#include<cstdio>
#include<cmath>
#include<cstring>
#include<string>
#include<stack>
#include<functional>
#include<queue>
#include<vector>
#include<algorithm>
#include<iomanip>
#include<utility>
#include<set>
#include<unordered_set>
#include<map>
#include<unordered_map>
typedef long long int ll;
#define FOR(i,a,b) for(int i=(a);i<(b);i++)
#define REP(i,n) for(int i=0;i<signed(n);i++)
#define EREP(i,n) for(int i=1;i<=signed(n);i++)
#define ALL(a) (a).begin(),(a).end()
using namespace std;
//#define EVEL 1
#ifdef EVEL
#define DEB(X) cout << #X <<":" <<X<<" " ;
#define TF(f) f ? cout<<"true  " : cout<<"false ";
#define END cout<<"\n";
#else
#define DEB(X) {}
#define TF(f) {}
#define END {}
#endif
const ll MOD = 1000000007;
const ll INF = 9e14;
typedef std::pair<ll,ll> P;
struct edge{ int to,cost; };
#define VMAX 100000

ll N,M,X,K,Q;
ll A,B,C,D;

ll ans;
bool F=false;

int main(){
    cin>>K>>A>>B;
    for(int i=A;i<=B;i++){
        if(i%K==0)f=true;
    }
    cout<<(F?"OK":"NG")<<endl;
    


    //cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:48:19: error: 'f' was not declared in this scope
   48 |         if(i%K==0)f=true;
      |                   ^
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){
        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:8:13: error: expected primary-expression before '>' token
    8 |     if(B-A => K){
      |             ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:18:3: error: expected declaration or statement at end of input
   18 |   }
      |   ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:63: error: expected ')' before ';' token
   12 |         if(ok){cout << "OK" << endl;}else(cout << "NG" << endl;)
      |                                          ~                    ^
      |                                                               )
a.cc:12:64: error: expected primary-expression before ')' token
   12 |         if(ok){cout << "OK" << endl;}else(cout << "NG" << endl;)
      |                                                                ^
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)||(a/k!=b/k){
		cout << "OK" << endl;
	}else{
		cout << "NG" << endl;
	}
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:34: error: expected ';' before '{' token
    8 |         if((a/k!=b/k)||(a/k!=b/k){
      |                                  ^
      |                                  ;
a.cc:10:10: error: expected primary-expression before 'else'
   10 |         }else{
      |          ^~~~
a.cc:10:10: error: expected ')' before 'else'
   10 |         }else{
      |          ^~~~
      |          )
a.cc:8:11: note: to match this '('
    8 |         if((a/k!=b/k)||(a/k!=b/k){
      |           ^
Language: C

int main(void){
  uint32_t k, a, b;
  scanf("%"SCNu32"%"SCNu32"%"SCNu32, &k, &a, &b);
  puts((a-1)/k==b/k?"NG":"OK");
}

Compiler output:
main.c: In function 'main':
main.c:2:3: error: unknown type name 'uint32_t'
    2 |   uint32_t k, a, b;
      |   ^~~~~~~~
main.c:1:1: note: 'uint32_t' is defined in header '<stdint.h>'; this is probably fixable by adding '#include <stdint.h>'
  +++ |+#include <stdint.h>
    1 | int main(void){
main.c:3:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    3 |   scanf("%"SCNu32"%"SCNu32"%"SCNu32, &k, &a, &b);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:3:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    3 |   scanf("%"SCNu32"%"SCNu32"%"SCNu32, &k, &a, &b);
      |   ^~~~~
main.c:3:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:3:12: error: expected ')' before 'SCNu32'
    3 |   scanf("%"SCNu32"%"SCNu32"%"SCNu32, &k, &a, &b);
      |        ~   ^~~~~~
      |            )
main.c:1:1: note: 'SCNu32' is defined in header '<inttypes.h>'; this is probably fixable by adding '#include <inttypes.h>'
  +++ |+#include <inttypes.h>
    1 | int main(void){
main.c:4:3: error: implicit declaration of function 'puts' [-Wimplicit-function-declaration]
    4 |   puts((a-1)/k==b/k?"NG":"OK");
      |   ^~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'puts'
Language: C++

#include <bits/stdc++/h>

using namespace std;

int main() {
  
  int num=0, kyori=0, max=0;
  
  cin >> num;
  cin >> kyori >> max;
  
  int solve = max/num * num;
  
  if(kyori<=solve) {
    
    cout << "OK" << endl;
    
  } else {
    
    cout << "NG" << endl;
    
  }
  
  return 0;
  
}
    
    

Compiler output:
a.cc: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;
public class Main2 {
	public static void main(String[] args){
		Scanner scan = new Scanner(System.in);
		int K = scan.nextInt();
		int A = scan.nextInt();
		int B = scan.nextInt();

		int max = (B / K) * K;

		if (max >= A){
			System.out.println("OK");
		}else{
			System.out.println("NG");
		}

	}

}


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


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

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



Compiler output:
a.cc: In function 'int main()':
a.cc:15:29: error: expected ';' before '}' token
   15 |                 cout<<"NG\n"
      |                             ^
      |                             ;
   16 | }
      | ~
Language: C++

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

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

#include<iostream>
#include<bits/stdc++.h>
#define fastIO ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);

using namespace std;

int main(){
  int k;cin>>k;
  int a,b;
  cin>>a>>b,flag=0;
  if(k==1)
    cout<<"OK"<<endl;
  else if((b-a)>=k)
    cout<<"OK"<<endl;
  else 
  {
    for(int i=a;i<=b;i++){
      if(i%k==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:10:13: error: 'flag' was not declared in this scope
   10 |   cin>>a>>b,flag=0;
      |             ^~~~
Language: C++

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

int main()
{
  int k,a,b;
  cin>>k>>a>>b;
  
  int lo=a/k;
  if(a%k) lo++;
  
  lo*=k;
  
  puts((lo>=a && lo<=b)?"OK":"NG");
  
  return 0;
  
}

Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namespac'
    2 | using namespac std;
      |       ^~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   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
      |                  ^~~
Language: C

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

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

    l=(b/k)*k;

    if(a<=l){
        cout << "YES";
    }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++

import sys
K = int(input())
A,B = map(int,input().split())
for i in range(A,B+1):
  if i%K==0:
    print("OK")
    sys.exit(0)
print("NG")

Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import sys
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

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

int k, a, b;
bool flag = false;

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

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

  if (flag) {
    printf("OK");
  } else {
    printf("NG");
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:27: error: expected primary-expression before '=' token
   11 |   for (int i = b - a; i < = b; i++) {
      |                           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: expected ';' before 'endl'
   15 |     cout << "NG" endl;
      |                 ^~~~~
      |                 ;
Language: C++


#include <iostream>

using namespace std;

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

using namespace std;

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

using namespace std;

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

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

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

typedef long long ll;
typedef vector<int> vi;
typedef pair<int,int> pii;
typedef vector<pii> vii;
#define F first
#define S second
#define sz(x) (int)x.size()
#define db(x) cerr << #x << ": " << x << "\n";

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:17:15: error: 'B' was not declared in this scope
   17 |     int K, A; B;
      |               ^
Language: C++

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

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


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

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

Compiler output:
a.cc:4:1: error: 'cin' does not name a type
    4 | cin >>k>>a>>b;
      | ^~~
Language: Java

package project;
import java.util.*;
public class b0502 {

	public static void main(String[] args) {
		Scanner stdIn =new Scanner(System.in);
		int X =stdIn.nextInt();
		int Y=100;
		int i;
		
		for(i=0;Y<X;i++) {
			Y=(int) (Y*1.01);
			Y=Y/1;
		}
		System.out.println(i);
		
		
	}

}

Compiler output:
Main.java:3: error: class b0502 is public, should be declared in a file named b0502.java
public class b0502 {
       ^
1 error
Language: Java

package project;
import java.util.Scanner;
public class Main {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		int k=stdIn.nextInt();
		int a=stdIn.nextInt();
		int b=stdIn.nextInt();
		int x=0;
		
		for(int i = a;i<=b;i++) {
			if(i%k==0) {
				x=1;
				break;
			}
		}
		
		if(x==1) {
			System.out.println("OK");
		}
		else {
			System.out.println("NG");
		}

	}




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

package project;
import java.util.Scanner;
public class jump0503 {

	public static void main(String[] args) {
		Scanner stdIn = new Scanner(System.in);
		
		int k=stdIn.nextInt();
		int a=stdIn.nextInt();
		int b=stdIn.nextInt();
		int x=0;
		
		for(int i = a;i<=b;i++) {
			if(i%k==0) {
				x=1;
				break;
			}
		}
		
		if(x==1) {
			System.out.println("OK");
		}
		else {
			System.out.println("NG");
		}

	}

}


Compiler output:
Main.java:3: error: class jump0503 is public, should be declared in a file named jump0503.java
public class jump0503 {
       ^
1 error
Language: Java

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

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

#include <bits/stdc++.h>

using namespace std;

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

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

#include <bits/stdc++.h>

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 ){
        return cout<<"OK" , 0;
      }
    }
    cout<<"NG";
    return;
}

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

#include <bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:26: error: 'n' was not declared in this scope
    8 |     for(int i = a ; i <= n; ++i){
      |                          ^
a.cc:14:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   14 |     return;
      |     ^~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:62: error: expected ';' before '{' token
   11 |   if((val >= a && val <= b) || (val + k >= a && val + k <= b)
      |                                                              ^
      |                                                              ;
   12 |      {
      |      ~                                                        
a.cc:15:6: error: expected primary-expression before 'else'
   15 |      else
      |      ^~~~
a.cc:14:7: error: expected ')' before 'else'
   14 |      }
      |       ^
      |       )
   15 |      else
      |      ~~~~
a.cc:11:5: note: to match this '('
   11 |   if((val >= a && val <= b) || (val + k >= a && val + k <= b)
      |     ^
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(b-b%k > a || b-b%k == a){
            System.out.println("OK");
        }
        else{
            System.out.println("NG");
        }
        }
    }
}

Compiler output:
Main.java:4: error: ';' expected
        Scanner sc = new Scanner(System.in)
                                           ^
Main.java:16: error: class, interface, enum, or record expected
}
^
2 errors
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(b-b%k > a || b-b%k == a){
            System.out.println("OK");
        }
        else{
            System.out.println("NG");
        }
        
    }
}

Compiler output:
Main.java:1: error: ';' expected
import java.util.*/;
                  ^
Main.java:4: error: ';' expected
        Scanner sc = new Scanner(System.in)
                                           ^
2 errors
Language: C++

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


Compiler output:
a.cc:2:7: error: expected nested-name-specifier before 'namesapce'
    2 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:5:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 | 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:11:9: 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 <bits/stdc++.h>
using namespace std;
 
int main() {
  int K,A,B;
  cin >> K >> A >> B;
  if (A <= B/K*K) {
    cout << "OK" << endl;
  }
  else
    cout << "NG" << endl;
  return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: expected ';' before '}' token
   12 |   return 0
      |           ^
      |           ;
   13 | }
      | ~
Language: C++

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

int main()
{
	int K < A < B;

	cin >> K >> A >> B;

	if (A / K != B / K) {

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:15: error: expected initializer before '<' token
   14 |         int K < A < B;
      |               ^
a.cc:16:16: error: 'K' was not declared in this scope
   16 |         cin >> K >> A >> B;
      |                ^
a.cc:16:21: error: 'A' was not declared in this scope
   16 |         cin >> K >> A >> B;
      |                     ^
a.cc:16:26: error: 'B' was not declared in this scope
   16 |         cin >> K >> A >> B;
      |                          ^
Language: C++

#include <iostream> // cout, endl, cin
#include <string> // string, to_string, stoi
#include <vector> // vector
#include <algorithm> // min, max, swap, sort, reverse, lower_bound, upper_bound
using namespace std;

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





Compiler output:
a.cc: In function 'int main()':
a.cc:19:4: error: 'else' without a previous 'if'
   19 |    else{
      |    ^~~~
Language: C

#include <stdio.h>

int hikyori(int dist)
{
  int A,B;
  int i;
  scanf("%d %d",&A,&B);

  if(1 <= dist && dist<= 1000)
  {
    if( 1 <= A && A <= B && B<= 1000)
    {
      for(i = A; i<=B;i++)
      {
        if( i % dist == 0)
        {
          printf("OK\n");
          flg = 1;
          return 0;
        }
      }
    }
  }
  printf("NG\n");
  return 0;
}

int main(void)
{
  int K;
  
  scanf("%d",&K);
  hikyori(K);
  return 0;
}

Compiler output:
main.c: In function 'hikyori':
main.c:18:11: error: 'flg' undeclared (first use in this function)
   18 |           flg = 1;
      |           ^~~
main.c:18:11: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int hikyori(int dist)
{
  int A,B;
  int i;
  scanf("%d %d",&A,&B);

  if(1 <= K && K<= 1000)
  {
    if( 1 <= A && A <= B && B<= 1000)
    {
      for(i = A; i<=B;i++)
      {
        if( i % dist == 0)
        {
          printf("OK\n");
          flg = 1;
          return 0;
        }
      }
    }
  }
  printf("NG\n");
  return 0;
}

int main(void)
{
  int K;
  
  scanf("%d",&K);
  hikyori(K);
  return 0;
}

Compiler output:
main.c: In function 'hikyori':
main.c:9:11: error: 'K' undeclared (first use in this function)
    9 |   if(1 <= K && K<= 1000)
      |           ^
main.c:9:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:11: error: 'flg' undeclared (first use in this function)
   18 |           flg = 1;
      |           ^~~
Language: C

#include <stdio.h>

int hikyori(int dist)
{
  int A,B;
  int i;
  int flg;
  scanf("%d %d",&A,&B);
  
  for(i = A; i<=B;i++)
  {
    if( i % dist == 0)
    {
      prnitf("OK");
      flg = 1;
      break;
    }
  }
  if(flg == 0)
  {
    printf("NG");
  }
  
  return 0;
}

int main(void)
{
  int K;
  
  scanf("%d",&K);
  hikyori(K);
  return 0;
}

Compiler output:
main.c: In function 'hikyori':
main.c:14:7: error: implicit declaration of function 'prnitf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   14 |       prnitf("OK");
      |       ^~~~~~
      |       printf
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  long long A,B,N,t,s,Y;
  cin>>A>>B>>N;
  t=0;
  for(long long i=0;i<N;i++){
    Y=(i+1)%B
    s=A*Y/B-A*(Y/B);
    t=max(s,t);
  }
  cout<<t<<endl;
}
      
 


Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: expected ';' before 's'
    8 |     Y=(i+1)%B
      |              ^
      |              ;
    9 |     s=A*Y/B-A*(Y/B);
      |     ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:17:15: error: expected ';' before 'return'
   17 |     cout<<"NG"
      |               ^
      |               ;
   18 | 
   19 |   return 0;
      |   ~~~~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: expected ';' before 'break'
   11 |       flag=1
      |             ^
      |             ;
   12 |       break;
      |       ~~~~~  
a.cc:17:15: error: expected ';' before 'return'
   17 |     cout<<"NG"
      |               ^
      |               ;
   18 | 
   19 |   return 0;
      |   ~~~~~~
Language: C

#include <iostream>
#include <algorithm>
#include <vector>
#include <cmath>
#include <string>
#include <map>

#define ll long long
#define REP(i,n) for(int i = 0; i < n; i++)
#define PI 3.141592653589
#define MOD 1000000007

using namespace std;

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

void solve_A(){
    int k;
    cin >> k;
    int a, b;
    cin >> a >> b;

    bool flag = false;
    int i = 1;
    while(i* k <= b){
        if(a <= i*k && i*k <= b) flag = true;
        i++;
    }

    if(flag) cout << "OK";
    else cout << "NG";
}

int main(void){
    solve_A();
    
    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<static_cast<int>(n);++i)
#define per(i, n) for(int i=static_cast<int>(n)-1;i>=0;--i)
#define eee(a) (cerr<<"[@"<<__LINE__<<"] "<<(#a)<<": "<<(a)<<'\n');
#define ppp(a) (cout<<(a)<<'\n'); 
#define cop(a) for(auto x:(a)){cerr<<(x)<<'\n';}
using ll = long long;
constexpr int dx[4]={1,0,-1,0};
constexpr int dy[4]={0,1,0,-1};
constexpr ll MOD = 1e9+7;
constexpr ll Mod = 998244353;
constexpr int INF = 1e9;
constexpr ll LINF = 1e18;
constexpr double phi = (1+sqrt(5))/2;
constexpr double pi = 3.14159265358979323846264338327950288;
inline ll gcd(ll a,ll b){return b?gcd(b,a%b):a;}
inline ll lcm(ll a,ll b){return a/gcd(a,b)*b;}
inline ll inverse(ll n,ll m=MOD){ll a=n,b=m,x=1,y=0;while(b){ll t=a/b;a-=t*b;swap(a,b);x-=t*y;swap(x,y);}return (a%m+m)%m;}
inline void Yes(){puts("Yes");}
inline void No(){puts("No");}
inline void Judge(bool b){b?Yes():No();}
inline void YES(){puts("YES");}
inline void NO(){puts("NO");}
inline void JUDGE(bool b){b?YES():NO();}
inline ll powmod(ll b, ll e, ll m=MOD){ll r=1;while(e>0){if(e&1)r=(r%m)*(b%m)%m;b=(b%m)*(b%m)%m;e>>=1;}return r;}
inline double distance(ll x1, ll y1, ll x2, ll y2){return sqrt((x1-x2)*(x1-x2)+(y1-y2)*(y1-y2));}
inline double d2r(double d){return d*pi/180;}
inline double r2d(double r){return r*180/pi;}
template<class T>inline bool chmax(T &a, const T &b){if(a<b){a=b;return 1;}return 0;}
template<class T>inline bool chmin(T &a, const T &b){if(b<a){a=b;return 1;}return 0;}
template<typename T>inline int bs(int g,int k,T c){while(abs(k-g)>1){int m=(g+k)/2;(c(m)?k:g)=m;}return k;}
template<typename T1,typename T2>ostream& operator<<(ostream& s,const pair<T1, T2>& p){return s <<"("<<p.first<<", "<<p.second<<")";}
template<typename T> ostream& operator<<(ostream& s,const vector<T>& v){s<<'[';for(size_t i=0;i<v.size();++i){s<<v[i];if(i<v.size()-1)s<<", ";}s<<']';return s;}
template<typename T> istream& operator>>(istream& s,vector<T>& v){for(T& x:v)s>>x;return s;}

int main(){
    cin.tie(0); ios::sync_with_stdio(0); cout<<fixed<<setprecision(15);
    
    int k;
    cin >> k;
    int a, b;
    cin >> a >> b;
    for(int i = a; i <= b; ++i){
        if(i%k == 0){
            print("OK");
            return 0;
        }
    }
    print("NG");
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:46:13: error: 'print' was not declared in this scope; did you mean 'rint'?
   46 |             print("OK");
      |             ^~~~~
      |             rint
a.cc:50:5: error: 'print' was not declared in this scope; did you mean 'rint'?
   50 |     print("NG");
      |     ^~~~~
      |     rint
Language: C++

#include<bits/stdc++.h>

using namespace std;

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

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

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

	#define E "\n"
	#define int long long 
	#define f(i,l,n) for(int i=l;i<n;i++)

	

	int32_t main()
	{

	  

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

	}

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