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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:9: error: 'cin' was not declared in this scope
    5 |         cin >> K;
      |         ^~~
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:13:9: error: 'cout' was not declared in this scope
   13 |         cout << "NG" << endl;
      |         ^~~~
a.cc:13:25: error: 'endl' was not declared in this scope
   13 |         cout << "NG" << endl;
      |                         ^~~~
a.cc:17:9: error: 'cout' was not declared in this scope
   17 |         cout << "OK" << endl;
      |         ^~~~
a.cc:17:25: error: 'endl' was not declared in this scope
   17 |         cout << "OK" << endl;
      |                         ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: expected ',' or ';' before 'if'
    8 |     if (x==y){
      |     ^~
a.cc:12:7: error: 'else' without a previous 'if'
   12 |       else {
      |       ^~~~
Language: C

# include < stdio . h >

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

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

 int largest = ( b / k ) * k ;
 if ( a <= largest ) {
 puts (" OK ");
 } else {
 puts (" NG ");
 }

 return 0;
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:16: error: conflicting declaration 'std::string k'
    7 |         string k = "NG";
      |                ^
a.cc:5:13: note: previous declaration as 'int k'
    5 |         int k,a,b;
      |             ^
a.cc:10:21: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   10 |                 k = "OK";
      |                     ^~~~
      |                     |
      |                     const char*
a.cc:14:21: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
   14 |                 k = "OK";
      |                     ^~~~
      |                     |
      |                     const char*
Language: C++

/*                        ______
 _______   /\     |``\   |        |  /
    |     /  \    |__/   |____    |/
    |    / _ _\   |  \   |        |\
    |   /      \  |   \  |______  |  \

            Dept. of CSE
        Comilla  University

*/
#include<bits/stdc++.h>
#define pi 2*acos(0.0)
#define ll long long
#define FIO ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0);
#define Node struct node
#define spc " "
#define  E  2.71828182845904523536
#define pb push_back
#define pp pop_back
#define valid(nx,ny) nx>=0 && nx<n && ny>=0 && ny<m
#define ee endl
#define pii pair<int,int>
#define infinity 10000000000000000
#define mod 1000000007
int fx[]={0,0,+1,-1};
int fy[]={+1,-1,0,0};

using namespace std;
///check n=1;
///check corner case;
const int maX=1e5+1;
vector<ll>Graph[maX],cost[maX];
ll visit[maX];


int main()
{
   ll k,a,b;
   cin>>k>>a>>b;
   ll c=abs(a-b);
   if(c==0 && k==1)cout<<"OK"<<endl;
   else if(k>=cc)cout<<"OK"<<endl;
   else cout<<"NG"<<endl;
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:42:15: error: 'cc' was not declared in this scope; did you mean 'c'?
   42 |    else if(k>=cc)cout<<"OK"<<endl;
      |               ^~
      |               c
Language: Java

import java.util.Scanner;

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();
   
   boolean flag=false;
   for(int i=a;i<=b;i++){
     if(i%k==0){
     flag=true;
       breal;
     }
   }
   if(flag){
     System.out.println("OK");
   }
   else{
     System.out.println("NG");
   }
   
 
 }
}


Compiler output:
Main.java:14: error: not a statement
       breal;
       ^
1 error
Language: Java

import java.util.Scanner;

class Main{
 public static void main(String args[]){
   Scanner sc = new Scanner(System.in);
   int k = sc.nextInt();
   int a = sc.nextInt();
   int b = sc.nextInt();
   
   int c=b%k;
   int d=b-k;

   if(x<=d){
     System.out.println("Yes");
   }else{
     System.out.println("No");
   }
 
 }
}

Compiler output:
Main.java:13: error: cannot find symbol
   if(x<=d){
      ^
  symbol:   variable x
  location: class Main
1 error
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:9: error: 'i' was not declared in this scope
   10 |     for(i = a; i <= b; i++){
      |         ^
a.cc:11:21: error: 'flag' was not declared in this scope
   11 |         if(i%k == 0)flag = "OK";
      |                     ^~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int a, b, k;
  cin >> k;
  cinn >> 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: In function 'int main()':
a.cc:6:3: error: 'cinn' was not declared in this scope
    6 |   cinn >> a >> b;
      |   ^~~~
Language: Java

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

Compiler output:
Main.java:15: error: reached end of file while parsing
		sc.close();
		           ^
1 error
Language: Java

import java.util.Scanner;
 
public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int k = sc.nextInt();
		int a = sc.nextInt();
		int b = sc.nextInt();
		if (b >=a) {
			System.out.println("OK");
		}else {
			System.out.println("NG");
		}
		sc.close();

Compiler output:
Main.java:14: error: reached end of file while parsing
		sc.close();
		           ^
1 error
Language: Java

import java.util.Scanner;

public class Main_paiza{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int input1 = sc.nextInt();
    // String input2 = sc.nextLine();
    // String[] inputs = input2.split(" ");

    String[] inputs = {"20", "30"};

    int minNum = Integer.parseInt(inputs[0]);
    int maxNum = Integer.parseInt(inputs[1]);

    for(int i = minNum; i <= maxNum; i++){
	    if (i % input1 == 0){
          System.out.println("OK");
          break;
        } else if(i == maxNum &&  i % input1 != 0) {
          System.out.println("NG");
        }
    }
  }
}

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

//inlclude前用define 
#define _USE_MATH_DEFINES

//include
#include<iostream>
#include<string>
#include<algorithm>
#include<vector>
#include<cmath>
#include<type_traits>
#include<numeric>
//#include<deque>
#include<iomanip>
#include<set>
#include<tuple>
#include<map>
#include<limits>

using namespace std;

//typedef
typedef vector<int> VI;
typedef vector<string> VS;
typedef vector<char> VC;
typedef long long int ll;

//define
#define INF 1e9 
#define NUM 1000000007
#define all(x) begin(x), end(x)
#define rep(i,n) for(int i=0;i<(int)(n);i++)

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

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

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


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

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

#define MOD (1000000000+7)
#define pb(x) push_back(x)
#define mp(x,y) make_pair(x,y)
#define all(x) x.begin(), x.end()
#define print(vec,l,r) for(int i = l; i <= r; i++) cout << vec[i] <<" "; cout << endl;
#define forf(i,a,b) for(int i = (a); i < (b); i++)
#define forr(i,a,b) for(int i = (a); i > (b); i--)
#define input(vec,N) for(int i = 0; i < (N); i++) cin >> vec[i];

// template starts
typedef long long int ll;

void solve(){
	// code starts from here
	ll A,B,K;
	cin >> K >> A >> B;
	ll t = A/K + !(A%K == 0);
	if(t*K > B) cout << "OK" << endl;
	else cout << "NG << endl;
}

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

	int T;
	T = 1;
	while(T--){
		solve();
	}

	return 0;
}


Compiler output:
a.cc:22:22: warning: missing terminating " character
   22 |         else cout << "NG << endl;
      |                      ^
a.cc:22:22: error: missing terminating " character
   22 |         else cout << "NG << endl;
      |                      ^~~~~~~~~~~~
a.cc: In function 'void solve()':
a.cc:23:1: error: expected primary-expression before '}' token
   23 | }
      | ^
Language: Java

import java.util.Scanner;

class Main{
  public static void main(String[]args){
    Scanner  sc=new Scanner(System.in);
    int k,a,b;
    k=sc.nextInt();
    a=sc.nextInt();
    b=sc.nextInt();
    boolean flag;
    for(int i=a;i<=b;i++){
      if(i%k==0){
        System.out.println("OK");
       flag=false;
        break;
      }
    }
    if(flag)
      System.out.println("NG");
  }
}


Compiler output:
Main.java:18: error: variable flag might not have been initialized
    if(flag)
       ^
1 error
Language: C++

#include <bits/stdc++.h>

#define fi first
#define se second
#define pb push_back
#define all(x) (x).begin(), (x).end()
#define rall(x) (x).rbegin(), (x).rend()

using namespace std;

typedef long long ll;
typedef vector<ll> vll;
typedef pair<ll, ll> pll;
typedef long double ld;

const ll mod = (ll)1e9 + 7;
const ll mxN = 200200;

string red(string s) {
	stack<char> st;
	for(auto i: s)
		if(i=='(')
			st.push('(');
		else if(i==')' && (st.size()==0 || st.top()==')'))
			st.push(')');
		else
			st.pop();
	string ans="";
	while(st.size())
		ans+=st.top(),st.pop();
	reverse(all(ans));
	return ans;
}


int main() {
	ios::sync_with_stdio(false);
	cin.tie(nullptr);
	cout.precision(20);
	cout << fixed;
	
	ll k,a,b;
	cin>>k>>a>>b;
	for(int i=a;i<=b;i++)
		if(i%k==0)
		{cout<<"OK";retrun 0;}
	cout<<"NG";

}


Compiler output:
a.cc: In function 'int main()':
a.cc:46:29: error: 'retrun' was not declared in this scope
   46 |                 {cout<<"OK";retrun 0;}
      |                             ^~~~~~
Language: C++

#include "C++.h"

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


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

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

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

#include<bits/stdc++.h>
using namespace stdd()
int k,a,b,ans; 
int main()
{
  cin>>k>>a>>b;
  for(int i=i;i<=k;i++;)
    ans=k*i;
  if(ans>=a&&ans<=b)
  {cout<<"OK";
  return 0;
  }
  else
  {
continue;
  }
  cout<<"NG";
  return 0;
}



Compiler output:
a.cc:2:17: error: 'stdd' is not a namespace-name
    2 | using namespace stdd()
      |                 ^~~~
a.cc:2:21: error: expected ';' before '(' token
    2 | using namespace stdd()
      |                     ^
      |                     ;
a.cc:2:22: error: expected unqualified-id before ')' token
    2 | using namespace stdd()
      |                      ^
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |   cin>>k>>a>>b;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:6:8: error: 'k' was not declared in this scope
    6 |   cin>>k>>a>>b;
      |        ^
a.cc:6:11: error: 'a' was not declared in this scope
    6 |   cin>>k>>a>>b;
      |           ^
a.cc:6:14: error: 'b' was not declared in this scope
    6 |   cin>>k>>a>>b;
      |              ^
a.cc:7:23: error: expected ')' before ';' token
    7 |   for(int i=i;i<=k;i++;)
      |      ~                ^
      |                       )
a.cc:7:24: error: expected primary-expression before ')' token
    7 |   for(int i=i;i<=k;i++;)
      |                        ^
a.cc:9:6: error: 'ans' was not declared in this scope; did you mean 'abs'?
    9 |   if(ans>=a&&ans<=b)
      |      ^~~
      |      abs
a.cc:10:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   {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:15:1: error: continue statement not within a loop
   15 | continue;
      | ^~~~~~~~
a.cc:17:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |   cout<<"NG";
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>

using namespace std;

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

Compiler output:
a.cc:11:17: warning: missing terminating " character
   11 |     cout<<"OK"<<"\n;
      |                 ^
a.cc:11:17: error: missing terminating " character
   11 |     cout<<"OK"<<"\n;
      |                 ^~~~
a.cc:19:22: warning: missing terminating " character
   19 |          cout<<"OK"<<"\n;
      |                      ^
a.cc:19:22: error: missing terminating " character
   19 |          cout<<"OK"<<"\n;
      |                      ^~~~
a.cc: In function 'int main()':
a.cc:13:5: error: expected primary-expression before 'else'
   13 |     else
      |     ^~~~
Language: Java

import java.util.Scanner;
public class Main {
    public static void main(String[] args){

        Scanner scan = new Scanner(new File(System.in));

        long X = scan.nextLong();
        int year= 0;
        long money=100;
        System.out.println(X);

        while(money<X){
            money= (long) (money*1.01);
            year++;
        }
        System.out.println(year);
    }
}



Compiler output:
Main.java:5: error: cannot find symbol
        Scanner scan = new Scanner(new File(System.in));
                                       ^
  symbol:   class File
  location: class Main
1 error
Language: C

#include <stdio.h>
 
int main(void) 
{
	long int x;
	int b=0;
	long long int a=100;
  
	scanf("%ld", &x);
	while (a<x) {
		  a*=1.01;
	      b=b+1;
	}
	printf("%d",b);
	
  return 0;

Compiler output:
main.c: In function 'main':
main.c:16:3: error: expected declaration or statement at end of input
   16 |   return 0;
      |   ^~~~~~
Language: C

#include <stdio.h>

int main(main) 
{
	long int x;
	int b=0;
	long long int a=100;
  
	scanf("%ld", &x);
	while (a<x) {
		  a*=1.01;
	      b=b+1;
	}
	printf("%d",i);
	
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:5: error: type of 'main' defaults to 'int' [-Wimplicit-int]
    3 | int main(main)
      |     ^~~~
main.c:14:21: error: 'i' undeclared (first use in this function)
   14 |         printf("%d",i);
      |                     ^
main.c:14:21: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main(void)
{
	int k, a, b;
  	int i = 1;
	scanf("%d%d%d",&k, &a, &b);
  	while(1){
      if(k >= a && k <= b){
        printf("OK\n");
      }else if(k > b){
        printf("NG\n");
      }else{
      	k *= i;
      }
      i++;
  
}

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

#include <iostream>
using namespace std;
int main(void){
    // Your code here!
    cin>>k>>a>>b;
    for(int i=a;i<=b;i++) if(i % k == 0) {cout<<"Yes"<<endl; return 0;}
    cout<<"No"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: 'k' was not declared in this scope
    5 |     cin>>k>>a>>b;
      |          ^
a.cc:5:13: error: 'a' was not declared in this scope
    5 |     cin>>k>>a>>b;
      |             ^
a.cc:5:16: error: 'b' was not declared in this scope
    5 |     cin>>k>>a>>b;
      |                ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:7: error: use of an operand of type 'bool' in 'operator--' is forbidden
   12 |       X--;
      |       ^
Language: C++

#include<iostream>
using namespace std;


int main(){
  int x, y, z;
  
  cin>>x>>y>>z;
  bool ok=false
  for(int i=1;i<=1000; i++){
    
    if(i%x==0 && y<=i<=z){
      ok=true;
    }
    
  }
  if(ok==true){
    cout<<"OK\n";
    
  }
  else{
    cout<<"NG\n";
  }
    
    
    
  
  
  
  return 0;
}

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

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

    int a = (A-1) / K ;
    int b = B / K ;

    cout << ( b - a > 0 )? "OK" : "NG" << endl ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:40: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   11 |     cout << ( b - a > 0 )? "OK" : "NG" << endl ;
      |                                   ~~~~~^~~~~~~
Language: C++

#include <bits/stdc++.h>
#include <fstream>
using namespace std;
typedef long long ll;
typedef long double ld;
typedef pair<ll, ll> l_l;
typedef pair<int , int> i_i;
typedef vector<ll> vl;
typedef vector<int> vi;
typedef vector<char> vec;
typedef vector<bool> veb;
typedef vector<string> ves;
typedef vector<vector<ll>> vvl;
typedef vector<vector<int>> vvi;
typedef vector<vector<char>> vvec;
typedef vector<vector<bool>> vveb;
typedef vector<vector<string>> vves;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<(int)(n);i++)
#define rep2(i,n) for(int i=2;i<(int)(n);i++)
#define repk(i,k,n) for(int i=k;i<(int)(n);i++)
#define rev(v) reverse(v.begin(), v.end())
#define fs first
#define sc second
#define pb push_back
#define pp pop_back
#define all(a) a.begin(),a.end()
#define rall(a) a.rbegin(),a.rend()
#define maxel(a) *max_element(all(a))
#define minel(a) *min_element(all(a))
#define acc accumulate
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))
#define mod (1000000007)
typedef long long int64;
//const int64 INF = 1LL << 58;
#define dame { puts("-1"); return 0;}
#define YES { cout << "YES" << endl; return 0; }
#define NO { cout << "NO" << endl; return 0; }
#define Yes { cout << "Yes" << endl; return 0; }
#define No { cout << "No" << endl; return 0; }
#define uniq(a) sort(all(a));(a).resize(unique(all(a)) - a.begin());
#define dab(v) for(auto i:v)cout<<i<<' '; cout << endl;
#define vin(v) for (ll i = 0; i < v.size(); ++i) cin >> v[i];
template<class T> bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T> bool chmin(T &a, const T &b) { if (a>b) { a=b; return 1; } return 0; }
int dx[] = {0, 0, -1, 1};
int dy[] = {1, -1, 0, 0};

ll beki(int a, int n){
    if(n == 0) return 1;
    ll ans = beki(a, n / 2);
    ans = ans * ans;
    if(n % 2 == 1) ans = ans * a;
    return ans;
}
random_device rd;
mt19937 generator(rd());

vector <double> u(4), post_u(2);
ofstream ofs("logit.csv", ios::out);
vector<double> a;
normal_distribution<double> dist_normal(0.0, 1);
double logit_normal(double y, double myu, double var){
    //yからxの値を逆算
    double ma = 1.0, mi = 0.0;
    while(ma - mi > 0.001){
        double mid = (ma + mi) / 2;
        if( log(mid/(1.0-mid)) > y) ma = mid;
        else mi = mid;
    }
    double res = 1.0/(sqrt(var * 2 * PI)) * 1.0/(mi * (1.0 - mi)) * exp(-(y - myu)*(y - myu)/(2.0*var));
    return mi;
}



int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
    //cout << fixed << setprecision(15);
    
    
    int K,A,B;cin>>K>>A>>B;
    repk(i,A,B+1){
        if(i%K==0) __codecvt_ok
    }
NG
}

Compiler output:
a.cc: In function 'int main()':
a.cc:87:20: error: '__codecvt_ok' was not declared in this scope
   87 |         if(i%K==0) __codecvt_ok
      |                    ^~~~~~~~~~~~
a.cc:89:1: error: 'NG' was not declared in this scope; did you mean 'NO'?
   89 | NG
      | ^~
      | NO
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> K >> A >> B;
      |   ^~~
a.cc:8:24: error: 'B' was not declared in this scope
    8 |   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;

  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: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> K >> A >> B;
      |   ^~~
a.cc:8:23: error: 'B' was not declared in this scope
    8 |   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;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> K >> A >> B;
      |   ^~~
a.cc:8:23: error: 'B' was not declared in this scope
    8 |   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;

  for (int i = A; i < B; i++) {
    if (i % K == 0) {
      cout << 'ok' << endl;
      break;
    }
    cout << 'NG' << endl;
  }
}

Compiler output:
a.cc:10:15: warning: multi-character character constant [-Wmultichar]
   10 |       cout << 'ok' << endl;
      |               ^~~~
a.cc:13:13: warning: multi-character character constant [-Wmultichar]
   13 |     cout << 'NG' << endl;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:6:3: error: expected initializer before 'cin'
    6 |   cin >> K >> A >> B;
      |   ^~~
a.cc:8:23: error: 'B' was not declared in this scope
    8 |   for (int i = A; i < B; i++) {
      |                       ^
Language: C++

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

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


Compiler output:
a.cc:5:1: error: extended character 　 is not valid in an identifier
    5 | 　　int A,B,K;
      | ^
a.cc:5:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:5:1: error: '\U00003000\U00003000int' was not declared in this scope
    5 | 　　int A,B,K;
      | ^~~~~~~
a.cc:6:12: error: 'K' was not declared in this scope
    6 |     cin >> K;
      |            ^
a.cc:7:12: error: 'A' was not declared in this scope
    7 |     cin >> A >> B;
      |            ^
a.cc:7:17: error: 'B' was not declared in this scope
    7 |     cin >> A >> B;
      |                 ^
Language: C++

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

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


Compiler output:
a.cc:5:1: error: extended character 　 is not valid in an identifier
    5 | 　　int A , B, K;
      | ^
a.cc:5:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:5:1: error: '\U00003000\U00003000int' was not declared in this scope
    5 | 　　int A , B, K;
      | ^~~~~~~
a.cc:6:12: error: 'K' was not declared in this scope
    6 |     cin >> K >> A >> B;
      |            ^
a.cc:6:17: error: 'A' was not declared in this scope
    6 |     cin >> K >> A >> B;
      |                 ^
a.cc:6:22: error: 'B' was not declared in this scope
    6 |     cin >> K >> A >> B;
      |                      ^
Language: C++


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

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

Compiler output:
a.cc:6:1: error: extended character 　 is not valid in an identifier
    6 | 　　int A,B,K;
      | ^
a.cc:6:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:6:1: error: '\U00003000\U00003000int' was not declared in this scope
    6 | 　　int A,B,K;
      | ^~~~~~~
a.cc:7:12: error: 'K' was not declared in this scope
    7 |     cin >> K >> A >> B;
      |            ^
a.cc:7:17: error: 'A' was not declared in this scope
    7 |     cin >> K >> A >> B;
      |                 ^
a.cc:7:22: error: 'B' was not declared in this scope
    7 |     cin >> K >> A >> B;
      |                      ^
Language: C++

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

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


Compiler output:
a.cc:5:1: error: extended character 　 is not valid in an identifier
    5 | 　　int A,B,K;
      | ^
a.cc:5:1: error: extended character 　 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:5:1: error: '\U00003000\U00003000int' was not declared in this scope
    5 | 　　int A,B,K;
      | ^~~~~~~
a.cc:6:12: error: 'K' was not declared in this scope
    6 |     cin >> K >> A >> B;
      |            ^
a.cc:6:17: error: 'A' was not declared in this scope
    6 |     cin >> K >> A >> B;
      |                 ^
a.cc:6:22: error: 'B' was not declared in this scope
    6 |     cin >> K >> A >> B;
      |                      ^
a.cc:9:13: error: expected primary-expression before '>' token
    9 |   if(B - A => K - 1){
      |             ^
a.cc:10:13: error: 'OK' was not declared in this scope
   10 |     cout << OK << endl;
      |             ^~
a.cc:13:13: error: 'NG' was not declared in this scope
   13 |     cout << NG << endl;
      |             ^~
a.cc:17:13: error: 'OK' was not declared in this scope
   17 |     cout << OK << endl;
      |             ^~
Language: Java

import java.util.*;

public class D {

    public static void main(String args[]) {
        Scanner scn = new Scanner(System.in);
        int k = scn.nextInt();
        int a = scn.nextInt();
        int b = scn.nextInt();
        if (b - a + 1 >= k) {
            System.out.println("OK");
        } else {
            System.out.println("NG");
        }
    }
}





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

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

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

include <bits/stdc++.h>

using namespace std;

int main() {
  int t;
  cin>>t;
  while(t--){
  int k,a,b;
  cin>>k;
  cin>>a>>b;
  bool ans=false;
  //if(k<=abs(a-b)+1)
  //{
  //    ans=true;
  //}
  //else {

    while(ans==false&&b>a){
        if(a%k==0){
            ans=true;
        }

        a++;
    }
  //}
  if(ans==true){
    cout<<"OK"<<endl;
  }
  else{
    cout<<"NG"<<endl;
  }
  }
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>t;
      |   ^~~
a.cc:28:5: error: 'cout' was not declared in this scope
   28 |     cout<<"OK"<<endl;
      |     ^~~~
a.cc:28:17: error: 'endl' was not declared in this scope
   28 |     cout<<"OK"<<endl;
      |                 ^~~~
a.cc:31:5: error: 'cout' was not declared in this scope
   31 |     cout<<"NG"<<endl;
      |     ^~~~
a.cc:31:17: error: 'endl' was not declared in this scope
   31 |     cout<<"NG"<<endl;
      |                 ^~~~
Language: C++

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

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

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

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int X = sc.nextInt();
        double money=100;
      　int s=0;
        
        
        while(money<X){
        	money+=money/100;
        	s++;
        }
      System.out.println{s};
		
		
	}
}

Compiler output:
Main.java:8: error: illegal character: '\u3000'
      ?int s=0;
      ^
Main.java:15: error: not a statement
      System.out.println{s};
                ^
Main.java:15: error: ';' expected
      System.out.println{s};
                        ^
Main.java:15: error: not a statement
      System.out.println{s};
                         ^
Main.java:15: error: ';' expected
      System.out.println{s};
                          ^
5 errors
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int X = sc.nextInt();
        int money=100;
        
        for(int i=0;i<100000;i++){
        money=money*1.01;
        i=i+1;
        if(money>=X){
        break;
        }
        }
		
		
	}
}

Compiler output:
Main.java:10: error: incompatible types: possible lossy conversion from double to int
        money=money*1.01;
                   ^
1 error
Language: C++

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

int main(){
    int k, a, b;
    cin >> k >> a >> b;
    int i, j;
    bool flg = false;
    for(i = 1; i < 1000; i++){
        if(k*i >= a && k*i <= b){
            flag = true;
            break;
        }
    }
    if(flg){
        cout << "OK" << endl;
    }
    else{
        cout << "NG" << endl;
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: 'flag' was not declared in this scope; did you mean 'flg'?
   11 |             flag = true;
      |             ^~~~
      |             flg
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
int main(){
int k,a,b;
  scanf(%d,&k);
  scanf(%d%d,&a,&b);
  int largest=(b/k)*k;
  if(a<=largest)puts("OK");
  else puts("NG");
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected primary-expression before '%' token
    6 |   scanf(%d,&k);
      |         ^
a.cc:6:10: error: 'd' was not declared in this scope
    6 |   scanf(%d,&k);
      |          ^
a.cc:7:9: error: expected primary-expression before '%' token
    7 |   scanf(%d%d,&a,&b);
      |         ^
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
int main(){
int k,a,b;
  scanf(%d,&k);
  scanf(%d%d,&a,&b);
  int largest=(b/k)*k;
  if(a<=largest)cout<<"OK"<<endl;
  else cout<<"NG"<<endl;
 return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: expected primary-expression before '%' token
    6 |   scanf(%d,&k);
      |         ^
a.cc:6:10: error: 'd' was not declared in this scope
    6 |   scanf(%d,&k);
      |          ^
a.cc:7:9: error: expected primary-expression before '%' token
    7 |   scanf(%d%d,&a,&b);
      |         ^
Language: C++

#include<iostream>
#include<stdio.h>
using namespace std;
int main(){
int k,a,b;
  scanf(%d\n,&k);
  scanf(%d%d,&a,&b);
  int largest=(b/k)*k;
  if(largest>=a)cout<<"OK"<<endl;
  else cout<<"NG"<<endl;
 return 0;
}

Compiler output:
a.cc:6:11: error: stray '\' in program
    6 |   scanf(%d\n,&k);
      |           ^
a.cc: In function 'int main()':
a.cc:6:9: error: expected primary-expression before '%' token
    6 |   scanf(%d\n,&k);
      |         ^
a.cc:6:10: error: 'd' was not declared in this scope
    6 |   scanf(%d\n,&k);
      |          ^
a.cc:7:9: error: expected primary-expression before '%' token
    7 |   scanf(%d%d,&a,&b);
      |         ^
Language: C++

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

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

    cin >> K >> A >> B;
    
    int p = A / K;
    if((p*K)== A){
        cout << "OK" << endl;
    }

    else if(((p+1)*K)=<B){
        cout << "OK" << endl;
    }

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:23: error: expected primary-expression before '<' token
   14 |     else if(((p+1)*K)=<B){
      |                       ^
Language: C

#include <stdio.h>

int main(){

int k,a,b;
scanf("%d%d%d",&k,&a,&b);
  for(int i=a; i<=b; i++){
  if(i%k=0){
  printf("OK");
  return 0;
  } 
  printf("NG");
  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:9: error: lvalue required as left operand of assignment
    8 |   if(i%k=0){
      |         ^
main.c:14:1: error: expected declaration or statement at end of input
   14 | }
      | ^
Language: C

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

#define endl '\n'
#define ll long long
#define ii pair<int,int>
#define vi vector<int>
#define vii vector<ii>
#define vvi vector<vi>
#define add push_back
#define MAXN 200005

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

    cout << "NG" << endl;

    return 0;
}


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

import java.util.Scanner;
public class A {
	public static void main(String[] args) {
		int k,a,b,x;
		Scanner sc = new Scanner(System.in);
		
		k = Integer.parseInt(sc.next());
		a = Integer.parseInt(sc.next());
		b = Integer.parseInt(sc.next());
		
		sc.close();
		
		x = (b / k) * k;
		if(a <= x) {
			System.out.println("OK");
		}else {
			System.out.println("NG");
		}
	}
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:7: error: 'a' was not declared in this scope
    8 |   if (a <= b / k * k) {
      |       ^
a.cc:8:12: error: 'b' was not declared in this scope
    8 |   if (a <= b / k * k) {
      |            ^
a.cc:8:16: error: 'k' was not declared in this scope
    8 |   if (a <= b / k * k) {
      |                ^
Language: Java

mport java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int K = sc.nextInt();
		// スペース区切りの整数の入力
		int A = sc.nextInt();
		int B = sc.nextInt();
      	int largest=(B/K)*K;
		if(largest>A){
        	System.out.println("OK");
        }
        else{
        	System.out.println("NG");
        }
	}
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
mport java.util.*;
^
1 error
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 整数の入力
		int K = sc.nextInt();
		// スペース区切りの整数の入力
		int A = sc.nextInt();
		int B = sc.nextInt();
      int largest=(B/K)*K
		if(largest>A){
        	System.out.println("OK");
        }
        else{
        	System.out.println("NG");
        }
	}
}


Compiler output:
Main.java:10: error: ';' expected
      int largest=(B/K)*K
                         ^
1 error
Language: C++

#pragma GCC optimize(3,"Ofast","inline")
#pragma GCC target("avx")
#include <bits/stdc++.h>
using namespace std;
#ifdef ONLINE_JUDGE
#define getchar gc
inline char gc(){
	static char buf[1<<16],*p1=buf,*p2=buf;
	if(p1==p2){
		p2=(p1=buf)+fread(buf,1,1<<16,stdin);
		if(p2==p1) return EOF;
	}
	return *p1++;
}
#endif
template<class t> inline t read(t &x){
    char c=getchar();bool f=0;x=0;
    while(!isdigit(c)) f|=c=='-',c=getchar();
    while(isdigit(c)) x=(x<<1)+(x<<3)+(c^48),c=getchar();
    if(f) x=-x;return x;
}
template<class t> inline void write(t x){
    if(x<0) putchar('-'),write(-x);
    else{if(x>9) write(x/10);putchar('0'+x%10);}
}

const int N=2e5+5;
int num[N],n,un,a[N],tr[N],ans[N],tp[N][21],cur;
vector<int> g[N];

#define lowbit(x) (x&(-x))

void up(int x,int v){
	while(x<=un){
		tp[cur][++tp[cur][0]]=tr[x];
		tr[x]=max(tr[x],v);
		x+=lowbit(x);
	}
}

int que(int x){
	int res=0;
	while(x){
		res=max(res,tr[x]);
		x-=lowbit(x);
	}
	return res;
}

void reset(int x){
	int n=0;
	while(x<=un){
		tr[x]=tp[cur][++n];
		x+=lowbit(x);
	}
}

void dfs(int x,int fa){
	ans[x]=que(a[x]-1)+1;
	cur=x;
	up(a[x],ans[x]);
	for(int y:g[x]) if(y^fa) dfs(y,x);
	cur=x;
	reset(a[x]);
}

signed main(){
	read(n);
	for(int i=1;i<=n;i++) num[i]=read(a[i]);
	sort(num+1,num+1+n);
	un=unique(num+1,num+1+n)-num-1;
	for(int i=1;i<=n;i++) a[i]=lower_bound(num+1,num+1+un,a[i])-num;
	for(int i=1,x,y;i<n;i++){
		read(x);read(y);
		g[x].push_back(y);
		g[y].push_back(x);
	}
	dfs(1,0);
	for(int i=1;i<=n;i++) write(ans[i]),puts("");
}

Compiler output:
In file included from /usr/include/c++/14/string:43,
                 from /usr/include/c++/14/bitset:52,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:3:
/usr/include/c++/14/bits/allocator.h: In destructor 'std::_Vector_base<int, std::allocator<int> >::_Vector_impl::~_Vector_impl()':
/usr/include/c++/14/bits/allocator.h:182:7: error: inlining failed in call to 'always_inline' 'std::allocator< <template-parameter-1-1> >::~allocator() noexcept [with _Tp = int]': target specific option mismatch
  182 |       ~allocator() _GLIBCXX_NOTHROW { }
      |       ^
In file included from /usr/include/c++/14/vector:66,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53:
/usr/include/c++/14/bits/stl_vector.h:132:14: note: called from here
  132 |       struct _Vector_impl
      |              ^~~~~~~~~~~~
Language: C++

#include<iostream>
#include <vector>
#include<map>
using namespace std;

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


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

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


Compiler output:
main.c: In function 'main':
main.c:6:11: error: 'a' undeclared (first use in this function)
    6 |     for(i=a;i<=B;i++);
      |           ^
main.c:6:11: 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;
  cin>>k;
  int a,b;
  cin>>a>>b;
  int a=0;
  for(int i=a;i<=b;i++)
  {
    if(k%i==0)
    {
      a=1;
      cout<<"OK\n";
      break;
    }
  }
  if(a==0)
  {
    cout<<"NG\n";
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: redeclaration of 'int a'
    9 |   int a=0;
      |       ^
a.cc:7:7: note: 'int a' previously declared here
    7 |   int a,b;
      |       ^
Language: C++

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

#define FOR(i, a, b) for (ll i = a; i <= (ll)(b); i++)

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

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

    FOR(i, a, b) {
        if (i % k == 0) {
            cout << "OK" << endl;
            return 0;
        }
    }

    cout << "NG" << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:27: error: 'll' was not declared in this scope
    4 | #define FOR(i, a, b) for (ll i = a; i <= (ll)(b); i++)
      |                           ^~
a.cc:13:5: note: in expansion of macro 'FOR'
   13 |     FOR(i, a, b) {
      |     ^~~
a.cc:13:9: error: 'i' was not declared in this scope
   13 |     FOR(i, a, b) {
      |         ^
a.cc:4:37: note: in definition of macro 'FOR'
    4 | #define FOR(i, a, b) for (ll i = a; i <= (ll)(b); i++)
      |                                     ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: 'k' was not declared in this scope
    7 |     if(i/k==0){
      |          ^
a.cc:13:4: error: expected '}' at end of input
   13 |   }
      |    ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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


Compiler output:
a.cc:3:9: error: empty filename in #include
    3 | #include<>
      |         ^~
Language: C++

#include <bits/stdc++.h> 
 
int main()
{
  	int A, B, K;
  
  	std::cin >> K >> A >> B;
    
   	while(A <= B)
    {
      if(A % == 0)
      {
        std::cout << "OK";
        return 0;
      }
      A++;
    }
  	std::cout << "NG";
  	return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: expected primary-expression before '==' token
   11 |       if(A % == 0)
      |              ^~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: expected primary-expression before '==' token
   11 |       if(A % == 0)
      |              ^~
Language: C++

#include <bits/stdc++.h> 

int main()
{
  	int A, B, K;
  
  	std::cin >> K >> A >> B;
    
   	while(A <= B)
    {
      if(A % == 0)
      {
        std::cout << "OK";
      }
      else{
        std::cout << "NG";
      }
    }
  	return 0; 
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: expected primary-expression before '==' token
   11 |       if(A % == 0)
      |              ^~
Language: C++

#include <iostream>

void main()
{
  int A, B, K;
    
    if(B % K >= 1 || A % K >= 1)
    {
        std::cout << "OK";
    }
    else
    {
        std::cout << "NG";
    }
    
}

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

int main()
{
    int A, B, K;
    if(B % K >= 1 || A % K >= 1)
    {
        std::cout << "OK";
    }
    else
    {
        std::cout << "NG";
    }
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'cout' is not a member of 'std'
    6 |         std::cout << "OK";
      |              ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int main()
a.cc:10:14: error: 'cout' is not a member of 'std'
   10 |         std::cout << "NG";
      |              ^~~~
a.cc:10:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

int main()
{
    
    if(B % K >= 1 || A % K >= 1)
    {
        std::cout << "OK";
    }
    else
    {
        std::cout << "NG";
    }
  
  	return 0;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:8: error: 'B' was not declared in this scope
    4 |     if(B % K >= 1 || A % K >= 1)
      |        ^
a.cc:4:12: error: 'K' was not declared in this scope
    4 |     if(B % K >= 1 || A % K >= 1)
      |            ^
a.cc:4:22: error: 'A' was not declared in this scope
    4 |     if(B % K >= 1 || A % K >= 1)
      |                      ^
a.cc:6:14: error: 'cout' is not a member of 'std'
    6 |         std::cout << "OK";
      |              ^~~~
a.cc:1:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | int main()
a.cc:10:14: error: 'cout' is not a member of 'std'
   10 |         std::cout << "NG";
      |              ^~~~
a.cc:10:14: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

if(B % K >= 1 || A % K >= 1)
{
        std::cout << "OK";
}
else
{
  std::cout << "NG";
}

Compiler output:
a.cc:1:1: error: expected unqualified-id before 'if'
    1 | if(B % K >= 1 || A % K >= 1)
      | ^~
a.cc:5:1: error: expected unqualified-id before 'else'
    5 | else
      | ^~~~