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

#include <math.h>
using namespace
int main()
{
  int A,B,K;
  if(B % K == 0 && A % K){
    cout << "OK";
  } else{
      cout << "NO";
  }
}

Compiler output:
a.cc:3:1: error: expected identifier before 'int'
    3 | int main()
      | ^~~
a.cc:2:16: error: expected ';' before 'int'
    2 | using namespace
      |                ^
      |                ;
    3 | int main()
      | ~~~             
a.cc: In function 'int main()':
a.cc:7:5: error: 'cout' was not declared in this scope
    7 |     cout << "OK";
      |     ^~~~
a.cc:9:7: error: 'cout' was not declared in this scope
    9 |       cout << "NO";
      |       ^~~~
Language: C++

#include<bits/stdc++.h>
#define LL long long
#define MOD 1000000007
using namespace std;

int main(){
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  LL k,a,b,d;
  
  cin>>k;
  cin>>a>>b;
  d = a/k +1;
  if(k==1){
    if(a>=k || b>=k)
  		cout<<"OK";
  }
  else if(d*k>=a && d*k<=b){
    	cout<<"OK";
   }#include<bits/stdc++.h>
#define LL long long
#define MOD 1000000007
using namespace std;

int main(){
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  LL k,a,b,d;
  
  cin>>k;
  cin>>a>>b;
  d = a/k +1;
  if(k==1){
    if(a>=k || b>=k)
  		cout<<"OK";
  }
  else if(d*k>=a && d*k<=b){
    	cout<<"OK";
   }else if((b-a)+1<=k){
    cout<<"OK";
  }
   else{
    	cout<<"NG";
  	}
   

  
return 0;
}
   else{
    	cout<<"NG";
  	}
   

  
return 0;
}

Compiler output:
a.cc:21:5: error: stray '#' in program
   21 |    }#include<bits/stdc++.h>
      |     ^
a.cc: In function 'int main()':
a.cc:21:6: error: 'include' was not declared in this scope
   21 |    }#include<bits/stdc++.h>
      |      ^~~~~~~
a.cc:21:14: error: 'bits' was not declared in this scope
   21 |    }#include<bits/stdc++.h>
      |              ^~~~
a.cc:21:19: error: 'stdc' was not declared in this scope; did you mean 'std'?
   21 |    }#include<bits/stdc++.h>
      |                   ^~~~
      |                   std
a.cc:24:1: error: expected primary-expression before 'using'
   24 | using namespace std;
      | ^~~~~
a.cc:26:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   26 | int main(){
      |         ^~
a.cc:26:9: note: remove parentheses to default-initialize a variable
   26 | int main(){
      |         ^~
      |         --
a.cc:26:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:26:11: error: a function-definition is not allowed here before '{' token
   26 | int main(){
      |           ^
a.cc:52:4: error: 'else' without a previous 'if'
   52 |    else{
      |    ^~~~
Language: C++

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

int main (){

int A,B,N,K;
cin>>A>>B>>N>>K;
int a==K*N;
cin>>a;
if(A<=a&&a<=B){
cout<<"OK"<<endl;
}
else {
cout<<"NG"<<endl;
}

}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: expected initializer before '==' token
    8 | int a==K*N;
      |      ^~
a.cc:9:6: error: 'a' was not declared in this scope
    9 | cin>>a;
      |      ^
Language: C++

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

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

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

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

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

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

Compiler output:
a.cc: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, a, b;

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

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

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

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

Compiler output:
a.cc:4:5: error: cannot declare '::main' to be a global variable
    4 | int main{
      |     ^~~~
a.cc:5:3: error: expected primary-expression before 'int'
    5 |   int N,A,B;
      |   ^~~
a.cc:5:3: error: expected '}' before 'int'
a.cc:4:9: note: to match this '{'
    4 | int main{
      |         ^
a.cc:6:3: error: 'cin' does not name a type
    6 |   cin >> N >> A >> B;
      |   ^~~
a.cc:7:3: error: expected unqualified-id before 'if'
    7 |   if(B-A>=N)
      |   ^~
a.cc:9:3: error: expected unqualified-id before 'else'
    9 |   else
      |   ^~~~
a.cc:11:1: error: expected declaration before '}' token
   11 | }
      | ^
Language: C++

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

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

int A,B,N,K;
cin>>A>>B>>N>>K;
int a==K*N;
if(A<=a&&a<=B){
cout<<"OK"<<endl;
}
else {
cout<<"NG"<<endl;
}

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: expected initializer before '==' token
   10 | int a==K*N;
      |      ^~
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){
      cout << "Yes" << endl;
      return 0;
    }
  cout << "No" << endl;
  return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: expected initializer before '>' token
    6 |   int s>0;
      |        ^
a.cc:8:5: error: 'k' was not declared in this scope
    8 |   l=k*s;
      |     ^
a.cc:8:7: error: 's' was not declared in this scope
    8 |   l=k*s;
      |       ^
Language: Java

import java.util.Scanner;
	public static void main(String[] args) {
	
		  Scanner scanner = new Scanner(System.in);

int K = scanner.nextInt();
int A = scanner.nextInt();
int B = scanner.nextInt();

	for(; A <= B; A++) {

    if(K % A == 0) {
    System.out.println("OK");
    System.exit(0);
  }
	}
	System.out.println("NG");
    
	  }
}


Compiler output:
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
	public static void main(String[] args) {
	              ^
  (use --enable-preview to enable unnamed classes)
Main.java:20: error: class, interface, enum, or record expected
}
^
2 errors
Language: C++

#include <iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: lvalue required as left operand of assignment
    8 |      if ((B + i) % K = 0){
      |          ~~~~~~~~^~~
a.cc:13:2: error: expected '}' at end of input
   13 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin>>n>>a>>b;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:14:5: error: 'cout' was not declared in this scope
   14 |     cout<<"OK"<<endl;
      |     ^~~~
a.cc:14:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:14:17: error: 'endl' was not declared in this scope
   14 |     cout<<"OK"<<endl;
      |                 ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | using namespace std;
a.cc:16:5: error: 'cout' was not declared in this scope
   16 |     cout<<"NG"<<endl;
      |     ^~~~
a.cc:16:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:16:17: error: 'endl' was not declared in this scope
   16 |     cout<<"NG"<<endl;
      |                 ^~~~
a.cc:16:17: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C

int main(){

  int a;
  scanf("%d", &a);

  int bank = 100;
  int year = 0;
  while(true){
      year++;
      bank = bank + int(bank/100)
      if(bank==a){
          break;
      }
  }
  printf("%d", year);
}

Compiler output:
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%d", &a);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(){
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d", &a);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:8:9: error: 'true' undeclared (first use in this function)
    8 |   while(true){
      |         ^~~~
main.c:1:1: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
  +++ |+#include <stdbool.h>
    1 | int main(){
main.c:8:9: note: each undeclared identifier is reported only once for each function it appears in
    8 |   while(true){
      |         ^~~~
main.c:10:21: error: expected expression before 'int'
   10 |       bank = bank + int(bank/100)
      |                     ^~~
main.c:15:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   15 |   printf("%d", year);
      |   ^~~~~~
main.c:15:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:15:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:15:3: note: include '<stdio.h>' or provide a declaration of 'printf'
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(k > b){
            System.out.prinln("NG");
            System.exit(0);
        }
        if(b-a < k){
            if(a == b){
                if(a%k == 0){
                    System.out.println("OK");
                    System.exit(0);
                }
                else{
                    System.out.println("NG");
                    System.exit(0);
                }
            }
            System.out.println("NG");
        }
        else{
            System.out.println("OK");
        }
    }
}

Compiler output:
Main.java:9: error: cannot find symbol
            System.out.prinln("NG");
                      ^
  symbol:   method prinln(String)
  location: variable out of type PrintStream
1 error
Language: C++

#include <iostream>
using namespace std;

 int main（）
{
 char res;
 
 cout << "5以上７以下の数字ですか？¥n";
 cout << "4または５または７を入力してください。¥n";
 
 cin >> res;
 
 if (res == '5' || res == '7'){
    cout << "OK¥n";
}
 else if (res == '4'){
   cout << "NG¥n;
}
 
 


Compiler output:
a.cc:17:12: warning: missing terminating " character
   17 |    cout << "NG¥n;
      |            ^
a.cc:17:12: error: missing terminating " character
   17 |    cout << "NG¥n;
      |            ^~~~~~
a.cc:6:2: error: expected primary-expression before 'char'
    6 |  char res;
      |  ^~~~
a.cc:6:2: error: expected '}' before 'char'
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
a.cc:8:2: error: 'cout' does not name a type
    8 |  cout << "5以上７以下の数字ですか？¥n";
      |  ^~~~
a.cc:9:2: error: 'cout' does not name a type
    9 |  cout << "4または５または７を入力してください。¥n";
      |  ^~~~
a.cc:11:2: error: 'cin' does not name a type
   11 |  cin >> res;
      |  ^~~
a.cc:13:2: error: expected unqualified-id before 'if'
   13 |  if (res == '5' || res == '7'){
      |  ^~
a.cc:16:2: error: expected unqualified-id before 'else'
   16 |  else if (res == '4'){
      |  ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:21: error: expected ';' before '}' token
   17 |     cout<<"NG"<<endl
      |                     ^
      |                     ;
   18 | }
      | ~
Language: Java

import java.util.Scanner;

public class aaa {
		  public static void main(String[] args) {
	
		  Scanner scanner = new Scanner(System.in);

int K = scanner.nextInt();
int A = scanner.nextInt();
int B = scanner.nextInt();

	for(; A <= B; A++) {

    if(K % A == 0) {
    System.out.println("OK");
    System.exit(0);
  }
	}
	System.out.println("NG");
    
	  }
}


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

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

Compiler output:
a.cc:3:1: error: expected unqualified-id before '{' token
    3 | {
      | ^
Language: Java

import java.util.Scanner;

public class Test165A {

	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 a = A / K;
		int num = A % K;
		if (num == 0) {
			if (a * K <= B) {
				System.out.println("OK");
			} else {
				System.out.println("NG");
			}
		} else {
			if ((a+1) * K <= B) {
				System.out.println("OK");;
			} else {
				System.out.println("NG");
			}
		}
	}

}


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

#include <bits/stdc++.h>
using namespace std;
int main(){
	int k, A, B, c, i;
	scanf("%d%d%d", &k, &A, &B);
	c=B/k;
	for(i=1; i<=c; i++){
		if(k*i >= A && k*i <=B){
		printf("ok");
		break;
		}
		else if(i == c){
			if(k <= A || k >= B){
				printf("NG");
				break;
			}
			else printf("ok");
		}
		else continue;
		
	}
	return 0;
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: expected initializer before '>' token
    6 |   int s>0;
      |        ^
a.cc:7:9: error: 'k' was not declared in this scope
    7 |   if(a<=k*s<=b){
      |         ^
a.cc:7:11: error: 's' was not declared in this scope
    7 |   if(a<=k*s<=b){
      |           ^
Language: C++

#include <iostream>
using namespace std;

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: 'B' was not declared in this scope
    8 |   if(B < k) {
      |      ^
Language: C++

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)

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

    int judge = 0;

    for(int i=A;i<=B;i++) {
        if(i%K==0) {
            judge = 1;
            break;
        }
    }

    if(judge==1) {
        cout << "OK" << endl;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'cin' was not declared in this scope
    9 |     cin >> K;
      |     ^~~
a.cc:4:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    3 | #include <math.h>
  +++ |+#include <iostream>
    4 | using namespace std;
a.cc:23:9: error: 'cout' was not declared in this scope
   23 |         cout << "OK" << endl;
      |         ^~~~
a.cc:23:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:23:25: error: 'endl' was not declared in this scope
   23 |         cout << "OK" << endl;
      |                         ^~~~
a.cc:4:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    3 | #include <math.h>
  +++ |+#include <ostream>
    4 | using namespace std;
a.cc:26:9: error: 'cout' was not declared in this scope
   26 |         cout << "NG" << endl;
      |         ^~~~
a.cc:26:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:26:25: error: 'endl' was not declared in this scope
   26 |         cout << "NG" << endl;
      |                         ^~~~
a.cc:26:25: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

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


void solve(long long K, long long A, long long B){
    ll n = A/K, m = B/K;
    if(A <= n*K || m*K <= B || (m-n) >= 2) cout << "OK" << endl;
    else cout << "NG" << endl;
}

// Generated by 1.1.6 https://github.com/kyuridenamida/atcoder-tools  (tips: You use the default template now. You can remove this line by using your custom template)
int main(){
    long long K;
    scanf("%lld",&K);
    long long A;
    scanf("%lld",&A);
    long long B;
    scanf("%lld",&B);
    solve(K, A, B);
    return 0;
}


Compiler output:
a.cc: In function 'void solve(long long int, long long int, long long int)':
a.cc:6:5: error: 'll' was not declared in this scope
    6 |     ll n = A/K, m = B/K;
      |     ^~
a.cc:7:13: error: 'n' was not declared in this scope
    7 |     if(A <= n*K || m*K <= B || (m-n) >= 2) cout << "OK" << endl;
      |             ^
a.cc:7:20: error: 'm' was not declared in this scope
    7 |     if(A <= n*K || m*K <= B || (m-n) >= 2) cout << "OK" << endl;
      |                    ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected ')' before '$$'
   10 |   if(A<K $$ B>K) {cout << "OK" << endl;}
      |     ~   ^~~
      |         )
Language: C

#include <stdio.h>

int main(void)
{
	{
  		int K;
  		K == 2
	}
  
  	{
      int A
      A == 100
    }
  
  	{
      int B
      B == 900
    }
  
  int C
  for(C=A;C<=B;C=C+1)
  {
    if((C%K)==0)
    {
    	print(OK);
    }
    if(!(C%K)==0)
    {
    	print(NG);
    }
}

Compiler output:
main.c: In function 'main':
main.c:7:23: error: expected ';' before '}' token
    7 |                 K == 2
      |                       ^
      |                       ;
    8 |         }
      |         ~              
main.c:12:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'A'
   12 |       A == 100
      |       ^
main.c:12:7: error: 'A' undeclared (first use in this function)
main.c:12:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:12:15: error: expected ';' before '}' token
   12 |       A == 100
      |               ^
      |               ;
   13 |     }
      |     ~          
main.c:17:7: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'B'
   17 |       B == 900
      |       ^
main.c:17:7: error: 'B' undeclared (first use in this function)
main.c:17:15: error: expected ';' before '}' token
   17 |       B == 900
      |               ^
      |               ;
   18 |     }
      |     ~          
main.c:21:3: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'for'
   21 |   for(C=A;C<=B;C=C+1)
      |   ^~~
main.c:21:7: error: 'C' undeclared (first use in this function)
   21 |   for(C=A;C<=B;C=C+1)
      |       ^
main.c:23:11: error: 'K' undeclared (first use in this function)
   23 |     if((C%K)==0)
      |           ^
main.c:25:9: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
   25 |         print(OK);
      |         ^~~~~
      |         printf
main.c:25:15: error: 'OK' undeclared (first use in this function)
   25 |         print(OK);
      |               ^~
main.c:29:15: error: 'NG' undeclared (first use in this function)
   29 |         print(NG);
      |               ^~
main.c:31:1: error: expected declaration or statement at end of input
   31 | }
      | ^
Language: C

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


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

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

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: expected '(' before '{' token
   14 | else if{
      |        ^
      |        (
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: expected '}' before 'else'
   10 |         else {
      |         ^~~~
a.cc:8:25: note: to match this '{'
    8 |         if( B-A >= K-1 ){
      |                         ^
Language: C++

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

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

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

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: expected ';' before 'if'
   10 | A<=a&&a<=B
      |           ^
      |           ;
   11 | if(a/K==N){
      | ~~         
a.cc:14:1: error: 'else' without a previous 'if'
   14 | else{
      | ^~~~
Language: C

#include <stdio.h>
	main(int argc, const char * argv[]) {
  	  int a,b,k;
        	scanf("%d %d",&a, &b);
        scan	f("%d" ,&k);
        	
    int s,t;
        s = 	a%k; t = b%k;
        if(s == 		t){
            printf("	NG");
        }		
    else	{
    	        	printf("OK");
    }	
}	

Compiler output:
main.c:2:9: error: return type defaults to 'int' [-Wimplicit-int]
    2 |         main(int argc, const char * argv[]) {
      |         ^~~~
main.c: In function 'main':
main.c:5:9: error: unknown type name 'scan'
    5 |         scan    f("%d" ,&k);
      |         ^~~~
main.c:5:19: error: expected declaration specifiers or '...' before string constant
    5 |         scan    f("%d" ,&k);
      |                   ^~~~
main.c:5:25: error: expected declaration specifiers or '...' before '&' token
    5 |         scan    f("%d" ,&k);
      |                         ^
Language: C

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

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

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

int main() {
  int k, a, b;
  cin >> k >> a >> b;
  if ((a%k == 0) || (b%k = 0)) cout << "Yes" << endl;
  else if (a%k - b%k == 0) cout << "No" << endl;
  else cout << "Yes" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:23: error: lvalue required as left operand of assignment
    7 |   if ((a%k == 0) || (b%k = 0)) cout << "Yes" << endl;
      |                      ~^~
Language: C++

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

int main(){
  int k;
  cin >> k;
  int a, b;
  cin >> a >> b;
  
  int cnt=0;
  int x =a/k;
  int ans=k*x, i=1;
  while(b >= ans){
    ans += k*i;
    if((ans >= a and ans <= b){
      cnt++;
      break;
    }
    i++;
  }
  if(cnt > 0) cout << "OK" << endl;
  else cout << "NG" << endl;
  
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:31: error: expected ';' before '{' token
   15 |     if((ans >= a and ans <= b){
      |                               ^
      |                               ;
a.cc:19:8: error: expected ')' before ';' token
   19 |     i++;
      |        ^
      |        )
a.cc:15:7: note: to match this '('
   15 |     if((ans >= a and ans <= b){
      |       ^
Language: C++

///AJoy Sarker ,CSE JAHANGIRNAGAR UNIVERSITY 48 Batch
#include<bits/stdc++.h>
using namespace std;
#define SORT(c) sort((c).begin(),(c).end());
#define pb push_back
#define MP make_pair
#define pii pair<int,int>
#define pcc pair<char,char>
#define pic pair<int,char>
#define pci pair<char,int>
#define VS vector<string>
#define VI vector<int>
#define pi 3.141592653589793
#define ll long long
#define ull unsigned long long
#define w(x) int x;cin>>x;while(x--)
#define fast ios_base::sync_with_stdio(0)
#define sz size()
typedef unsigned long long UL;
template<typename T>inline T  S(T a)
{
    return a*a;
}
template<class T>inline string tostring(T a)
{
    ostringstream os("");
    os << a;
    return os.str();
}
template<typename T>inline ll tolong(T a)
{
    ll res;
    istringstream os(a);
    os>>res;
    return res;
}
template<typename T>inline T gcd(T a, T b)
{
    if (b == 0)return a;
    else return gcd(b, a % b);
}
template<typename T>inline T bigmod(T a, T b, T m)
{
    if (b == 0)return 1;
    else if (b % 2 == 0)return S(bigmod(a, b / 2, m)) % m;
    else return (a % m*bigmod(a, b - 1, m)) % m;
}
const int inf = (int)1e9 + 5;
const ll linf = (ll)1e16 + 5;
const ll modd = (ll)1e9 + 7;
const int mod = 10000007;
/*#define N 20000009
bool prime[N];
vector<ll> prm;
void seive ()
{

    memset(prime, true, sizeof(prime));

    for( ll i=2; i*i<=N; i++)
    {
        if (prime[i] == true)
        {
            prm.pb(i);
            for (ll j=i*i; j<=N; j += i)
                prime[j] = false;
        }
    }
}*/
void pr (int f)
{
    if(f==1)
        cout<<"YES\n";
    else
        cout<<"NO\n";
}
map<int,int>mp;
set<string> st;
queue <int> q ;
int vis [1000];
int main()
{
    fast;
    int a,b,k;
    cin>>k>>a>>>b;
    for(int i=a;i<=b;i++)
    {
        if(i%k==0)
        {
            cout<<"OK\n";
            return 0;
        }
    }
    cout<<"NG\n";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:85:16: error: expected primary-expression before '>' token
   85 |     cin>>k>>a>>>b;
      |                ^
Language: C++

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

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

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

Compiler output:
a.cc:7:9: error: 'cin' does not name a type
    7 |         cin >> K >> A >> B;
      |         ^~~
a.cc:9:9: error: expected unqualified-id before 'if'
    9 |         if( B-A >= K-1 ){
      |         ^~
Language: C

#include<stdio.h>
int main(void){
  int K, A, B c = 0;
  scanf("%d", &K);
  scanf("%d", &A);
  scanf("%d", &B);

  for(int i = A; i <= B; i++){
    if(i % K == 0) c += 1;
  }

  if(c == 0) printf("NG\n");
  else printf("OK\n");


  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'c'
    3 |   int K, A, B c = 0;
      |               ^
main.c:6:16: error: 'B' undeclared (first use in this function)
    6 |   scanf("%d", &B);
      |                ^
main.c:6:16: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:20: error: 'c' undeclared (first use in this function)
    9 |     if(i % K == 0) c += 1;
      |                    ^
Language: C++

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

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

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

#include<algorithm>//sort,二分探索,など
#include<bitset>//固定長bit集合
#include<cmath>//pow,logなど
#include<complex>//複素数
#include<deque>//両端アクセスのキュー
#include<functional>//sortのgreater
#include<iomanip>//setprecision(浮動小数点の出力の誤差)
#include<iostream>//入出力
#include<iterator>//集合演算(積集合,和集合,差集合など)
#include<map>//map(辞書)
#include<numeric>//iota(整数列の生成),gcdとlcm(c++17)
#include<queue>//キュー
#include<set>//集合
#include<stack>//スタック
#include<string>//文字列
#include<unordered_map>//イテレータあるけど順序保持しないmap
#include<unordered_set>//イテレータあるけど順序保持しないset
#include<utility>//pair
#include<vector>//可変長配列

using namespace std;
typedef long long ll;

//マクロ
//forループ関係
//引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか
//Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる
#define REP(i,n) for(ll i=0;i<(ll)(n);i++)
#define REPD(i,n) for(ll i=n-1;i>=0;i--)
#define FOR(i,a,b) for(ll i=a;i<=(ll)(b);i++)
#define FORD(i,a,b) for(ll i=a;i>=(ll)(b);i--)
//xにはvectorなどのコンテナ
#define ALL(x) (x).begin(),(x).end() //sortなどの引数を省略したい
#define SIZE(x) ((ll)(x).size()) //sizeをsize_tからllに直しておく
#define MAX(x) *max_element(ALL(x)) //最大値を求める
#define MIN(x) *min_element(ALL(x)) //最小値を求める
#define D()
//定数
#define INF 1000000000000 //10^12:極めて大きい値,∞
#define MOD 10000007 //10^9+7:合同式の法
#define MAXR 100000 //10^5:配列の最大のrange(素数列挙などで使用)
//略記
#define PB push_back //vectorヘの挿入
#define MP make_pair //pairのコンストラクタ
#define F first //pairの一つ目の要素
#define S second //pairの二つ目の要素

int main(){

  int K,A,B;

  cin >> K >> A >> B;
  int c = A/K;
  
  if(K == 1){
    cout << "OK" <<endl;
  }
  else if(B-A>=K){
    cout << "OK" <<endl;
  }
  else if(c == 0){
    cout <<"OK" <<emdl;
  }
  else if(K*(c+1)<=B){
    cout <<"OK" <<endl;
  }
  else{
    cout <<"NG" <<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:62:19: error: 'emdl' was not declared in this scope
   62 |     cout <<"OK" <<emdl;
      |                   ^~~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:15:3: error: expected '}' before 'else'
   15 |   else if(B%K-A%K < 0){
      |   ^~~~
a.cc:12:20: note: to match this '{'
   12 |   else if(A%K == 0){
      |                    ^
Language: C++

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

int main() {
  int K, A, B;
  cin >> K >> A >> B;
  
  int x,N;
  N =  K % x
    
  if (A<=N<=B) {
    cout << "OK" << endl;
  }

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:13: error: expected ';' before 'if'
    9 |   N =  K % x
      |             ^
      |             ;
   10 | 
   11 |   if (A<=N<=B) {
      |   ~~         
a.cc:15:3: error: 'else' without a previous 'if'
   15 |   else {
      |   ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int k;
  cin >>k;
  int a,b;
  cin >> a >> b;
  if(B < k) {
    cout << "No" << endl;
    return 0;
  }
  if((b-a)+(a%k) < k){
    cout << "No" << endl;
    return 0;
  }
  cout << "Yes" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: 'B' was not declared in this scope
    8 |   if(B < k) {
      |      ^
Language: C++

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

int main() {
   int K , A , B ;
  cin >> K >> A >> B ;
  bool ans = false ;
   if(K<=B){
     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:10:12: error: lvalue required as left operand of assignment
   10 |        if(i%K=0) {
      |           ~^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: 'd' was not declared in this scope
    9 |   d=i%k;if(d==0){u=1;break;}
      |   ^
Language: C++

#include <iostream>
using namespace std;

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


    flag = false;
    for (int i=1; i<=1000; i++) {
        if (A<=i*K and i*K<=B) {
            flag = true;
            break;
        }
    }

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


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


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


int main() {
	// your code goes here
int A =0;
int B =0;
int K =0;
	cin >>K>>endl;
	cin>> A ,B;
	
	  bool ans=false;
	for (int i=0; i<B-A;i++){
	   
	

	if( (A+i)%K==0 ){
	    ans =true;
	}
	}
	
	if (ans){
	    cout<<"OK"<<endl;
	}
	else{
	    cout<<"NO" <<endl;
	}
	
	
	

}


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

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

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

#include<bits/stdc++.h>
#define LL long long
#define MOD 1000000007
using namespace std;

int main(){
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  LL k,a,b,d;
  
  cin>>k;
  cin>>a>>b;
  d = a/k +1;
  if(k==1){
    if(a>=k || b>=k)
  		cout<<"OK";
  }
   else if(d*k>=a && d*k<=b){
    	cout<<"OK";
    }
    else{
    	cout<<"NG";
  	}
  }
   

  else{
    cout<<"NG";
  }
  
return 0;
}

Compiler output:
a.cc:28:3: error: expected unqualified-id before 'else'
   28 |   else{
      |   ^~~~
a.cc:32:1: error: expected unqualified-id before 'return'
   32 | return 0;
      | ^~~~~~
a.cc:33:1: error: expected declaration before '}' token
   33 | }
      | ^
Language: C++

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

int main() {
   int K , A , B ;
  cin >> K >> A >> B ;
  bool ans = false ;
   if(K<=B){
     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:10:12: error: lvalue required as left operand of assignment
   10 |        if(i%K=0) ans = true ;
      |           ~^~
a.cc:14:28: error: expected ';' before '}' token
   14 |   else cout << "NG" << endl
      |                            ^
      |                            ;
   15 | }
      | ~
Language: C

#include <stdio.h>
int main(){
int a,b,k,s;
scanf("%d",&k);
scanf("%d %d",&a,&b);
while(a>0){
a -= k;
b -= k;}
if(a <= k && k <= b)printf("OK")
else printf("NG");
}

Compiler output:
main.c: In function 'main':
main.c:9:33: error: expected ';' before 'else'
    9 | if(a <= k && k <= b)printf("OK")
      |                                 ^
      |                                 ;
   10 | else printf("NG");
      | ~~~~
Language: C++

#include <iostream>
using namespace std;

int main（）
{
 char res;
 
 cin >> res;
 
 if (res == '5' || res == '6' || res == '7'){
    cout << "OK¥n";
 }
 else if (res == '4'){
   cout << "NG¥n;
 }
 
 

Compiler output:
a.cc:14:12: warning: missing terminating " character
   14 |    cout << "NG¥n;
      |            ^
a.cc:14:12: error: missing terminating " character
   14 |    cout << "NG¥n;
      |            ^~~~~~
a.cc:6:2: error: expected primary-expression before 'char'
    6 |  char res;
      |  ^~~~
a.cc:6:2: error: expected '}' before 'char'
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
a.cc:8:2: error: 'cin' does not name a type
    8 |  cin >> res;
      |  ^~~
a.cc:10:2: error: expected unqualified-id before 'if'
   10 |  if (res == '5' || res == '6' || res == '7'){
      |  ^~
a.cc:13:2: error: expected unqualified-id before 'else'
   13 |  else if (res == '4'){
      |  ^~~~
Language: C++

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


Compiler output:
a.cc:8:17: warning: multi-character character constant [-Wmultichar]
    8 |         cout << 'OK' << endl;
      |                 ^~~~
a.cc:10:17: warning: multi-character character constant [-Wmultichar]
   10 |         cout << 'NG' << endl;
      |                 ^~~~
a.cc: In function 'int main()':
a.cc:11:2: error: expected '}' at end of input
   11 | }
      |  ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include <stdio.h>
int i, j, n, m, k, a[1005], b[1005];
void dfs(int i){
 for(i=1; i<=n; i++){
  for(j=1; j<=m; j++){
  scanf("%d%d", &a, &b); 
  }
 }
int main(){
 scanf("%d%d", &n, &m);
 for(i=1; i<=n; i++){
  a[i] + b[i] = k;
 }
 printf("%d\n", ans);
 return 0;
} 

Compiler output:
a.cc: In function 'void dfs(int)':
a.cc:9:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
    9 | int main(){
      |         ^~
a.cc:9:9: note: remove parentheses to default-initialize a variable
    9 | int main(){
      |         ^~
      |         --
a.cc:9:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:9:11: error: a function-definition is not allowed here before '{' token
    9 | int main(){
      |           ^
a.cc:16:2: error: expected '}' at end of input
   16 | }
      |  ^
a.cc:3:16: note: to match this '{'
    3 | void dfs(int i){
      |                ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:30: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   10 |     cout << (s>=a)?"OK":"NG" << endl;
      |                         ~~~~~^~~~~~~
Language: Java

import java.util.Scanner;

public class Test165A {

	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 a = A / K;
		if (B > (a+1) * K || A == B) {
			System.out.println("OK");
		} else {
			System.out.println("NG");
		}
	}

}


Compiler output:
Main.java:3: error: class Test165A is public, should be declared in a file named Test165A.java
public class Test165A {
       ^
1 error
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";
    break;
    else 
      cout<<"NG";
    break;
  }
return 0;
}

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

#include <iostream>
#include <cstdlib>
using namespace std;

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

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

#include <iostream.h>
using namespace std;

int main() {
    
    int k;
    int a,b;
    scanf("%d", &k);
    scanf("%d %d", &a, &b);
    
    int x,y;
    x = a/k;
    y = b/k;
    
    if (k * x == a || k * y == b) {
        cout << "OK";
    } else if ((k * (x+1) >= a && k * (x+1) <= b) || (k * (y+1) <= b && k * (y+1) >= a)) {
        cout << "OK";
    } else {
        cout << "NG";
    }
    
    

    return 0;
}


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.util.*;

public class Main {
    public static void main(String[] args) throws Exception {
      Scanner scan1 = new Scanner(System.in);
      int str1 = scan1.nextInt();
      
      Scanner scan2 = new Scanner(System.in);
      int str2 = scan2.nextInt();
      int str3 = scan2.nextInt();

      String result = "NG";
      for(int i=str2;i<=str3;str2++){
        if(i%7==0){
           result="OK"
          break;
        }
      }
      
      System.out.println(result);
      scan.close();
    }
}



import java.util.Scanner;

public class Main {
    public static void main(String[] args){
      Scanner scan1 = new Scanner(System.in);
      int str1 = scan1.nextInt();
      
      Scanner scan2 = new Scanner(System.in);
      int str2 = scan2.nextInt();
      int str3 = scan2.nextInt();

      String result = "NG";
      for(int i=str2;i<=str3;i++){
        if(i%str1==0){
           result="OK";
          break;
        }
      }
      
      System.out.println(result);
      scan1.close();
      scan2.close();
    }
}

Compiler output:
Main.java:15: error: ';' expected
           result="OK"
                      ^
Main.java:27: error: class, interface, enum, or record expected
import java.util.Scanner;
^
2 errors
Language: C++

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

typedef long long ll;
typedef vector<int> vi;
typedef pair<int,int> pi;
typedef vector<pi> vpi;
typedef tuple<int,int,int> ti;
typedef vector<ti> vti;

const ll linf = LLONG_MAX;
const int iinf = INT_MAX;
const ll mod = 1000000007;

#define pb push_back
#define mp make_pair

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


Compiler output:
a.cc: In function 'int main()':
a.cc:23:19: error: expected ';' before 'if'
   23 |         a += jamin
      |                   ^
      |                   ;
   24 |         if(b > jamin)
      |         ~~         
a.cc:26:9: error: 'else' without a previous 'if'
   26 |         else
      |         ^~~~
Language: C

#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
	int K,i;
	int A,B;
	cin>>K;
	cin>>A>>B;
	if(i%K==0)
	{
			for(i=A;i<=B;i++)
	{
			}
			
	}
	else
	{
		cout<<"NG";
	}
	return 0;
	getch();
}

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

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:27: error: expected ';' before 'else'
   13 |     if (flag) printf("OK")
      |                           ^
      |                           ;
   14 |     else printf("NG");
      |     ~~~~
Language: C

#include <iostream>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)

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

    int judge = 0;

    for(int i=A;i<=B;i++) {
        if(i%K==0) {
            judge = 1;
            break;
        }
    }

    if(judge==1) {
        cout << "OK" << endl;

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

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

#include<iostream>
using namespace std;
int main(){
	int n;
  	cin>>n;
  	int a,b;
  	cin>>a>>b;
  	if(b<k){
      	cout<<"NG";
      	continue;
    }
  	int res=(a+(n-(a%n)));
  	int res1=(b-(n-(b%n)));
  	
 	if(res>=b)
      cout<<"OK"<<endl;
 	else
      cout<<"NG"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 'k' was not declared in this scope
    8 |         if(b<k){
      |              ^
a.cc:10:9: error: continue statement not within a loop
   10 |         continue;
      |         ^~~~~~~~