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

//#include<bits/stdc++.h>
#include<iostream>
#include<string>
#include<vector>
#include<utility>
#include<cmath>
#include<map>
#include<functional>
#include<queue>
#include<set>
#include<stack>
#include<iomanip>
using namespace std;
using ll = long long;
#define rep(i,n) for(ll i=0;i<(n);i++)
template<typename T =ll> using v = vector<T>;
template<typename T =ll> using vv = v<v<T>>;
template<typename T =ll,typename U =ll> using p = pair<T,U>;
template<typename T> T chmin(T &a,T b) {return a=min(a,b);}
template<typename T> T chmax(T &a,T b) {return a=max(a,b);}
const ll INF = (ll)1e9;
template <int MOD>
struct ModInt {
    using lint = long long;
    int val;

    // constructor
    ModInt(lint v = 0) : val(v % MOD) {
        if (val < 0) val += MOD;
    };

    // unary operator
    ModInt operator+() const { return ModInt(val); }
    ModInt operator-() const { return ModInt(MOD - val); }
    ModInt inv() const { return this->pow(MOD - 2); }

    // arithmetic
    ModInt operator+(const ModInt& x) const { return ModInt(*this) += x; }
    ModInt operator-(const ModInt& x) const { return ModInt(*this) -= x; }
    ModInt operator*(const ModInt& x) const { return ModInt(*this) *= x; }
    ModInt operator/(const ModInt& x) const { return ModInt(*this) /= x; }
    ModInt pow(lint n) const {
        auto x = ModInt(1);
        auto b = *this;
        while (n > 0) {
            if (n & 1) x *= b;
            n >>= 1;
            b *= b;
        }
        return x;
    }

    // compound assignment
    ModInt& operator+=(const ModInt& x) {
        if ((val += x.val) >= MOD) val -= MOD;
        return *this;
    }
    ModInt& operator-=(const ModInt& x) {
        if ((val -= x.val) < 0) val += MOD;
        return *this;
    }
    ModInt& operator*=(const ModInt& x) {
        val = lint(val) * x.val % MOD;
        return *this;
    }
    ModInt& operator/=(const ModInt& x) { return *this *= x.inv(); }

    // compare
    bool operator==(const ModInt& b) const { return val == b.val; }
    bool operator!=(const ModInt& b) const { return val != b.val; }

    // I/O
    friend std::istream& operator>>(std::istream& is, ModInt& x) noexcept { return is >> x.val; }
    friend std::ostream& operator<<(std::ostream& os, const ModInt& x) noexcept { return os << x.val; }
};

constexpr int MOD = 1e9 + 7;
using mint = ModInt<MOD>;

void A(){
    ll k,a,b; cin >> k >> a >> b;
    ll i = k;
    while(i<a){
        i+=k;
    }

    if(i<=b) cout << "OK" << endl;
    else           cout << "NG" << endl;
    
}
void B(){
    ll x; cin >> x;
    ll sum = 100;
    ll i = 0;
    while(sum<x){
        sum *=1.01;
        i++;
    }
    cout << i << endl;
    
}

void C(){

}

void d(){
    ll a,b,n; cin >> a >> b >> n;
    cout << (a*min((b-1),n))/b << endl;
}
void e(){}

int main(){
    b();
    return 0;
}

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

//#include<bits/stdc++.h>
#include<iostream>
#include<string>
#include<vector>
#include<utility>
#include<cmath>
#include<map>
#include<functional>
#include<queue>
#include<set>
#include<stack>
#include<iomanip>
using namespace std;
using ll = long long;
#define rep(i,n) for(ll i=0;i<(n);i++)
template<typename T =ll> using v = vector<T>;
template<typename T =ll> using vv = v<v<T>>;
template<typename T =ll,typename U =ll> using p = pair<T,U>;
template<typename T> T chmin(T &a,T b) {return a=min(a,b);}
template<typename T> T chmax(T &a,T b) {return a=max(a,b);}
const ll INF = (ll)1e9;
template <int MOD>
struct ModInt {
    using lint = long long;
    int val;

    // constructor
    ModInt(lint v = 0) : val(v % MOD) {
        if (val < 0) val += MOD;
    };

    // unary operator
    ModInt operator+() const { return ModInt(val); }
    ModInt operator-() const { return ModInt(MOD - val); }
    ModInt inv() const { return this->pow(MOD - 2); }

    // arithmetic
    ModInt operator+(const ModInt& x) const { return ModInt(*this) += x; }
    ModInt operator-(const ModInt& x) const { return ModInt(*this) -= x; }
    ModInt operator*(const ModInt& x) const { return ModInt(*this) *= x; }
    ModInt operator/(const ModInt& x) const { return ModInt(*this) /= x; }
    ModInt pow(lint n) const {
        auto x = ModInt(1);
        auto b = *this;
        while (n > 0) {
            if (n & 1) x *= b;
            n >>= 1;
            b *= b;
        }
        return x;
    }

    // compound assignment
    ModInt& operator+=(const ModInt& x) {
        if ((val += x.val) >= MOD) val -= MOD;
        return *this;
    }
    ModInt& operator-=(const ModInt& x) {
        if ((val -= x.val) < 0) val += MOD;
        return *this;
    }
    ModInt& operator*=(const ModInt& x) {
        val = lint(val) * x.val % MOD;
        return *this;
    }
    ModInt& operator/=(const ModInt& x) { return *this *= x.inv(); }

    // compare
    bool operator==(const ModInt& b) const { return val == b.val; }
    bool operator!=(const ModInt& b) const { return val != b.val; }

    // I/O
    friend std::istream& operator>>(std::istream& is, ModInt& x) noexcept { return is >> x.val; }
    friend std::ostream& operator<<(std::ostream& os, const ModInt& x) noexcept { return os << x.val; }
};

constexpr int MOD = 1e9 + 7;
using mint = ModInt<MOD>;

void A(){
    ll k,a,b; cin >> k >> a >> b;
    ll i = k;
    while(i<a){
        i+=k;
    }

    if(i<=b) cout << "OK" << endl;
    else           cout << "NG" << endl;
    
}
void B(){
    ll x; cin >> x;
    ll sum = 100;
    ll i = 0;
    while(sum<x){
        sum *=1.01;
        i++;
    }
    cout << i << endl;
    
}

void C(){

}

void d(){
    ll a,b,n; cin >> a >> b >> n;
    cout << (a*min((b-1),n))/b << endl;
}
void e(){}

int main(){
    a();
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:114:5: error: 'a' was not declared in this scope
  114 |     a();
      |     ^
Language: C++

#include<cmath>
#include<iostream>
int main()
{
  int k,a,b,n1,n2;
  cin>>k>>a>>b;
  n1=(int)ceil(1.0*k/a);
  n2=(int)floor(1.0*k/b);
  if(n2>=n1) cout<<"OK"<<endl;
  else cout<<"NG"<<endl;
  return 0;
}

Compiler output:
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 a.cc:2:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:14: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   if(n2>=n1) cout<<"OK"<<endl;
      |              ^~~~
      |              std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:9:26: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    9 |   if(n2>=n1) cout<<"OK"<<endl;
      |                          ^~~~
      |                          std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:10:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   else cout<<"NG"<<endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:10:20: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   10 |   else cout<<"NG"<<endl;
      |                    ^~~~
      |                    std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

#include <bits/stdc++.h> 
#include <ext/pb_ds/assoc_container.hpp> 
#include <ext/pb_ds/tree_policy.hpp> 
#include<cmath>
#define pb push_back
#define ll long long
#define ull unsigned long long
#define deb(x) cerr<<#x<<" "<<x<<"\n"
#define debi cerr<<"hey sparky\n"
#define x first
#define y second
#define fast ios::sync_with_stdio(0),cin.tie(0),cout.tie(0)
#define newline cout<<"\n"
#define yes cout<<"OK"<<"\n"
#define no cout<<"NG"<<"\n"
#define INF (ll)1e14+5
#define nax (ll)5e4+3
#define eps (double)1e-9
#define all(x) x.begin(),x.end()
#define MAX_N 3005
using namespace std;
using namespace __gnu_pbds; 
typedef tree<int, null_type,less<int>, rb_tree_tag,tree_order_statistics_node_update> pdbs;
// look for  all edge cases
//search for a pattern




int main(){
	fast;
	int t;
	int a,b,k;
	cin >> k >> a >> b;
	a = a/k;
	b = b/k;
	if(a!=b || a%k == 0 || b%k == 0){
		yes;
	}
	else{
		no;
	}
 	
	return 0;
}

	


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

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

int main() {
  int A, B, K;
  cin >> K;
  cin >> A;
  cin >> B;
  
  int r = A % K;
  if ((r == 0) || ((r + B - A) >= K)) {
    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() {
  int A, B, K;
  cin >> K;
  cin >> A;
  cin >> B;
  
  int r = A % K;
  if (r == 0 || (r + B - A) >= K) {
    cout << "OK";
  } else {
    cout << "NG";
  }
    
}

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

import java.util.Scanner;
class sample{
	public static void main(String[] args) {
		Scanner sc=new Scanner(System.in);
      	int a=sc.nextInt();
      int b=sc.nextInt();
      int c=sc.nextInt();
      int d=a;
		while(d<c) {
			d=a*n;
			n++;
			System.out.println(d);
			if(d>=b&&d<=c) {
				System.out.println("Ok");
				break;
			}
			else if(d>b&&!(d<c))
			{
				System.out.println("NG");
				break;
			}
		}
	}
}

Compiler output:
Main.java:10: error: cannot find symbol
			d=a*n;
			    ^
  symbol:   variable n
  location: class sample
Main.java:11: error: cannot find symbol
			n++;
			^
  symbol:   variable n
  location: class sample
2 errors
Language: Java


public class sample{
	public static void main(String[] args) {
		long time = System.nanoTime();
		
		int a =1,n=1,d=1;
		int b=11,c=11;
		 
		while(d<c) {
			d=a*n;
			n++;
			System.out.println(d);
			if(d>=b&&d<=c) {
				System.out.println("OK");
				break;
			}
			else if(d>b&&!(d<c))
			{
				System.out.println("NG");
				break;
			}
		}
		
		long time1=System.nanoTime();
		System.out.println("\nTime taken for this program in NanoSeconds: "+(time1-time));
	}
}

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

#include <iostream>
#include <cmath>
using namespace std;
int main() {
int a,b,n,s;
cin>>a>>b>>n;
if(b-1>n)s=n;
else s=b-1
cout<<(a*s)/b;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:11: error: expected ';' before 'cout'
    8 | else s=b-1
      |           ^
      |           ;
    9 | cout<<(a*s)/b;
      | ~~~~
Language: Java


public class sample{
	public static void main(String[] args) {
		int a =1,n=1,d=1;
		int b=11,c=11;
		 
		while(d<c) {
			d=a*n;
			n++;
			System.out.println(d);
			if(d>=b&&d<=c) {
				System.out.println("Ok");
				break;
			}
			else if(d>b&&!(d<c))
			{
				System.out.println("NG");
				break;
			}
		}
		
	}
}

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |       ans = "NG";
      |       ^~~
      |       abs
a.cc:16:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   16 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected ',' or ';' before '}' token
   11 |     }
      |     ^
a.cc:13:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |       ans = "NG"
      |       ^~~
      |       abs
a.cc:16:11: error: 'ans' was not declared in this scope; did you mean 'abs'?
   16 |   cout << ans << endl;
      |           ^~~
      |           abs
Language: C

K = int(input())
A,B = map(int,input().split())
if (B-A) >=(B%K):
    print("OK")
else:
    print("NG")


Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | K = int(input())
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'K' [-Wimplicit-int]
main.c:1:5: error: expected expression before 'int'
    1 | K = int(input())
      |     ^~~
Language: Java


import java.util.Scanner;

/**
 * https://atcoder.jp/contests/abc165/tasks/abc165_a
 */

public class WeLoveGolf {

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

        int k = scanner.nextInt();
        int a = scanner.nextInt();
        int b = scanner.nextInt();

        System.out.println(canCarry(k, a, b) ? "OK" : "NG");

        scanner.close();

    }

    public static boolean canCarry(int k, int a, int b) {
        if (a % k == 0 || b % k == 0) return true;

        int c = a + (k - (a % k));
        if (c <= b) return true;
        return false;
    }
}

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

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


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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected unqualified-id before ';' token
    9 |   ll k,a,b,ans=0,;
      |                  ^
Language: C++

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

int main(){ 
  long long a,b=100,c=0;cin>>a;
  while(b<a){
    b+=b/100;
    c++;
  }
  cout<<c;
  }
	return 0;
}

Compiler output:
a.cc:12:9: error: expected unqualified-id before 'return'
   12 |         return 0;
      |         ^~~~~~
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: expected '}' at end of input
   11 |      cout<<"NG";
      |                 ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C

#include <stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:6:25: error: 'ib' undeclared (first use in this function); did you mean 'i'?
    6 |         for (int i = a; ib<= b; i++)
      |                         ^~
      |                         i
main.c:6:25: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <bits/stdc++.h>

using namespace std;
#define ll long long
#define ld long double
const int N=2e5 + 5;
const ll mod = 1e9 + 7;

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


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

public final class Main {
	public static void main(String[] args) throws IOException {
		try (var istr = new InputStreamReader(System.in); 
			 var br = new BufferedReader(istr)) {
			int k = Integer.parseInt(br.readLine());
			var st = new StringTokenizer(br.readLine());
			int a = Integer.parseInt(st.nextToken());
			int b = Integer.parseInt(st.nextToken());
			for (int score = a; score <= b; score++) {
				if (score % k == 0) {
					out.printf("OK%n");
					return;
				}
			}
			out.printf("NG%n");
		}
	}
}

Compiler output:
Main.java:2: error: cannot find symbol
	public static void main(String[] args) throws IOException {
	                                              ^
  symbol:   class IOException
  location: class Main
Main.java:3: error: cannot find symbol
		try (var istr = new InputStreamReader(System.in); 
		                    ^
  symbol:   class InputStreamReader
  location: class Main
Main.java:4: error: cannot find symbol
			 var br = new BufferedReader(istr)) {
			              ^
  symbol:   class BufferedReader
  location: class Main
Main.java:6: error: cannot find symbol
			var st = new StringTokenizer(br.readLine());
			             ^
  symbol:   class StringTokenizer
  location: class Main
Main.java:11: error: cannot find symbol
					out.printf("OK%n");
					^
  symbol:   variable out
  location: class Main
Main.java:15: error: cannot find symbol
			out.printf("NG%n");
			^
  symbol:   variable out
  location: class Main
6 errors
Language: C++

#include <bits/stdc++.h>
#define F first
 #define S second
#define PB push_back
#define MP make_pair
#define ll long long int


using namespace std;

int main()
{
 	ios_base::sync_with_stdio(0);
	cin.tie(0);
		
	int k,a,b;
	int flag = 0;s
	cin >> k;
	cin >> a >> b;
	
	for(int i =a; i <= b; i++)
	{
		if(i % k == 0){
			flag = 1;
			cout << "OK\n";
		}
	}
	if(flag == 0) cout << "NG\n";


return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:22: error: 's' was not declared in this scope
   17 |         int flag = 0;s
      |                      ^
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: invalid operands of types 'double' and 'int' to binary 'operator%'
   11 |         if(x%1 == 0){
      |            ~^~
      |            | |
      |            | int
      |            double
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class q1 {

	public static void main(String[] args) {
		 FastReader s = new FastReader();
		 
		 int t = s.nextInt();
		 while(t-- > 0){
		 int n = s.nextInt();
		 int a = s.nextInt();
		 int b = s.nextInt();
		 
		 if(b-a >= n-1)
			 System.out.println("OK");
		 else
		 {
			 if(a%n==0 || ((a/n)+1)*n > a && ((a/n)+1)*n <= b)
				 System.out.println("OK");
			 else System.out.println("NG");
		 }
		 }
	}
	
	static class FastReader {
        BufferedReader br;
        StringTokenizer st;
 
        public FastReader()
        {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }
 
        String next()
        {
            while (st == null || !st.hasMoreElements())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException  e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }
 
        int nextInt()
        {
            return Integer.parseInt(next());
        }
 
        long nextLong()
        {
            return Long.parseLong(next());
        }
 
        double nextDouble()
        {
            return Double.parseDouble(next());
        }
 
        String nextLine()
        {
            String str = "";
            try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
        }
	}

}


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

public class q1 {

	public static void main(String[] args) {
		 FastReader s = new FastReader();
		 int n = s.nextInt();
		 int a = s.nextInt();
		 int b = s.nextInt();
		 
		 if(b-a >= n-1)
			 System.out.println("OK");
		 else
		 {
			 if(a%n==0 || ((a/n)+1)*n > a && ((a/n)+1)*n <= b)
				 System.out.println("OK");
			 else System.out.println("NG");
		 }

	}
	
	static class FastReader {
        BufferedReader br;
        StringTokenizer st;
 
        public FastReader()
        {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }
 
        String next()
        {
            while (st == null || !st.hasMoreElements())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException  e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }
 
        int nextInt()
        {
            return Integer.parseInt(next());
        }
 
        long nextLong()
        {
            return Long.parseLong(next());
        }
 
        double nextDouble()
        {
            return Double.parseDouble(next());
        }
 
        String nextLine()
        {
            String str = "";
            try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
        }
	}

}


Compiler output:
Main.java:1: error: class q1 is public, should be declared in a file named q1.java
public class q1 {
       ^
Main.java:21: error: cannot find symbol
        BufferedReader br;
        ^
  symbol:   class BufferedReader
  location: class FastReader
Main.java:22: error: cannot find symbol
        StringTokenizer st;
        ^
  symbol:   class StringTokenizer
  location: class FastReader
Main.java:26: error: cannot find symbol
            br = new BufferedReader(new
                     ^
  symbol:   class BufferedReader
  location: class FastReader
Main.java:27: error: cannot find symbol
                    InputStreamReader(System.in));
                    ^
  symbol:   class InputStreamReader
  location: class FastReader
Main.java:36: error: cannot find symbol
                    st = new StringTokenizer(br.readLine());
                             ^
  symbol:   class StringTokenizer
  location: class FastReader
Main.java:38: error: cannot find symbol
                catch (IOException  e)
                       ^
  symbol:   class IOException
  location: class FastReader
Main.java:68: error: cannot find symbol
            catch (IOException e)
                   ^
  symbol:   class IOException
  location: class FastReader
8 errors
Language: Java

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;

public class q1 {

	public static void main(String[] args) {
		 FastReader s = new FastReader();
		 int n = s.nextInt();
		 int a = s.nextInt();
		 int b = s.nextInt();
		 
		 if(b-a >= n-1)
			 System.out.println("OK");
		 else
		 {
			 if(a%n==0 || ((a/n)+1)*n > a && ((a/n)+1)*n <= b)
				 System.out.println("OK");
			 else System.out.println("NG");
		 }

	}
	
	static class FastReader {
        BufferedReader br;
        StringTokenizer st;
 
        public FastReader()
        {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }
 
        String next()
        {
            while (st == null || !st.hasMoreElements())
            {
                try
                {
                    st = new StringTokenizer(br.readLine());
                }
                catch (IOException  e)
                {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }
 
        int nextInt()
        {
            return Integer.parseInt(next());
        }
 
        long nextLong()
        {
            return Long.parseLong(next());
        }
 
        double nextDouble()
        {
            return Double.parseDouble(next());
        }
 
        String nextLine()
        {
            String str = "";
            try
            {
                str = br.readLine();
            }
            catch (IOException e)
            {
                e.printStackTrace();
            }
            return str;
        }
	}

}


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

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

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

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

#include<bits/stdc++.h>
using namespace std;
#define int long long int
#define ld long double
#define F first
#define S second
#define P pair<int,int>
#define pb push_back
#define rep(i,n) for(int i=0;i<(n);++i)
#define repA(i,a,n) for(int i=a;i<=(n);++i)
#define repD(i,a,n) for(int i=a;i>=(n);--i)
const int N = 100005;
int32_t main()
{
    ios_base:: sync_with_stdio(false);
    cin.tie(NULL); cout.tie(NULL);
    //int t;cin>>t;while(t--)
    {
        int i, j, k, n, m,a,b, ans = 0, cnt = 0, sum = 0,b = 0,c = 0;
        cin >> k >> a >> b;
        j = b - a ;
        for(i = j ; i <=  b ;i++){
        	if(i % k == 0){
        		ans++;
        	}
        }
        if(ans > 0){
        	cout << "OK";
        }else{
        	cout<< "NG";
        }
    }
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:19:58: error: redeclaration of 'long long int b'
   19 |         int i, j, k, n, m,a,b, ans = 0, cnt = 0, sum = 0,b = 0,c = 0;
      |                                                          ^
a.cc:19:29: note: 'long long int b' previously declared here
   19 |         int i, j, k, n, m,a,b, ans = 0, cnt = 0, sum = 0,b = 0,c = 0;
      |                             ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define int long long int
#define ld long double
#define F first
#define S second
#define P pair<int,int>
#define pb push_back
#define rep(i,n) for(int i=0;i<(n);++i)
#define repA(i,a,n) for(int i=a;i<=(n);++i)
#define repD(i,a,n) for(int i=a;i>=(n);--i)
const int N = 100005;
int32_t main()
{
    ios_base:: sync_with_stdio(false);
    cin.tie(NULL); cout.tie(NULL);
    //int t;cin>>t;while(t--)
    {
        int i, j, k, n, m,a,b ans = 0, cnt = 0, sum = 0,b = 0,c = 0;
        cin >> k >> a >> b;
        j = b - a ;
        for(i = j ; i <=  b ;i++){
        	if(i % k == 0){
        		ans++;
        	}
        }
        if(ans > 0){
        	cout << "OK";
        }else{
        	cout<< "NG";
        }
    }
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:19:31: error: expected initializer before 'ans'
   19 |         int i, j, k, n, m,a,b ans = 0, cnt = 0, sum = 0,b = 0,c = 0;
      |                               ^~~
a.cc:20:26: error: 'b' was not declared in this scope
   20 |         cin >> k >> a >> b;
      |                          ^
a.cc:24:25: error: 'ans' was not declared in this scope; did you mean 'abs'?
   24 |                         ans++;
      |                         ^~~
      |                         abs
a.cc:27:12: error: 'ans' was not declared in this scope; did you mean 'abs'?
   27 |         if(ans > 0){
      |            ^~~
      |            abs
Language: C

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

Compiler output:
main.c:2:9: error: expected ';' before 'void'
    2 | int main void(){
      |         ^~~~~
      |         ;
main.c:2:15: error: expected identifier or '(' before ')' token
    2 | int main void(){
      |               ^
Language: Java

import java.io.*;

import java.math.BigInteger;
import java.util.*;

import java.util.ArrayList;

import java.util.Scanner;


public class main {

    static class FastReader {
        BufferedReader br;
        StringTokenizer st;

        public FastReader() {
            br = new BufferedReader(new
                    InputStreamReader(System.in));
        }

        String next() {
            while (st == null || !st.hasMoreElements()) {
                try {
                    st = new StringTokenizer(br.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
            return st.nextToken();
        }

        int nextInt() {
            return Integer.parseInt(next());
        }

        long nextLong() {
            return Long.parseLong(next());
        }

        double nextDouble() {
            return Double.parseDouble(next());
        }

        String nextLine() {
            String str = "";
            try {
                str = br.readLine();
            } catch (IOException e) {
                e.printStackTrace();
            }
            return str;
        }
    }

    static final int mod = 1000000007;

    public static int gcd(int a, int b)
    {
        if (a == 0)
            return b;
        return gcd(b % a, a);
    }


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

        int a=sc.nextInt();
        int b=sc.nextInt();
        int k=sc.nextInt();
        int d=b-a+1;
        if(d>=k)
            System.out.println("OK");
        else
            System.out.println("NG");

    }
}









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

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:7:1: error: 'cin' was not declared in this scope
    7 | cin>>K>>A>>B;
      | ^~~
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout<<"OK";
      | ^~~~
a.cc:11:1: error: 'cout' was not declared in this scope
   11 | cout<<"OK";
      | ^~~~
a.cc:14:1: error: 'cout' was not declared in this scope
   14 | cout<<"NG";
      | ^~~~
Language: C++

#include <bits/stdc++.h>
#define ll long long
#define V vector<long long>
#define VV vector<vector<long long>>
#define VVV vector<vector<vector<long long>>>
#define P pair<ll,ll>
#define rep(i,n) for(ll (i)=0;(i)<(n);++(i))
using namespace std;

int main() {
    ll n,m;
    cin>>n>>m;
    vector<P> ans;
    if(n%2){
        for(ll l=1,r=n-1;l<r;l++,r--){
            ans.push_back(P(l,r));
        }
    }else{
        for(ll l=1,r=n-1;l<r;l++,r--){
            if(r-l>n/2)ans.push_back(P(l,r));
            else ans.push_back(P(l,r-1));
        }
    }
    rep(i,m)cout<<ans[i].first<<" "<<ans[i].second<<endl;
}4


Compiler output:
a.cc:25:2: error: expected unqualified-id before numeric constant
   25 | }4
      |  ^
Language: C

#include<stdio.h>
int main()
{
    int k, a, b;
    scanf("%d%d%d",&k, &a, &b);
    int r = (b/k)*k;
    if(a<=r) printf("OK"\n);
    else printf("NG\n");
    return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:25: error: stray '\' in program
    7 |     if(a<=r) printf("OK"\n);
      |                         ^
main.c:7:25: error: expected ')' before 'n'
    7 |     if(a<=r) printf("OK"\n);
      |                    ~    ^~
      |                         )
Language: C

#include <stdio.h>
int main() {
int k, a, b;
scanf("%d", &k);
scanf("%d%d", &a, &b);
int r = (b / k) * k;
(a <= r) {
printf("OK\n");
} 
  else {
    printf("NG\n");
}

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:9: error: expected ';' before '{' token
    7 | (a <= r) {
      |         ^~
      |         ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: 'A' was not declared in this scope
    6 | cin >> K >> A >> B;
      |             ^
a.cc:14:1: error: 'else' without a previous 'if'
   14 | else{
      | ^~~~
Language: C++

int main() {
  ll A,B,N;
  cin >> A >> B >> N;
  ll x = min(B-1,N);
  
  cout << floor(A*x/B)-A*floor(x/B) << endl;
}


#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
const int MOD = 1e9 + 7;
int main() {
  ll A,B,N;
  cin >> A >> B >> N;
  
  ll max = 0;
  
  for(ll i=1; i<=N; i++){
    ll tmp = floor(A*i/B)-A*floor(i/B);
    if(max < tmp) max = i;
  }
  cout << max << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:3: error: 'll' was not declared in this scope
    2 |   ll A,B,N;
      |   ^~
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> A >> B >> N;
      |   ^~~
a.cc:3:10: error: 'A' was not declared in this scope
    3 |   cin >> A >> B >> N;
      |          ^
a.cc:3:15: error: 'B' was not declared in this scope
    3 |   cin >> A >> B >> N;
      |               ^
a.cc:3:20: error: 'N' was not declared in this scope
    3 |   cin >> A >> B >> N;
      |                    ^
a.cc:4:5: error: expected ';' before 'x'
    4 |   ll x = min(B-1,N);
      |     ^~
      |     ;
a.cc:6:3: error: 'cout' was not declared in this scope
    6 |   cout << floor(A*x/B)-A*floor(x/B) << endl;
      |   ^~~~
a.cc:6:19: error: 'x' was not declared in this scope
    6 |   cout << floor(A*x/B)-A*floor(x/B) << endl;
      |                   ^
a.cc:6:11: error: 'floor' was not declared in this scope
    6 |   cout << floor(A*x/B)-A*floor(x/B) << endl;
      |           ^~~~~
a.cc:6:40: error: 'endl' was not declared in this scope
    6 |   cout << floor(A*x/B)-A*floor(x/B) << endl;
      |                                        ^~~~
a.cc: At global scope:
a.cc:14:5: error: redefinition of 'int main()'
   14 | int main() {
      |     ^~~~
a.cc:1:5: note: 'int main()' previously defined here
    1 | int main() {
      |     ^~~~
Language: Java

import java.util.*;
import java.lang.*;
public class temp{
     public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c  =sc.nextInt();
        
        if((Math.abs(b/a-c/a) > 0) || b == c)
            System.out.println("OK");
        else
            System.out.println("NG");
     }
}

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

#include <bits/stdc++.h>
using namespace std;
#define ll long long int
ll A[101],B[101],C[101],D[101];
ll ans;
ll N,M,Q;
void dfs(vector<ll> v)
{
    // cout<<" hi"<<"";
    if(v.size()==N)
    {
        ll sum=0;
        for(ll i=0;i<Q;i++)
        {
            if (v[B[i]-1]-v[A[i]-1]==C[i])
            {
                sum+=D[i];
            }
        }
        ans=max(ans,sum);
    }
    else
    {
        for(ll i=v[v.size()-1];i<=M;i++)
        {
            vector<int> n=v;
            n.push_back(i);
            dfs(n);
        }
    }
}
int main() 
{  
    //freopen("input.txt","r",stdin);
    //freopen("output.txt","w",stdout);
    ans=INT_MIN;
    cin>>N>>M>>Q;
    for(ll i=0;i<Q;i++)
    {
        cin>>A[i]>>B[i]>>C[i]>>D[i];
    }
    for(ll i=1;i<=M;i++)
    {
        vector<ll> v;
        v.push_back(i);
        dfs(v);
    }
    cout<<ans<<" ";
}

Compiler output:
a.cc: In function 'void dfs(std::vector<long long int>)':
a.cc:26:27: error: conversion from 'vector<long long int>' to non-scalar type 'vector<int>' requested
   26 |             vector<int> n=v;
      |                           ^
a.cc:28:17: error: could not convert 'n' from 'vector<int>' to 'vector<long long int>'
   28 |             dfs(n);
      |                 ^
      |                 |
      |                 vector<int>
Language: Java

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

Compiler output:
Main.java:34: error: class, interface, enum, or record expected
}
^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
int A[101],B[101],C[101],D[101];
int ans;
int N,M,Q;
void dfs(vector<int> v)
{
    // cout<<" hi"<<"";
    if(v.size()==N)
    {
        int sum=0;
        for(int i=0;i<Q;i++)
        {
            if (v[B[i]-1]-v[A[i]-1]==C[i])
            {
                sum+=D[i];
            }
        }
        ans=max(ans,sum);
    }
    else
    {
        for(int i=v[v.size()-1];i<=M;i++)
        {
            vector<int> n=v;
            n.push_back(i);
            dfs(n);
        }
    }
}
int main() 
{  
    .//freopen("input.txt","r",stdin);
    //freopen("output.txt","w",stdout);
    ans=INT_MIN;
    cin>>N>>M>>Q;
    for(int i=0;i<Q;i++)
    {
        cin>>A[i]>>B[i]>>C[i]>>D[i];
    }
    for(int i=1;i<=M;i++)
    {
        vector<int> v;
        v.push_back(i);
        dfs(v);
    }
    cout<<ans<<" ";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:5: error: expected primary-expression before '.' token
   33 |     .//freopen("input.txt","r",stdin);
      |     ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:35: error: lvalue required as left operand of assignment
    6 |   if(A <= K <= B || (B-A) / K > 0 || K = 1)
      |      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~
Language: C++

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

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

#include<iostream>
using namespace sdt;

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

Compiler output:
a.cc:2:17: error: 'sdt' is not a namespace-name
    2 | using namespace sdt;
      |                 ^~~
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;
      |   ^~~
      |   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:11:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   11 |     cout<<"OK\n";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:14:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   14 |     cout<<"NG\n";
      |     ^~~~
      |     std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected primary-expression before '?' token
    6 |   if(A < K < B ?? (B-A) / K > 0)
      |                 ^
a.cc:6:32: error: expected ':' before ')' token
    6 |   if(A < K < B ?? (B-A) / K > 0)
      |                                ^
      |                                :
a.cc:6:32: error: expected primary-expression before ')' token
a.cc:6:32: error: expected ':' before ')' token
    6 |   if(A < K < B ?? (B-A) / K > 0)
      |                                ^
      |                                :
a.cc:6:32: error: expected primary-expression before ')' token
Language: C++

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected primary-expression before '?' token
    6 |   if(A < K < B ?? (B-A) % K < B - A:)
      |                 ^
a.cc:6:37: error: expected primary-expression before ')' token
    6 |   if(A < K < B ?? (B-A) % K < B - A:)
      |                                     ^
a.cc:6:37: error: expected ':' before ')' token
    6 |   if(A < K < B ?? (B-A) % K < B - A:)
      |                                     ^
      |                                     :
a.cc:6:37: error: expected primary-expression before ')' token
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected primary-expression before '?' token
    6 |   if(A < K < B ?? (B-A) % K < B - A)
      |                 ^
a.cc:6:36: error: expected ':' before ')' token
    6 |   if(A < K < B ?? (B-A) % K < B - A)
      |                                    ^
      |                                    :
a.cc:6:36: error: expected primary-expression before ')' token
a.cc:6:36: error: expected ':' before ')' token
    6 |   if(A < K < B ?? (B-A) % K < B - A)
      |                                    ^
      |                                    :
a.cc:6:36: error: expected primary-expression before ')' token
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: expected primary-expression before '?' token
    6 |   if(A < K < B ?? (B-A) % K < K)
      |                 ^
a.cc:6:32: error: expected ':' before ')' token
    6 |   if(A < K < B ?? (B-A) % K < K)
      |                                ^
      |                                :
a.cc:6:32: error: expected primary-expression before ')' token
a.cc:6:32: error: expected ':' before ')' token
    6 |   if(A < K < B ?? (B-A) % K < K)
      |                                ^
      |                                :
a.cc:6:32: error: expected primary-expression before ')' token
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: 'OK' was not declared in this scope; did you mean 'K'?
    7 |     cout << OK << endl;
      |             ^~
      |             K
a.cc:9:13: error: 'NG' was not declared in this scope
    9 |     cout << NG << endl;
      |             ^~
Language: C++

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

int main()
{
    int n, l, r;
    cin>>n>>l>>r;
    for(int i=l; i<=r; i++)
    {
        if(i%n==0)
        {
            cout<<"YES";
            return 0;
        }
    }
    cout<<"NG";
    return 0;
}

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