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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: expected '}' before 'else'
   13 |     else{
      |     ^~~~
a.cc:10:29: note: to match this '{'
   10 |     if(A <= K*i && K*i <= B){
      |                             ^
a.cc: At global scope:
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C++

#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
#include <map>
 
using namespace std;
int main() {
  int k,a,b;
  cin>>k;
  cin>>a>>b;
  
 if(b/k-a/k=0){
   cout<<"NG"<<endl;
 }
  else{
    cout<<"OK"<<endl;
 }
}


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: expected '}' before 'else'
   13 |     else{
      |     ^~~~
a.cc:10:29: note: to match this '{'
   10 |     if(A <= K*i && K*i <= B){
      |                             ^
a.cc: At global scope:
a.cc:20:1: error: expected declaration before '}' token
   20 | }
      | ^
Language: C++

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

#define LL long long
#define MOD 1000000007
#define rep(i,n) for(int i = 0;i < (n);i++)

using namespace std;

int main(){

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

    return 0;

}

Compiler output:
a.cc:26:5: error: expected unqualified-id before 'return'
   26 |     return 0;
      |     ^~~~~~
a.cc:28:1: error: expected declaration before '}' token
   28 | }
      | ^
Language: Java


import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		long n=sc.nextLong();
		long m=sc.nextLong();
		if(n%2==1){
			for(int i=0;i<m;i++){
				System.out.println((i+1)+" "+(n-(i+1)));
			}
		}else{
			for(int i=0;i<m;i++){
				if(i%2=0){
					System.out.println((i+1)+" "+(n-(i+1)));
				}else{
					System.out.println((n/2-i)+" "+(n/2+i+2));
				}
			}
		}
	}
}


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

#include <iostream>
#include <algorithm>
#define rep(a,i,n) for(int i=(a);i<(n);i++)

using namespace std;

int main(){
	long double a,b;
	long long n;
	cin >> a >> b >> n;
	long double f[n+1];
	rep(0,i,n+1){
		f[i] = floorl(a*i/b)-a*floorl(i/b);
	}
	sort(f,f+n+1);
	cout << f[n] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:24: error: 'floorl' was not declared in this scope
   13 |                 f[i] = floorl(a*i/b)-a*floorl(i/b);
      |                        ^~~~~~
Language: C++

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

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

#include <bits/stdc++.h>
using namespace std;
int main(){
	int k, A, B, c, i;
	int 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:
a.cc: In function 'int main()':
a.cc:5:39: error: expression list treated as compound expression in initializer [-fpermissive]
    5 |         int scanf("%d%d%d", &k, &A, &B);
      |                                       ^
a.cc:5:39: error: invalid conversion from 'int*' to 'int' [-fpermissive]
    5 |         int scanf("%d%d%d", &k, &A, &B);
      |                                       ^
      |                                       |
      |                                       int*
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:22: error: lvalue required as left operand of assignment
    6 |   if(b/k-a/k!=0&&k==1&&k=a=b){
      |      ~~~~~~~~~~~~~~~~^~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:9: error: 'buf' undeclared (first use in this function)
    4 |   fgets(buf, sizeof(buf), stdin);
      |         ^~~
main.c:4:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C

int main(void){
  int k,n,m,i;
  
  scanf("%d",&k);
  scanf("%d %d",&n,&m);
  
  for(i = 0; i < m-n; i++){
    if(k % n+i == 0){
      printf("OK");
      return 0;
    }
  printf("NG"); 
}

Compiler output:
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%d",&k);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d",&k);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:7: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |       printf("OK");
      |       ^~~~~~
main.c:9:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   12 |   printf("NG");
      |   ^~~~~~
main.c:12:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:1: error: expected declaration or statement at end of input
   13 | }
      | ^
Language: C

int main(void){
  int k,n,m,i;
  
  scanf("%d",&k);
  scanf("%d %d",&n,&m);
  
  for(i = 0; i < m-n; i++, k++){
    if(k % n+i){
      printf("OK");
      return 0;
    }
  printf("NG"); 
}
 
    
  
  
  
  

Compiler output:
main.c: In function 'main':
main.c:4:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    4 |   scanf("%d",&k);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int main(void){
main.c:4:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    4 |   scanf("%d",&k);
      |   ^~~~~
main.c:4:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:7: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
    9 |       printf("OK");
      |       ^~~~~~
main.c:9:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:9:7: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:9:7: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:12:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
   12 |   printf("NG");
      |   ^~~~~~
main.c:12:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:13:1: error: expected declaration or statement at end of input
   13 | }
      | ^
Language: C++

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

int main() {
   int K , A , B ;
  cin >> K >> A >> B ;
  bool ans = false ;
  if(B>=K){
   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:20:4: error: expected '}' at end of input
   20 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <iostream>
using namespace std;

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

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

return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
   11 | for(i=A;i<=B;i++){
      |              ~^~
a.cc:12:5: error: no match for 'operator%' (operand types are 'std::string' {aka 'std::__cxx11::basic_string<char>'} and 'std::string' {aka 'std::__cxx11::basic_string<char>'})
   12 | if(i%K=0){
      |    ~^~
      |    | |
      |    | basic_string<[...]>
      |    basic_string<[...]>
a.cc:16:5: error: could not convert 'i.std::__cxx11::basic_string<char>::operator=(B)' from 'std::__cxx11::basic_string<char>' to 'bool'
   16 | if(i=B){
      |    ~^~
      |     |
      |     std::__cxx11::basic_string<char>
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:12:1: error: expected '}' before 'else'
   12 | else if(a%k == 0||b%k==0)printf("OK");
      | ^~~~
Language: Java

public static void main(String[] args) {
	 Scanner scan = new Scanner(System.in);
	int K = scan.nextInt();
	int A = scan.nextInt();
	int B = scan.nextInt();
	
	if (2*K) <= A && (2*K) >= B {
	System.out.print("OK");
	}else{
	System.out.print("NG");
	}
	  
}

Compiler output:
Main.java:7: error: not a statement
	if (2*K) <= A && (2*K) >= B {
	              ^
1 error
printing javac parameters to: /w/javac.20260128_073440.args
Language: Java

public class Main {
	static int K;
	static int A;
	static int B;
	static int a;
	static int b;
	public static void main(String[]args) {
		Scanner sc=new Scanner(System.in);
		K=sc.nextInt();
		A=sc.nextInt();
		B=sc.nextInt();
		a=A/K;
		b=B/K;
		System.out.println("OK");
	}
}


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

nclude<bits/stdc++.h>
using namespace std;
 
int main(){
	int n,m,m2,d;
	set<int>diffs;
	cin>>n>>m;
	m2=m;
	for(int i=1;i<=n;i++){
		d=n-i-i+1;
		if(((2*d)+1)%n==1)continue;
		cout<<i<<" "<<n-i+1<<"\n";
		m2--;
		if(m2==0)break;
	}
	return 0;
}

Compiler output:
a.cc:1:1: error: 'nclude' does not name a type
    1 | nclude<bits/stdc++.h>
      | ^~~~~~
a.cc: In function 'int main()':
a.cc:6:9: error: 'set' was not declared in this scope
    6 |         set<int>diffs;
      |         ^~~
a.cc:6:13: error: expected primary-expression before 'int'
    6 |         set<int>diffs;
      |             ^~~
a.cc:7:9: error: 'cin' was not declared in this scope
    7 |         cin>>n>>m;
      |         ^~~
a.cc:12:17: error: 'cout' was not declared in this scope
   12 |                 cout<<i<<" "<<n-i+1<<"\n";
      |                 ^~~~
Language: C++

#include<iostream>

int main(void) {

	int K;
  	int min, max;
  
  	cin >> K;
  	cin >> min >> max;
  
  	for(int i = min; i <= max; i++) {
    	amari = i % K;
      	if (amari == 0) {
        	cout << "OK";
          	break;
        }
    }
  
  	if (i == max) {
    	cout << "NG";
    }
  
  	return 0;
  	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |         cin >> K;
      |         ^~~
      |         std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:12:9: error: 'amari' was not declared in this scope
   12 |         amari = i % K;
      |         ^~~~~
a.cc:14:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |                 cout << "OK";
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:19:13: error: 'i' was not declared in this scope
   19 |         if (i == max) {
      |             ^
a.cc:20:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   20 |         cout << "NG";
      |         ^~~~
      |         std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

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

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

     }
 
  }
}


Compiler output:
a.cc:33:3: error: expected declaration before '}' token
   33 |   }
      |   ^
a.cc:34:1: error: expected declaration before '}' token
   34 | }
      | ^
Language: Java

import java.util.Scanner;


class Main{
 public static void main(String[] args){
 Scanner stdIn = new Scanner(System.in);
 //数値の入力
 int K = stdIn.nextInt(); //倍数
 int A = stdIn.nextInt();
 int B = stdIn.nextInt();
 
 //計算
 int num = 0;
 
 for (int i = 0; i <= (B / K); i++){
   if( i * k >= A)
    num = num +1;
 }
 
 if(num > 0)
  System.out.println("OK");
 else
  System.out.println("NG");
 }
}


Compiler output:
Main.java:16: error: cannot find symbol
   if( i * k >= A)
           ^
  symbol:   variable k
  location: class Main
1 error
Language: C++

#include <iostream>
#include <vector>
#include <cmath>
#include <algorithm>
#include <map>
 
using namespace std;
int main() {
  int k,a,b;
  cin>>k;
  cin>>a>>b
  
 if(b/k-a/k>0){
   cout<<"Yes"<<endl;
 }
  else{
    cout<<"No"<<endl;
 }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:12: error: expected ';' before 'if'
   11 |   cin>>a>>b
      |            ^
      |            ;
   12 | 
   13 |  if(b/k-a/k>0){
      |  ~~         
a.cc:16:3: error: 'else' without a previous 'if'
   16 |   else{
      |   ^~~~
Language: C

#include<set>
#include<map>
#include<queue>
#include<stack>
#include<cmath>
#include<vector>
#include<string>
#include<cstdio>
#include<cstring>
#include<cstdlib>
#include<iostream>
#include<algorithm>
#pragma GCC target("avx")
#pragma GCC optimize(3)
#pragma GCC optimize("Ofast")
#pragma GCC diagnostic error "-std=c++14"

#define isNum(a) (a>='0'&&a<='9')
#define SP putchar(' ')
#define EL putchar('\n')
#define ri register int

template<class T>
inline void in(T&);
template<class T>
inline void out(const T&);

typedef long long ll;
using std::min;
using std::max;
using std::abs;
using std::sort;
using namespace std;

int k,n,m; 

int main()
{
    //freopen(".in","r",stdin);
    //freopen(".out","w",stdout);
    in(k);in(n);in(m);
    for (ri i=1;;++i)
    {
    	if (k*i>=n&&k*i<=m)
    	{
    		puts("OK");
    		return 0;
		}
		if (i*k>m) break;
	}
	puts("NG");
    return 0;
}

template<class T>
void in(T &Re)
{
    T k=0;
    char ch=getchar();
    int flag=1;
    while (!isNum(ch))
	{
        if (ch=='-')
		{
            flag=-1;
        }
        ch=getchar();
    }
    while (isNum(ch))
	{
        k=(k<<1)+(k<<3)+ch-'0';
        ch=getchar();
    }
    Re=flag*k;
}

template<class T>
void out(const T &Wr)
{
    if (Wr<0)
	{
        putchar('-');
        out(-Wr);
    }
	else
	{
        if (Wr<10)
		{
            putchar(Wr+'0');
        }
		else
		{
            out(Wr/10);
            putchar((Wr%10)+'0');
        }
    }
}




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

import java.util.Scanner;


public class Main{
 public static void main(String[] args){
 Scanner stdIn = new Scanner(System.in);
 //数値の入力
 int K = stdIn.nextInt(); //倍数
 int A = stdIn.nextInt();
 int B = stdIn.nextInt();
 
 //計算
 int num = 0;
 
 for (int i = 0; i <= (B / K); i++){
   if( i * k >= A)
    num = num +1;
 }
 
 if(num > 0)
  System.out.println("OK");
 else
  System.out.println("NG");
 }
}


Compiler output:
Main.java:16: error: cannot find symbol
   if( i * k >= A)
           ^
  symbol:   variable k
  location: class Main
1 error
Language: Java

import java.util.Scanner


public class Main{
 public static void main(String[] args){
 Scanner stdIn = new Scanner(System.in);
 //数値の入力
 int K = stdIn.nextInt(); //倍数
 int A = stdIn.nextInt();
 int B = stdIn.nextInt();
 
 //計算
 int num = 0;
 
 for (int i = 0; i <= (B / K); i++){
   if( i * k >= A)
    num = num +1;
 }
 
 if(num > 0)
  System.out.println("OK");
 else
  System.out.println("NG");
 }
}

Compiler output:
Main.java:1: error: ';' expected
import java.util.Scanner
                        ^
1 error
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: expected ';' before '}' token
   12 |     break
      |          ^
      |          ;
   13 |     }
      |     ~     
a.cc:15:3: error: 'else' without a previous 'if'
   15 |   else{
      |   ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:4:9: error: 'buf' undeclared (first use in this function)
    4 |   fgets(buf, sizeof(buf), stdin);
      |         ^~~
main.c:4:9: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:19: error: expected ';' before '}' token
   11 |       printf("NG")
      |                   ^
      |                   ;
   12 |     }
      |     ~
Language: C++

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

Compiler output:
a.cc:13:2: error: extended character 　 is not valid in an identifier
   13 |  　)
      |  ^
a.cc: In function 'int main()':
a.cc:12:11: error: expected ')' before '\U00003000'
   12 |     K == 1
      |           ^
      |           )
   13 |  　)
      |  ~~        
a.cc:8:5: note: to match this '('
    8 |   if(
      |     ^
Language: C

#include <bits/stdc++.h>
using namespace std;
int main(){
	int k, A, B, c, i;
	cin>>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<stdio.h>
int main(void) {
	int a=0;
	scanf("%d", &a);
	int b = 0;
	int c = 0;
	int d = 0;
	scanf("%d %d", &b, &c);
	for (i = b; i <= c; i++) {
		if (i % a == 0)
			d = 1;
	}
	if (d == 1)
		printf("OK");
	else
		printf("NG");
}

Compiler output:
main.c: In function 'main':
main.c:9:14: error: 'i' undeclared (first use in this function)
    9 |         for (i = b; i <= c; i++) {
      |              ^
main.c:9:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: 'i' was not declared in this scope
   10 |   if(i * k >= a){
      |      ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: expected ';' before '}' token
   12 |     break
      |          ^
      |          ;
   13 |     }
      |     ~     
a.cc:18:4: error: expected '}' at end of input
   18 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  bool K = 1000;
  bool b = 100;
  cout << a << endl;
  cout << b << endl;
  
  if (1000) {
    cout << "NG" << endl;
  }
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:8: error: expected ';' before '}' token
    8 |     i++
      |        ^
      |        ;
    9 |   }
      |   ~     
a.cc:10:6: error: 'i' was not declared in this scope
   10 |   if(i * k >= a){
      |      ^
Language: C++

#include<stdio.h>
#include<iostream>
#include<math.h>
#include<string>
#include<vector>
#include<map>
#include<queue>
#include<cmath>
using namespace std;
using ll = long long int;
//typedef pair<int,int> P;
 
int main(void){
	int N,M,Q;
	cin >> N >>M >> Q;
	vector<vector<int>> vec;
	vector<vector<bool>> flg;
	for(int x=0;x<Q;x++){
		vector<int> q[10]
	}
}
int main(void){
	int K,A,B;
	cin >> K;
	cin >> A>>B;
	int a=0;
	while(a*K<=B){
		if(a*K>=A){
			if(a*K<=B){
				cout << "OK";
				return 0;
			}
		}
		a++;
	}
	cout << "NG";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:9: error: expected initializer before '}' token
   20 |         }
      |         ^
a.cc: At global scope:
a.cc:22:5: error: redefinition of 'int main()'
   22 | int main(void){
      |     ^~~~
a.cc:13:5: note: 'int main()' previously defined here
   13 | int main(void){
      |     ^~~~
Language: C++

#include<iostream>
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";
    }
    else cout<<"NG";
  }
 
  return 0;
}
#include<iostream>
int main(){
  int k,a,b;
  cin>>k>>a>>b;
  for(int i=a;i<=b;i++){
    if(i%k==0){
      cout<<"OK";
    }
    else cout<<"NG";
  }

  return 0;
}


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

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

int k, a, b;

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

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

#include "algorithm"
#include "iomanip"
#include "iostream"
#include "set"
#include "string"
#include "vector"
#define rep(i, to) for (ll i = 0; i < (to); ++i)
using namespace std;
typedef long long ll;
template <typename T>
using V = vector<T>;

template <typename T>
inline bool chmax(T& a, T b) {
  if (a < b) {
    a = b;
    return 1;
  }
  return 0;
}

template <typename T>
inline bool chmin(T& a, T b) {
  if (a > b) {
    a = b;
    return 1;
  }
  return 0;
}

template <typename T>
void drop(const T& x) {
  cout << x << endl;
  exit(0);
}

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

  ll K, A, B;
  cin >> K >> A >> B;

  for (auto a = A; a <= B; a++) {
    if (a % K == 0) {
      cout << "OK"
           << "\n";
      return;
    }
  }

  cout << "NG"
       << "\n";

  return 0;
}


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

int main(void){
	int K,A,B;
	cin >> K;
	cin >> A>>B;
	int a=0;
	while(a*K<=B){
		if(a*K>=A){
			if(a*K<=B){
				cout << "OK";
				return 0;
			}
		}
		a++;
	}
	cout << "NG";
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:9: error: 'cin' was not declared in this scope
    3 |         cin >> K;
      |         ^~~
a.cc:9:33: error: 'cout' was not declared in this scope
    9 |                                 cout << "OK";
      |                                 ^~~~
a.cc:15:9: error: 'cout' was not declared in this scope
   15 |         cout << "NG";
      |         ^~~~
Language: C++

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

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin>>k>>a>>b;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |       cout<<"OK";
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |     else cout<<"NG";
      |          ^~~~
      |          std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

#include<stdio.h>
int main(void) {
	int a=0;
	scanf_s("%d", &a);
	int b = 0;
	int c = 0;
	int d = 0;
	scanf_s("%d %d", &b, &c);
	while (b <= i && i <= c) {
		if (i % a == 0)
			d = 1;
	}
	if (d == 1)
		printf("OK");
	else
		printf("NG");
}

Compiler output:
main.c: In function 'main':
main.c:4:9: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 |         scanf_s("%d", &a);
      |         ^~~~~~~
      |         scanf
main.c:9:21: error: 'i' undeclared (first use in this function)
    9 |         while (b <= i && i <= c) {
      |                     ^
main.c:9:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

 #include <bits/stdc++.h>

int main{
	  using namespace std;

	  int K;
	  int A;
	  int B;
	  int i = 0;
	  int flag = 0;
	  string rslt;
	  cin >> K;
	  cin >> A;
	  cin >> B;


	  while (i < B - A + 1) {
		  if ((A + i) % K == 0) {
			  flag = 1;
			  break;
		  }
		  i++;
	  }

	  if (flag) {
		  rslt = "OK";
	  }else{
		  rslt = "NG";
	  }

	  cout << rslt << endl;
}
}

Compiler output:
a.cc:3:5: error: cannot declare '::main' to be a global variable
    3 | int main{
      |     ^~~~
a.cc:4:11: error: expected primary-expression before 'using'
    4 |           using namespace std;
      |           ^~~~~
a.cc:4:11: error: expected '}' before 'using'
a.cc:3:9: note: to match this '{'
    3 | int main{
      |         ^
a.cc:11:11: error: 'string' does not name a type; did you mean 'stdin'?
   11 |           string rslt;
      |           ^~~~~~
      |           stdin
a.cc:12:11: error: 'cin' does not name a type
   12 |           cin >> K;
      |           ^~~
a.cc:13:11: error: 'cin' does not name a type
   13 |           cin >> A;
      |           ^~~
a.cc:14:11: error: 'cin' does not name a type
   14 |           cin >> B;
      |           ^~~
a.cc:17:11: error: expected unqualified-id before 'while'
   17 |           while (i < B - A + 1) {
      |           ^~~~~
a.cc:25:11: error: expected unqualified-id before 'if'
   25 |           if (flag) {
      |           ^~
a.cc:27:12: error: expected unqualified-id before 'else'
   27 |           }else{
      |            ^~~~
a.cc:31:11: error: 'cout' does not name a type
   31 |           cout << rslt << endl;
      |           ^~~~
a.cc:32:1: error: expected declaration before '}' token
   32 | }
      | ^
a.cc:33:1: error: expected declaration before '}' token
   33 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std ; 
#define ll long long
typedef pair<ll,ll> pr;
typedef vector<ll> vc;
#define pb push_back
#define rep(i,a,b) for(ll i=a;i<=b;i++)
#define repr(i,a,b) for(ll i=a;i>=b;i--)
#define reps(i,v) for(ll i=0;i<v.size();i++)
#define test  ll ll int tcase ; cin>>tcase ; while(tcase--) 
#define io ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);

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

   
}


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected unqualified-id before 'for'
    9 |   for(int i = 1; i<=K; i++){
      |   ^~~
a.cc:9:18: error: 'i' was not declared in this scope
    9 |   for(int i = 1; i<=K; i++){
      |                  ^
a.cc:19:4: error: expected '}' at end of input
   19 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: lvalue required as left operand of assignment
    7 |   if(B-A>=N || A=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;
  e = b/k +1;
  if(k==1){
    if(a>=k || b>=k)
  		cout<<"OK";
  }
  else if(d*k>=a && d*k<=b || e*k>=a && e*k<=b){
    	cout<<"OK";
   }
   else{
    	cout<<"NG";
  	}
   

  
return 0;
}


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

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


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

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

int main(){
  int k, a, b;
  cin >> k >> a >> b;
  int i;
  for(int i = 0; i * k < b;i++){
    int i = i++;
  }
  if(i * k >= a){
    cout << "OK" << endl;
  }
  else{
    cout << "NO" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: redeclaration of 'int i'
    9 |     int i = i++;
      |         ^
a.cc:8:11: note: 'int i' previously declared here
    8 |   for(int i = 0; i * k < b;i++){
      |           ^
Language: C++

#include <iostream>
using namespace std;
int main(void)
{
    int K, A, B, i = 1;
    cin >> K;
    cin >> A >> B;
    while (K * i < A || B < K * i)
        i++;
    if (A <= K * i && k * i <= B)
        puts("OK");
    else
        puts("NG");
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:23: error: 'k' was not declared in this scope
   10 |     if (A <= K * i && k * i <= B)
      |                       ^
Language: C++

#include <iostream>
#include <cmath>
using namespace std;
 
int main(void) {
  long X;
  long deposit = 100;
  long duration = 0;
  
  cin >> X;
  
  for (int i=1;a >= X; i++) {
    duration += 1;
    gain = floor(deposit * 0.01);
  	a += gain;
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: 'a' was not declared in this scope
   12 |   for (int i=1;a >= X; i++) {
      |                ^
a.cc:14:5: error: 'gain' was not declared in this scope; did you mean 'main'?
   14 |     gain = floor(deposit * 0.01);
      |     ^~~~
      |     main
Language: C++

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

Compiler output:
a.cc:13:11: warning: missing terminating " character
   13 |   cout << "NG << endl;
      |           ^
a.cc:13:11: error: missing terminating " character
   13 |   cout << "NG << endl;
      |           ^~~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:14:3: error: expected primary-expression before 'return'
   14 |   return 0;
      |   ^~~~~~
Language: C++

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

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

    long long a,b,c,d,i,j,k,t,m,n,x,y,z,s,f,p,r,w,v,q,e,f;

     cin>>x;
     cin>>y>>z;
    for(i=y;i<=z;i++)
    {
        if((i%x)==0)
        {
            f=1;
            break;
        }
    }
     if(f==1)
     {
         cout<<"OK"<<endl;
     }
     else
     {
         cout<<"NG"<<endl;
     }

     return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:8:57: error: redeclaration of 'long long int f'
    8 |     long long a,b,c,d,i,j,k,t,m,n,x,y,z,s,f,p,r,w,v,q,e,f;
      |                                                         ^
a.cc:8:43: note: 'long long int f' previously declared here
    8 |     long long a,b,c,d,i,j,k,t,m,n,x,y,z,s,f,p,r,w,v,q,e,f;
      |                                           ^
Language: C++

int main() {
    int k, a, b;
    cin >> k >> a >> b;
    int i = 0;
    int x = 0;
    bool flag = false;

    while (true) {
        x = k * i;
        if (a <= x & x <= b) {
            flag = true;
            break;
        }

        else if (b < x) {
            break;
        }
        i += 1;
    }
    if (flag) {
        cout << "OK" << endl;
    }

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


Compiler output:
a.cc: In function 'int main()':
a.cc:3:5: error: 'cin' was not declared in this scope
    3 |     cin >> k >> a >> b;
      |     ^~~
a.cc:21:9: error: 'cout' was not declared in this scope
   21 |         cout << "OK" << endl;
      |         ^~~~
a.cc:21:25: error: 'endl' was not declared in this scope
   21 |         cout << "OK" << endl;
      |                         ^~~~
a.cc:25:9: error: 'cout' was not declared in this scope
   25 |         cout << "NO" << endl;
      |         ^~~~
a.cc:25:25: error: 'endl' was not declared in this scope
   25 |         cout << "NO" << endl;
      |                         ^~~~
Language: C++

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

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


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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected unqualified-id before 'for'
    9 |   for(int i=0;i<K;i++){
      |   ^~~
a.cc:9:15: error: 'i' was not declared in this scope
    9 |   for(int i=0;i<K;i++){
      |               ^
a.cc:19:4: error: expected '}' at end of input
   19 |   }
      |    ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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



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

  if (a == b) cout << "OK" endl;
  else if(a / k == b / k) cout << "NG" << endl;
  else{
    cout << "OK" <<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:27: error: expected ';' before 'endl'
   10 |   if (a == b) cout << "OK" endl;
      |                           ^~~~~
      |                           ;
Language: C++

int main(){
  int k, a, b;
  cin >> k >> a >> b;
  int i;
  for(int i = 0; i * k < b;i++){
    int i = i++;
  }
  if(i * k >= a){
    cout << "OK" << endl;
  }
  else{
    cout << "NO" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> k >> a >> b;
      |   ^~~
a.cc:6:9: error: redeclaration of 'int i'
    6 |     int i = i++;
      |         ^
a.cc:5:11: note: 'int i' previously declared here
    5 |   for(int i = 0; i * k < b;i++){
      |           ^
a.cc:9:5: error: 'cout' was not declared in this scope
    9 |     cout << "OK" << endl;
      |     ^~~~
a.cc:9:21: error: 'endl' was not declared in this scope
    9 |     cout << "OK" << endl;
      |                     ^~~~
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout << "NO" << endl;
      |     ^~~~
a.cc:12:21: error: 'endl' was not declared in this scope
   12 |     cout << "NO" << endl;
      |                     ^~~~
Language: C++

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

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

Compiler output:
a.cc:14:11: warning: missing terminating " character
   14 |     cout<<"NG;
      |           ^
a.cc:14:11: error: missing terminating " character
   14 |     cout<<"NG;
      |           ^~~~
a.cc: In function 'int main()':
a.cc:16:5: error: expected primary-expression before 'return'
   16 |     return 0;
      |     ^~~~~~
Language: C++

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

int main(){
  int k, a, b;
  cin >> k >> a >> b;
  for(int i = 0; i * k < b;i++){
    i = i++;
  }
  if(i * k >= a){
    cout << "OK" << endl;
  }
  else{
    cout << "NO" << endl;
  }
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:10:6: error: 'i' was not declared in this scope
   10 |   if(i * k >= a){
      |      ^
Language: C++

#include<bits/stdc++.h> 
using namespace std;
long long num= 100;
#include <cmath>
template<typename real>
//inline round(const real &n)
//{
//   return (long long)((long double)n*pow(10,1))/pow(10,1);
//}
int a;
int main(){
	scanf("%d",&a);
	for(int i =1 ;;i++){
//		num= round(num*1.01);
		num = num*1.01;
//		cout<<num<<endl;
		if(num>=a){
			printf("%d",i);
			return 0;
		}
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:22: error: missing template arguments before ')' token
   12 |         scanf("%d",&a);
      |                      ^
a.cc:17:26: error: missing template arguments before ')' token
   17 |                 if(num>=a){
      |                          ^
Language: C++

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

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

#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define ld long double
int main()
{
	ll a,b,n;
	cin>>a>>b>>n;
	vector<ll> v;
	ll p=n;
	v.push_back(((a*p)/b)-(a*(p/b)));
	
	p=n-1;
	v.push_back(((a*p)/b)-(a*(p/b)));
	
	p=n/2;
	v.push_back(((a*p)/b)-(a*(p/b)));
	
	p=n/2+1;
	v.push_back(((a*p)/b)-(a*(p/b)));
	
	p=sqrt(n);
	v.push_back(((a*p)/b)-(a*(p/b)));
	
	p=sqrt(n)-1;
	v.push_back(((a*p)/b)-(a*(p/b)));
	
	p=sqrt(n)+1;
	v.push_back(((a*p)/b)-(a*(p/b)));
	
	for(ll i=0;i<=min(a,b)+100;i++){
		if(i<=n){
			p=i;
			v.push_back(((a*p)/b)-(a*(p/b)));
//			cout<<v[v.size()-1]<<endl;
		}
	}
	
	for(ll i=n+100;i>=min(a,b)-100;i++){
		if(i<=n&&u=i>=0){
			p=i;
			v.push_back(((a*p)/b)-(a*(p/b)));
//			cout<<v[v.size()-1]<<endl;
		}
	}
	
	sort(v.begin(),v.end());
	cout<<v[v.size()-1]<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:40:26: error: 'u' was not declared in this scope
   40 |                 if(i<=n&&u=i>=0){
      |                          ^
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner scan = new Scanner(System.in);
    double targ = scan.nextDouble();
    double first = 100.0;
    double rate = 1.01;
    double goal = Math.log((targ*(rate-1)/first+1))/Math.log(rate);
    double goal = Math.ceil(goal);
    System.out.println(goal);
  }
}


Compiler output:
Main.java:9: error: variable goal is already defined in method main(String[])
    double goal = Math.ceil(goal);
           ^
1 error
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.h>
#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:1:10: fatal error: iostream.h: No such file or directory
    1 | #include <iostream.h>
      |          ^~~~~~~~~~~~
compilation terminated.
Language: C++

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


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

#include <bits/stdc++.h>
#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:4:1: error: expected identifier before 'int'
    4 | int main()
      | ^~~
a.cc:3:16: error: expected ';' before 'int'
    3 | using namespace
      |                ^
      |                ;
    4 | int main()
      | ~~~             
a.cc: In function 'int main()':
a.cc:8:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    8 |     cout << "OK";
      |     ^~~~
      |     std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |       cout << "NO";
      |       ^~~~
      |       std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'else' without a previous 'if'
   12 |   else {cout<<"NG"<<endl;}
      |   ^~~~
Language: C

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

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


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

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

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

    if(i%K==0){

      cout<<"OK"<<endl;

      break;

      }

    if(i==B){

      cout<<"NG"<<endl;

      }

    }

  return 0;

  }



Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'intK' was not declared in this scope; did you mean 'int'?
    4 |   intK,A,B;
      |   ^~~~
      |   int
a.cc:4:8: error: 'A' was not declared in this scope
    4 |   intK,A,B;
      |        ^
a.cc:4:10: error: 'B' was not declared in this scope
    4 |   intK,A,B;
      |          ^
a.cc:5:8: error: 'K' was not declared in this scope
    5 |   cin>>K>>A>>B;
      |        ^