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

#include <stdio.h>

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

	scanf_s("%d", &K);
	scanf_s("%d%d", &A, &B);

	for (i = 1; i <= 1000; i++) {
		if ((i*K >= A) && (i*K <= B)) {
			printf("OK\n");
			break;
		}
	}
	if (i == 1001) {
		printf("NG\n");
	}

	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    9 |         scanf_s("%d", &K);
      |         ^~~~~~~
      |         scanf
Language: C++

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++)
	{
			}
			cout<<"Ok";
	}
	else
	{
		cout<<"NG";
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin>>K;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:13:25: error: 'cout' was not declared in this scope
   13 |                         cout<<"Ok";
      |                         ^~~~
a.cc:13:25: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:17: error: 'cout' was not declared in this scope
   17 |                 cout<<"NG";
      |                 ^~~~
a.cc:17:17: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: Java

package atcorder.test165;

import java.util.Scanner;

public class Test165A {

	public static void main(String[] args) {
		try(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");
			}
		} catch(Exception e) {

		}
	}

}


Compiler output:
Main.java:5: 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;
  if(K == 1){
    cout << "OK" << rndl;
  }
  else if(A%K ==0 || B%K ==0){
    cout << "OK" <<endl;
  }
  else if(B/K >> A/K){
    cout << "OK" <<endl;
  }
  else{
    cout << "NG" <<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:21: error: 'rndl' was not declared in this scope
    9 |     cout << "OK" << rndl;
      |                     ^~~~
Language: Java

import java.util.*;
public class Main{
  public static void main(String []args){
    Scanner sc=new Scanner(System.in);
    int t=100;
    int sum=0;
    int k=sc.nextInt();
    while(t<k){
      t= t+floor(t*0.01);
      sum++;
    }
    System.out.println(sum);
  }
}
      

Compiler output:
Main.java:9: error: cannot find symbol
      t= t+floor(t*0.01);
           ^
  symbol:   method floor(double)
  location: class Main
1 error
Language: Java

K = input()
# A = input()
# B = input()

# a = int(A)
# b = int(B)
k = int(K)

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

for i in range(a,b+1):
	if i % k == 0:
		print('OK')
		break
	else:
		if i == b:
			print('NG')


Compiler output:
Main.java:1: error: class, interface, enum, or record expected
K = input()
^
Main.java:2: error: illegal character: '#'
# A = input()
^
Main.java:3: error: illegal character: '#'
# B = input()
^
Main.java:5: error: illegal character: '#'
# a = int(A)
^
Main.java:6: error: illegal character: '#'
# b = int(B)
^
Main.java:13: error: unclosed character literal
		print('OK')
		      ^
Main.java:13: error: unclosed character literal
		print('OK')
		         ^
Main.java:17: error: unclosed character literal
			print('NG')
			      ^
Main.java:17: error: unclosed character literal
			print('NG')
			         ^
9 errors
Language: C++

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

int main()

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:35: error: expected ';' before 'return'
   13 |                         cout<<"OK"
      |                                   ^
      |                                   ;
   14 |                         return 0;
      |                         ~~~~~~
Language: C

#include <cstdio>
using namespace std;

int main(int argc, char** argv)
{
	int k, a, b;
	scanf("%d%d%d", &k, &a, &b);
	puts(((a + k - 1) / k * k > b)? "NG": "OK");
	return 0;
}

Compiler output:
main.c:1:10: fatal error: cstdio: No such file or directory
    1 | #include <cstdio>
      |          ^~~~~~~~
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";
      	break;
    }
  	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: break statement not within loop or switch
   10 |         break;
      |         ^~~~~
Language: C++

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

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

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

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

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

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

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

	if( B-A >= K-1 ){
      cout << "OK" << endl;
    }
	else if ( B >= K >= A){
      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 ){
      |         ^~
a.cc:12:9: error: expected unqualified-id before 'else'
   12 |         else if ( B >= K >= A){
      |         ^~~~
a.cc:15:9: error: expected unqualified-id before 'else'
   15 |         else {
      |         ^~~~
a.cc:18:1: error: expected declaration before '}' token
   18 | }
      | ^
Language: C++

#include <iostream>
#include <cmath>
 
using namespace std;
 
int main() {
  double x, a=0;
  int y = 1;
  cin>>x;
  if(x <=100){
    cout<<"0";
    return;
  }else {
  while(a <= x){
    a = 100 * (pow(1.01,y))
    if(a >= x){
      cout<<y;
      return;
    }
    y++;
  	}
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: return-statement with no value, in function returning 'int' [-fpermissive]
   12 |     return;
      |     ^~~~~~
a.cc:15:28: error: expected ';' before 'if'
   15 |     a = 100 * (pow(1.01,y))
      |                            ^
      |                            ;
   16 |     if(a >= x){
      |     ~~
Language: C++


#include <bits/stdc++.h>



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: In function 'int main()':
a.cc:11:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   11 |         cin >>K>>endl;
      |         ^~~
      |         std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:11:18: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   11 |         cin >>K>>endl;
      |                  ^~~~
      |                  std::endl
In file included from /usr/include/c++/14/istream:41,
                 from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:25:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   25 |             cout<<"OK"<<endl;
      |             ^~~~
      |             std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:28:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   28 |             cout<<"NO" <<endl;
      |             ^~~~
      |             std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

#include<stdio.h>

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

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:6: error: expected ')' before '~' token
    7 | if((A ~~ B) % K == 0)printf("OK");
      |    ~ ^~
      |      )
Language: C++

#include<iostream>

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

int main(){
  int k,a,b;
  cin >> k;
  cin >> a >> b;
  int i,distance[1010],flag=0;
  for(i=1;i<=1000;i++){
    distance[i]=i*k;
    }
  i=0;
  while(flag==0){
    i++;
    if(a<=distance[i] && distance[i]<=b){
      cout << OK << endl;
      flag=1;
    }
  }
  if(flag==0){

    cout << NG <<endl;
  }
}


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

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

Compiler output:
a.cc:18:17: warning: missing terminating " character
   18 |   else cout<<:OK";
      |                 ^
a.cc:18:17: error: missing terminating " character
   18 |   else cout<<:OK";
      |                 ^~
a.cc: In function 'int main()':
a.cc:18:14: error: expected primary-expression before ':' token
   18 |   else cout<<:OK";
      |              ^
Language: C

#include <stdio.h>

int main(void) {

	int a,b,k;
	
	scanf("%d",&k);
	scanf("%d%d",&a,&b);
	if(scanf("%d/%d", &numerator, &denominator) < 2) {
    fprintf(stderr, "error: ill-formed fraction.\n");
    exit(1);
}
	if(b - a >= k){
		printf("OK");
	}else{printf("NG");
	}
	return 0;
}	


Compiler output:
main.c: In function 'main':
main.c:9:28: error: 'numerator' undeclared (first use in this function)
    9 |         if(scanf("%d/%d", &numerator, &denominator) < 2) {
      |                            ^~~~~~~~~
main.c:9:28: note: each undeclared identifier is reported only once for each function it appears in
main.c:9:40: error: 'denominator' undeclared (first use in this function)
    9 |         if(scanf("%d/%d", &numerator, &denominator) < 2) {
      |                                        ^~~~~~~~~~~
main.c:11:5: error: implicit declaration of function 'exit' [-Wimplicit-function-declaration]
   11 |     exit(1);
      |     ^~~~
main.c:2:1: note: include '<stdlib.h>' or provide a declaration of 'exit'
    1 | #include <stdio.h>
  +++ |+#include <stdlib.h>
    2 | 
main.c:11:5: warning: incompatible implicit declaration of built-in function 'exit' [-Wbuiltin-declaration-mismatch]
   11 |     exit(1);
      |     ^~~~
main.c:11:5: note: include '<stdlib.h>' or provide a declaration of 'exit'
Language: C++

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

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


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

#include<iostream>

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

int main{
  int k,a,b;
  cin >> k;
  cin >> a >> b;
  int i,distance[1010],flag=0;
  for(i=1;i<=1000;i++){
    distance[i]=i*k;
    }
  i=0;
  while(flag==0){
    i++;
    if(a<=distance[i] && distance[i]<=b){
      cout << OK << endl;
      flag=1;
    }
  }
  if(flag==0){

    cout << NG <<endl;
  }
}


Compiler output:
a.cc:7:5: error: cannot declare '::main' to be a global variable
    7 | int main{
      |     ^~~~
a.cc:8:3: error: expected primary-expression before 'int'
    8 |   int k,a,b;
      |   ^~~
a.cc:8:3: error: expected '}' before 'int'
a.cc:7:9: note: to match this '{'
    7 | int main{
      |         ^
a.cc:9:3: error: 'cin' does not name a type
    9 |   cin >> k;
      |   ^~~
a.cc:10:3: error: 'cin' does not name a type
   10 |   cin >> a >> b;
      |   ^~~
a.cc:12:3: error: expected unqualified-id before 'for'
   12 |   for(i=1;i<=1000;i++){
      |   ^~~
a.cc:12:11: error: 'i' does not name a type
   12 |   for(i=1;i<=1000;i++){
      |           ^
a.cc:12:19: error: 'i' does not name a type
   12 |   for(i=1;i<=1000;i++){
      |                   ^
a.cc:15:3: error: 'i' does not name a type
   15 |   i=0;
      |   ^
a.cc:16:3: error: expected unqualified-id before 'while'
   16 |   while(flag==0){
      |   ^~~~~
a.cc:23:3: error: expected unqualified-id before 'if'
   23 |   if(flag==0){
      |   ^~
a.cc:27:1: error: expected declaration before '}' token
   27 | }
      | ^
Language: C++

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

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

class Test
{
    public static void main(String[] args)
    {
        int number= K;
        if(number>=100){
            System.out.println("数学は100以上です");
        }else if(number>=0){
            System.out.println("数学は100未満50以上です。");
        }else{
            System.out.println("数学は50未満です。");
        }
    }
}

Compiler output:
Main.java:5: error: cannot find symbol
        int number= K;
                    ^
  symbol:   variable K
  location: class Test
1 error
Language: C++

#include <bits/stdc++.h>
#define lint long long int
#define sudo std::
#define girdi freopen("motor.gir", "r", stdin);
#define cikti freopen("motor.cik", "w", stdout);
#define faster ios_base::sync_with_stdio(0); cin.tie(nullptr); cout.tie(0);
#define cend << "\n";
#define cspace << " ";
#define space << " " <<
#define modal  %= 1000000007
#define P system("PAUSE");
using namespace std;
//vector <string> nec; 300milyon
//vector <int> mec;5545036815
//vector <bool> visited(1000000,0);
//map <lint,char> eksi;
//map <int,vector <int>> yollar;
//map <char,vector <pair<char,int> > > yollar;
//priority_queue <int> pq;
//set <int> ster;
//return cout << 0,0;
//multiset <int> mst;
//memset(arr, 0, sizeof arr);
//priority_queue <int, vector<int>, greater<int> > pq; 
//variable = (condition) ? expressionTrue : expressionFalse;
//sort(vec.begin(), vec.end());
//for (int i = 0; n > i; i++){
///////////////////////////////////////////////

bool bol = false;
//pair <int,int> target;
vector <pair <lint,lint> > yollar[100007];
//vector <bool> visited(200007,0);
//vector <pair <lint, lint> > vec;
//int kassen[2007][2007];
bool visited[100007];
vector <lint> vec(100007,1000007);
//lint vec[1000007];
//map <char,lint> mp;
///**************///**************///
char fe,fa,fu,fi;
lint a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,x1,x2,y1,y2;
lint mis = 1000000007,mas = -1000000007,ans,bas,mid,son,st,en,temp,sum,prd,now;
string aa,bb,cc,dd,ee,ff,gg,hh,ii,jj,kk,ll,mm,nn,oo,pp,qq,rr,ss,tt,uu,vv,ww,xx,yy,zz;
///////////////////////////////////////////////

int main (void){
    faster
    //girdi
    //cikti
    //freopen("input.txt","r",stdin);
    //freopen("output.txt","w",stdout);
  	cin >> k >> a >> b;
    if (a % k == 0) return cout << "OK",0;
    if ((lint)(a / k) + 1 <= b) return cout << "OK",0;
    cout << "NG" cend
}


Compiler output:
a.cc:42:64: error: 'long long int y1' redeclared as different kind of entity
   42 | lint a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,x1,x2,y1,y2;
      |                                                                ^~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:683,
                 from /usr/include/c++/14/cassert:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:33,
                 from a.cc:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:257:1: note: previous declaration 'double y1(double)'
  257 | __MATHCALL (y1,, (_Mdouble_));
      | ^~~~~~~~~~
Language: Java

#include<stdio.h>

int main(){
  int k=0;
  int a=0;
  int b=0;
  int ans=1;
  scanf("%d",&k);
  scanf("%d %d",&a,&b);
  while(a!=b){
    ans=a%k;
    a++;
    if(ans==0){
      printf("OK");
      return 0;
    }
  }
  printf("NG");
  return 0;
}

Compiler output:
Main.java:1: error: illegal character: '#'
#include<stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include<stdio.h>
        ^
Main.java:5: error: unnamed classes are a preview feature and are disabled by default.
  int a=0;
  ^
  (use --enable-preview to enable unnamed classes)
Main.java:8: error: class, interface, enum, or record expected
  scanf("%d",&k);
  ^
Main.java:9: error: class, interface, enum, or record expected
  scanf("%d %d",&a,&b);
  ^
Main.java:10: error: class, interface, enum, or record expected
  while(a!=b){
  ^
Main.java:12: error: class, interface, enum, or record expected
    a++;
    ^
Main.java:13: error: class, interface, enum, or record expected
    if(ans==0){
    ^
Main.java:15: error: class, interface, enum, or record expected
      return 0;
      ^
Main.java:16: error: class, interface, enum, or record expected
    }
    ^
Main.java:19: error: class, interface, enum, or record expected
  return 0;
  ^
Main.java:20: error: class, interface, enum, or record expected
}
^
12 errors
Language: C++

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

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

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


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

#include <stdio.h>

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

  scanf("%d %d %d", &a,&b,&k);

  if(a/k >= 1 || b/k >=1){
    print("OK");
  }
  else{
    print("NG");
  }

  return 0;
}

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


#include<bits/stdc++.h>


using namespace std;

using ll   = long long;
using ii   = pair   < int , int >;
using i3   = pair   < int , ii  >;
using li   = pair   < ll  , int >;
using lii  = pair   < ll  , ii  >;
using pll  = pair   < ll  , ll  >;
using vi   = vector < int       >;
using vl   = vector < ll        >;
using vii  = vector < ii        >;
using vli  = vector < li        >;
using vpll = vector < pll       >;
using vi3  = vector < i3        >;
using vlii = vector < lii       >;


const int N = 2e5 + 5;
const ll INF = 1e17 + 7;
const double eps = 1e-9 , PI = acos(-1);



int n , m;


void solve(int testCase){

    int k; scanf("%d" , &k);
    scanf("%d %d" , &n , &m);

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

    printf("NG\n");

}

main(){

    int t = 1;
    // scanf("%d" , &t);

    for(int testCase = 1 ; testCase <= t ; testCase ++){
            solve(testCase);
    }

    return 0;
}


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

#include <stdio.h>

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

  scanf("%d %d %d %d", &a,&b,&k);

  if(a/k >= 1 || b/k >=1){
    print("OK");
  }
  else{
    print("NG");
  }

  return 0;
}

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

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

Compiler output:
main.c: In function 'main':
main.c:8:13: error: 'xK' undeclared (first use in this function); did you mean 'x'?
    8 |     for(x=1,xK<=B,x++){
      |             ^~
      |             x
main.c:8:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:22: error: expected ';' before ')' token
    8 |     for(x=1,xK<=B,x++){
      |                      ^
      |                      ;
main.c:8:22: error: expected expression before ')' token
main.c:13:9: error: expected expression before ')' token
   13 |    else(){
      |         ^
main.c:16:1: error: expected declaration or statement at end of input
   16 | }
      | ^
Language: C++

#include <iostream>
#include <cfenv>
#include <cmath>
using namespace std;
int main(void)
{
	double X, Y;
	
	Y=100;
	cin >> X;
	
	for(int i=1;;i++)
	{
		Y += flool(Y/100);
		if(X<=Y)
		{
			cout << i << endl;
			return 0;
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:22: error: 'flool' was not declared in this scope; did you mean 'floorl'?
   14 |                 Y += flool(Y/100);
      |                      ^~~~~
      |                      floorl
Language: C++

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

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

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

#include <bits/stdc++.h>
#define lint long long int
#define sudo std::
#define girdi freopen("motor.gir", "r", stdin);
#define cikti freopen("motor.cik", "w", stdout);
#define faster ios_base::sync_with_stdio(0); cin.tie(nullptr); cout.tie(0);
#define cend << "\n";
#define cspace << " ";
#define space << " " <<
#define modal  %= 1000000007
#define P system("PAUSE");
using namespace std;
//vector <string> nec; 300milyon
//vector <int> mec;5545036815
//vector <bool> visited(1000000,0);
//map <lint,char> eksi;
//map <int,vector <int>> yollar;
//map <char,vector <pair<char,int> > > yollar;
//priority_queue <int> pq;
//set <int> ster;
//return cout << 0,0;
//multiset <int> mst;
//memset(arr, 0, sizeof arr);
//priority_queue <int, vector<int>, greater<int> > pq; 
//variable = (condition) ? expressionTrue : expressionFalse;
//sort(vec.begin(), vec.end());
//for (int i = 0; n > i; i++){
///////////////////////////////////////////////

bool bol = false;
//pair <int,int> target;
vector <pair <lint,lint> > yollar[100007];
//vector <bool> visited(200007,0);
//vector <pair <lint, lint> > vec;
//int kassen[2007][2007];
bool visited[100007];
vector <lint> vec(100007,1000007);
//lint vec[1000007];
//map <char,lint> mp;
///**************///**************///
char fe,fa,fu,fi;
lint a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,x1,x2,y1,y2;
lint mis = 1000000007,mas = -1000000007,ans,bas,mid,son,st,en,temp,sum,prd,now;
string aa,bb,cc,dd,ee,ff,gg,hh,ii,jj,kk,ll,mm,nn,oo,pp,qq,rr,ss,tt,uu,vv,ww,xx,yy,zz;
///////////////////////////////////////////////

int main (void){
    faster
    //girdi
    //cikti
    //freopen("input.txt","r",stdin);
    //freopen("output.txt","w",stdout);
  	cin >> k >> a >> b;
    if (a % k == 0) return cout << "OK",0;
    if ((lint)(a / k) + 1 <= b) return cout << "OK",0;
    cout << "NG" cend
}

Compiler output:
a.cc:42:64: error: 'long long int y1' redeclared as different kind of entity
   42 | lint a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,x1,x2,y1,y2;
      |                                                                ^~
In file included from /usr/include/features.h:523,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/os_defines.h:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/c++config.h:683,
                 from /usr/include/c++/14/cassert:43,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:33,
                 from a.cc:1:
/usr/include/x86_64-linux-gnu/bits/mathcalls.h:257:1: note: previous declaration 'double y1(double)'
  257 | __MATHCALL (y1,, (_Mdouble_));
      | ^~~~~~~~~~
Language: C

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

      SA=K/A;
      SB=K/B;
      if(K%A==0){
        flag=1;
      } else if(K%B==0){
        flag=1;
      }
      
      if(SA==SB && flag=0){
        printf("%s","NG");
      } else {
        printf("%s","OK");
      }
   
      return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:19:24: error: lvalue required as left operand of assignment
   19 |       if(SA==SB && flag=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+1;i++){
  	if(i%K==0){
      cout << "OK" << endl;
      return 0
    }  
  }
  cout << "NG" << endl;
}

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

#include <stdio.h>

int mian(){
  int K,A,B;
  int rem;
  scanf("%d %d %d",&K,&A,&B);
  
  rem = B % K;
  if(rem <= B - A) printf("OK");
  else printf("NG");
  
  return 0;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:4: error: lvalue required as left operand of assignment
    8 |   A/K =a;
      |   ~^~
a.cc:9:4: error: lvalue required as left operand of assignment
    9 |   B/K =b;
      |   ~^~
a.cc:10:7: error: lvalue required as left operand of assignment
   10 |   if(A/K=0){
      |      ~^~
Language: C++

#include <iostream>
using namespace std;
int main() {
  int K,A,B;
  cin>>K>>A>>B;
  if(B-A+(A%K)>=K){
    cout<<"OK"<<endl;
  }
    else{
      cout<<"NG<<end;
    }
  }
  

Compiler output:
a.cc:10:13: warning: missing terminating " character
   10 |       cout<<"NG<<end;
      |             ^
a.cc:10:13: error: missing terminating " character
   10 |       cout<<"NG<<end;
      |             ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:11:5: error: expected primary-expression before '}' token
   11 |     }
      |     ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:16:27: error: lvalue required as left operand of assignment
   16 |        } while(((A+i)/K)*K=A+i);
      |                           ^
main.c:20:10: error: expected declaration or statement at end of input
   20 |          }
      |          ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:8: error: expected '(' before 'A'
   12 |     if A % K == 0 {
      |        ^
      |        (
Language: C++

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:10:15: error: 'K' was not declared in this scope
   10 | if(A<=a<=B&&a/K==N){
      |               ^
a.cc:14:18: error: expected '}' at end of input
   14 | cout<<"NG"<<endl;
      |                  ^
a.cc:13:5: note: to match this '{'
   13 | else{
      |     ^
a.cc:14:18: error: expected '}' at end of input
   14 | cout<<"NG"<<endl;
      |                  ^
a.cc:4:12: note: to match this '{'
    4 | int main (){
      |            ^
Language: C

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


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

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


Compiler output:
a.cc:1:9: fatal error: iostream : No such file or directory
    1 | #include<iostream >
      |         ^~~~~~~~~~~
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();
    }
}

Compiler output:
Main.java:15: error: ';' expected
           result="OK"
                      ^
1 error
Language: C

#include<stdio.h>

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

return 0;
}

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

public class Main {

    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();
        int A = sc.nextInt();
        int B = sc.nextInt();

        for(int i = A; i <= B; i++)
        {
            if (i % k == 0)
            {
                System.out.print("OK");
                return;
            }
        }
        System.out.print("NG");
    }
}


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

import java.util.Scanner;
class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int interest = 100;
        int year = 0;
        while (interest <= n){
            interest = interest * 1.01;
            year += 1;
            if (interest == n){
                break;
            }
        }

        System.out.println(year);
    }
}

        

        





Compiler output:
Main.java:9: error: incompatible types: possible lossy conversion from double to int
            interest = interest * 1.01;
                                ^
1 error
Language: Java

import java.util.Scanner;

public class Ex1 {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int K = sc.nextInt();
		// スペース区切りの整数の入力
		int A = sc.nextInt();
		int B = sc.nextInt();

		for(int i = 1; i <= B; i++) {
			if(K*i < A) {
				continue;
			} else if(K*i > B) {
				System.out.println("NG");
				break;
			} else {
				System.out.println("OK");
				break;
			}
		}
	}
}


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

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

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


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

 public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int k = sc.nextInt();
        int A = sc.nextInt();
        int B = sc.nextInt();
 
        for(int i = A; i <= B; i++)
        {
            if (i % k == 0)
            {
                System.out.print("OK");
                return;
            }
        }
        System.out.print("NG");
    }

Compiler output:
Main.java:1: 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)
1 error
Language: C++

#include <iostream>
#include <string>

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




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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:37: error: expected primary-expression before ')' token
   15 |         if ((a+k-a%k>b)&& !(a%k==0)))
      |                                     ^
Language: Java

import java.util.Scanner;

public class A {
    public static void main(String[] args) {

        boolean isOk = false;

        Scanner sc = new Scanner(System.in);
        int target = Integer.parseInt(sc.next());
        int minDistance = sc.nextInt();
        int maxDistance = sc.nextInt();

        for (int i=minDistance;i <= maxDistance;i++){
            if (i%target == 0){
                isOk = true;
                break;
            }
        }
        System.out.println(isOk);
    }
}


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

include <stdio.h>
int main(void){
	int K,A,B;
	scanf("%d",&K);
    scanf("%d %d",&A,&B);
    if(K>=A){
    	if(K<=B){
        	printf("OK");
        }
    }
    else{
    	printf("NG");
    }
	return 0;
}

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

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

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

Compiler output:
main.c: In function 'main':
main.c:8:13: error: 'xK' undeclared (first use in this function); did you mean 'x'?
    8 |     for(x=1,xK<=B,x++){
      |             ^~
      |             x
main.c:8:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:8:22: error: expected ';' before ')' token
    8 |     for(x=1,xK<=B,x++){
      |                      ^
      |                      ;
main.c:8:22: error: expected expression before ')' token
main.c:13:9: error: expected expression before ')' token
   13 |    else(){
      |         ^
Language: Java

		try(Scanner scanner = new Scanner(System.in)){

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

			int a = A / K;
			if (B > (a+1) * K || A == B) {
				System.out.println("OK");
			} else {
				System.out.println("NG");
			}
		} catch(Exception e) {

		}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
		try(Scanner scanner = new Scanner(System.in)){
		^
Main.java:4: error: unnamed classes are a preview feature and are disabled by default.
			Integer A = scanner.nextInt();
			^
  (use --enable-preview to enable unnamed classes)
Main.java:8: error: class, interface, enum, or record expected
			if (B > (a+1) * K || A == B) {
			^
Main.java:10: error: class, interface, enum, or record expected
			} else {
			^
Main.java:12: error: class, interface, enum, or record expected
			}
			^
5 errors
Language: C++

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

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

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

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

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

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


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

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

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

			int a = A / K;
			if (B > (a+1) * K || A == B) {
				System.out.println("OK");
			} else {
				System.out.println("NG");
			}
		} catch(Exception e) {

		}
	}


Compiler output:
Main.java:1: 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)
1 error
Language: C

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

      SA=K/A;
      SB=K/B;
      if(SA==SB){
        printf("%s","NG");
      } else {
        printf("%s","OK");
      }
   
      return 0;
    }

Compiler output:
main.c: In function 'main':
main.c:5:7: error: 'flag' undeclared (first use in this function)
    5 |       flag=0;
      |       ^~~~
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

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


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

#include<stdio.h>

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

return 0;
}

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: expected initializer before '-' token
    9 |   int g - c%a;
      |         ^
a.cc:10:18: error: 'g' was not declared in this scope
   10 |   if(a==1||f==0||g==0){
      |                  ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:34:3: error: 'print' was not declared in this scope; did you mean 'rint'?
   34 |   print"NG";
      |   ^~~~~
      |   rint
Language: Java

package atcorder.test165;

import java.util.Scanner;

public class Test165A {

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

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

			int a = A / K;
			if (B > (a+1) * K || A == B) {
				System.out.println("OK");
			} else {
				System.out.println("NG");
			}
		} catch(Exception e) {

		}
	}

}


Compiler output:
Main.java:5: 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(void){
  int a,b,k;
  cin >> k;
  cin >> a >> b;
  if(b < k) cout <<"NG"<< endl;
  else{
    bool flag = false;
    for(int i = A; i <= B; i++){
      if(i % k == 0){
        flag = true;
        break;
      }
    }
    if(flag) cout << "OK" << endl;
    else cout << "NG" << endl;
  }
}

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

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

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

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

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

/*
*          Name : chaitanya
*
*     Institute : ANITS,Visakhapatnam
*
*/
#include<cstdio>
#include<iostream>
#include<sstream>
#include<fstream>
#include<iomanip>
#include<algorithm>
#include<cmath>
#include<complex>
#include<cstring>
#include<vector>
#include<list>
#include<queue>
#include<stack>
#include<set>
#include<map>
#include<bitset>
#include<numeric>
#include<limits>
#include<climits>
#include<cfloat>
#include<functional>
#include<iterator>
#include <random>
#define infy  1000000000
#define all(x) begin(x),end(x)
#define ll long long int
#define ff first
#define ss second
#define pb push_back
const ll m = 1000000007;
#pragma GCC optimization ("O3")
const int N = 1000010;
using namespace std;
vector<string> vec_splitter(string s) {
  s += ',';
  vector<string> res;
  while(!s.empty()) {
    res.push_back(s.substr(0, s.find(',')));
    s = s.substr(s.find(',') + 1);
  }
  return res;
}
void debug_out(
vector<string> __attribute__ ((unused)) args,
__attribute__ ((unused)) int idx, 
__attribute__ ((unused)) int LINE_NUM) { cerr << endl; } 
template <typename Head, typename... Tail>
void debug_out(vector<string> args, int idx, int LINE_NUM, Head H, Tail... T) {
  if(idx > 0) cerr << ", "; else cerr << "Line(" << LINE_NUM << ") ";
  stringstream ss; ss << H;
  cerr << args[idx] << " = " << ss.str();
  debug_out(args, idx + 1, LINE_NUM, T...);
}
#ifndef ONLINE_JUDGE
#define debug(...) debug_out(vec_splitter(#__VA_ARGS__), 0, __LINE__, __VA_ARGS__)
#else
#define debug(...) 42
#endif

ll f[2000010];

ll lcm(ll a,ll b)
{
  return (a*b)/__gcd(a,b);
}
ll binpow(ll a, ll b) {
     ll res = 1;
    while (b > 0) {
        if (b & 1)
            res = res * a;
        a = a * a;
        b >>= 1;
    }
    return res;
}
 
ll find_ncr(ll n, ll r)
{
    ll m1=max(r,n-r);
    ll i,j,s,d=1,k;
    s=1;
 
    for(i=m1+1;i<=n;i++)
    {
        s=((s%m)*(i%m))%m;
    }
 
    m1=min(r,n-r);
 
    for(i=1;i<=m1;i++)
    {
        k=binpow(i,m-2);
        d=((d%m)*(k%m))%m;
    }
 
    k=(s%m*(d%m))%m;
 
    return k;
}

int main()
{
  // int x = -1, y = 10000;
  // double z = 0.2;
  // string s2 = "beginner1010";
  // long long b = 1LL << 60;
    
  // // debug(x, y, z, s, b);
    
  // double aux = 1010.0;
  // string code = "code";
    
  // debug(code + "forces",-aux / 10 * 2.3);
  // freopen("input.txt","r",stdin);
  // freopen("output.txt","w",stdout);
  //ios_base::sync_with_stdio(false); cin.tie(0); cout.tie(0);
  int n,a,b;
  cin >> n >> a >> b;
  for (int i = a; i <= b; ++i)
  {
    if (i % k == 0)
    {
      cout << "OK";
      return 0;
    }
  }
  cout << "NG";
  return 0;
}



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