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

#include <bits/stdc++.h>
#define int long long int
#define gif(a,b) (a/b +(a%b?1:0))
using namespace std;

int32_t main()
{   
    int t;
    cin >> t;
    int a, b;
    cin >> a >> b:
    b = (b/t)*t ;
    if(a <= b)
    cout << "OK";
    else 
    cout << "NG";
   return 0;
}


Compiler output:
a.cc: In function 'int32_t main()':
a.cc:11:18: error: found ':' in nested-name-specifier, expected '::'
   11 |     cin >> a >> b:
      |                  ^
      |                  ::
a.cc:11:17: error: 'b' is not a class, namespace, or enumeration
   11 |     cin >> a >> b:
      |                 ^
Language: C++

#include <iostream>
using namespace std;

int main() {
  int a,b,k,x;
  cin >> k;
  cin >> a,b;
    x == b / k * k
  if(x>a){
    cout << 'OK' << endl;
  }else{
    cout << 'NG' << endl;
  }

  return 0;
}


Compiler output:
a.cc:10:13: warning: multi-character character constant [-Wmultichar]
   10 |     cout << 'OK' << endl;
      |             ^~~~
a.cc:12:13: warning: multi-character character constant [-Wmultichar]
   12 |     cout << 'NG' << endl;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:8:19: error: expected ';' before 'if'
    8 |     x == b / k * k
      |                   ^
      |                   ;
    9 |   if(x>a){
      |   ~~               
a.cc:11:4: error: 'else' without a previous 'if'
   11 |   }else{
      |    ^~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
  int a,b,k;
  cin >> k,a,b >> endl;
  if(b/k*k>a){
    cout << 'OK' << endl;
  }else{
    cout << 'NG' << endl;
  }

  return 0;
}


Compiler output:
a.cc:8:13: warning: multi-character character constant [-Wmultichar]
    8 |     cout << 'OK' << endl;
      |             ^~~~
a.cc:10:13: warning: multi-character character constant [-Wmultichar]
   10 |     cout << 'NG' << endl;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:6:16: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator>>'
    6 |   cin >> k,a,b >> endl;
      |              ~~^~~~~~~
Language: C++

#include <iostream>
using namespace std;

int main() {
  int a,b,k;
  cin >> k;
  cin >> a,b >> endl;
  if(b/k*k>a){
    cout << 'OK' << endl;
  }else{
    cout << 'NG' << endl;
  }

  return 0;
}


Compiler output:
a.cc:9:13: warning: multi-character character constant [-Wmultichar]
    9 |     cout << 'OK' << endl;
      |             ^~~~
a.cc:11:13: warning: multi-character character constant [-Wmultichar]
   11 |     cout << 'NG' << endl;
      |             ^~~~
a.cc: In function 'int main()':
a.cc:7:14: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator>>'
    7 |   cin >> a,b >> endl;
      |            ~~^~~~~~~
Language: C++

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

Compiler output:
a.cc:2:1: error: 'include' does not name a type
    2 | include <bits/stdc++.h>
      | ^~~~~~~
Language: C++

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

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

Compiler output:
a.cc:2:1: error: 'include' does not name a type
    2 | include <bits/stdc++.h>
      | ^~~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected primary-expression before '>' token
    9 |   if(largest => A){
      |               ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:27: error: 'andl' was not declared in this scope
   10 |   if(ans) cout << "OK" << andl;
      |                           ^~~~
Language: Java

import java.util.Scanner;
public class Main {

    public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
        int a = sc.nextInt();
        int b = sc.nextInt();
        int k = sc.nextInt();
      
      if(i % k == 0 && a>= 0 && b ){
      System.out.println("OK");
      }
      else{
      System.out.println("NG");
      }
    }

Compiler output:
Main.java:17: error: reached end of file while parsing
    }
     ^
1 error
Language: Java

package ojt.AtCoder;
import java.util.Scanner;
public class test_165 {
	public static void main(String[] args){

	//変数K,A,Bの読み込み
		Scanner sc = new Scanner(System.in);
		int K = sc.nextInt();
		int A = sc.nextInt();
		int B = sc.nextInt();

	//AからBの中にKの倍数があるか1つずつ確かめる
		for(int i = A ; i <= B ; i++) {
		  if(i % K == 0) {
			  System.out.println("OK");
			  return ;  //Kの倍数があれば終わる
		  }
		}

	//Kの倍数がなければこっちの処理
		System.out.println("NG");
	}
}


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

import java.util.Scanner;
public class Golf_165A {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ

		Scanner scan = new Scanner(System.in);
		int k = scan.nextInt();
		int a = scan.nextInt();
		int b = scan.nextInt();

for(int i=a;i<=b;i++) {
 if(i%k == 0) {
	 System.out.println("YES");
	 return;
 }
}

	 System.out.println("NO");
return;
	}
}


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


#include <bits/stdc++.h>
#define rep(i,n) for (int i = 0; i < (n); ++i)
#define rep1(i,n) for (int i = 1; i <= (n); ++i)

using namespace std;
using ll = long long;
using P = pair<int,int>;
using ull= unsigned long long;
const ll K_MAX=1e5+5;



int main(){
  int k,a,b;
  cin>>k>>a>>b;
  
  for(int i==a; i<=b;i++){
    if (i==k){
      cout<<"Yes"<<endl;
      return 0;
      
    }
    
  }
 cout<<"No"<<endl;
  return 0;
  
 
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:12: error: expected ';' before '==' token
   18 |   for(int i==a; i<=b;i++){
      |            ^~
      |            ;
a.cc:18:12: error: expected primary-expression before '==' token
   18 |   for(int i==a; i<=b;i++){
      |            ^~
a.cc:18:21: error: expected ')' before ';' token
   18 |   for(int i==a; i<=b;i++){
      |      ~              ^
      |                     )
a.cc:18:22: error: 'i' was not declared in this scope
   18 |   for(int i==a; i<=b;i++){
      |                      ^
Language: C++

#include <bits/stdc++.h>

#define rep(i,n) for (int i = 0; i < (n); ++i)
using namespace std;
 
int main() {
  double x;
  cin >> x;
  int64_t s = 100;
  rep (i,3761) {
    s  = s * 1.01;
    if (s > 1000000000000000000) {
    cout << i + 1 << endl;
      bresk;
    }
    
  }
  
  
     
    }

Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: 'bresk' was not declared in this scope; did you mean 'brk'?
   14 |       bresk;
      |       ^~~~~
      |       brk
Language: C++

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

long long int k,a,b;

signed main()
{
    ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	
	cin>>k>>a>>b;
	if (a%k==0 || b%k==0) || a/k<b/k) cout<<"OK";else cout<<"NG";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:31: error: expected primary-expression before '||' token
   13 |         if (a%k==0 || b%k==0) || a/k<b/k) cout<<"OK";else cout<<"NG";
      |                               ^~
Language: C++

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

long long int k,a,b;

signed main()
{
    ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	
	cin>>k>>a>>b;
	if (a%k==0 || b%k==0) cout<<"OK",return 0;
	if (a/k<b/k) cout<<"OK";else cout<<"NG";
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:42: error: expected primary-expression before 'return'
   13 |         if (a%k==0 || b%k==0) cout<<"OK",return 0;
      |                                          ^~~~~~
Language: C++

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

long long GCD(long long a, long long b) 
{ 
    if(b==0) 
        return a; 
    return GCD(b, a % b);  
      
}

long long LCM(long long a, long long b)
{
    long long gcd=GCD(a,b);
     return (a*b)/gcd;
}

int main()
{
    int i, j, k, n, m, t, x1, y1, x2, y2, s=0, c=0, l;
    cin >> n >> x >> y;
    for(i=x; i<=y; i++)
    {
        if(i%n==0)
        {
            s++;
            break;
        }
    }
    if(s==0)
        cout << "NG\n";
    else
    {
        cout << "OK\n";
    }
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:17: error: 'x' was not declared in this scope
   21 |     cin >> n >> x >> y;
      |                 ^
a.cc:21:22: error: 'y' was not declared in this scope
   21 |     cin >> n >> x >> y;
      |                      ^
Language: Java

import java.util.*;

public class AtCoderBeginnerContest165 {
    /**
     * AtCoder Beginner Contest 165
     */
    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 i = 0;
        while ( i * K <= B) {
            int result = i * K;
            if ( A <= result && result <= B) {
                System.out.println("OK");
                return;
            }
            i++;
        }
        System.out.println("NG");
    }
}


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

#include <stdio.h>
int main(void)
{

  int k;
  int a;
  int b;
  int x;
  int flag = 0;

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

  for (x = a; x <= b; x++){
    if (x % k == 0) c+= 1;
  }

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

  return 0;

}


Compiler output:
main.c: In function 'main':
main.c:14:21: error: 'c' undeclared (first use in this function)
   14 |     if (x % k == 0) c+= 1;
      |                     ^
main.c:14:21: note: each undeclared identifier is reported only once for each function it appears in
Language: Java

import java.util.Scanner;

public class App {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int K = sc.nextInt();
        int A = sc.nextInt();
        int B = sc.nextInt();

        boolean TF = false;
        
        for (int i = A; i <= B; i++) {
            if(i % K == 0) {
                TF = true;
                break;
            } 
        }

        if (TF) {
            System.out.println("OK");
        } else {
            System.out.println("NG");
        }
    }
}


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

import java.util.Scanner;

public class Main {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int K = sc.nextInt();
        int A = sc.nextInt();
        int B = sc.nextInt();

        boolean TF = false;
        
        for (int i = A; i <= B; i++) {
            if(i % K == 0) {
                TF = true;
                break;
            } 
        }

        if (TF) {
            System.out.println("OK");
        } else {
            System.out.println("NG");
        }
    }

Compiler output:
Main.java:25: error: reached end of file while parsing
    }
     ^
1 error
Language: Java

import java.util.Scanner;

public class App {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int K = sc.nextInt();
        int A = sc.nextInt();
        int B = sc.nextInt();

        boolean TF = false;
        
        for (int i = A; i <= B; i++) {
            if(i % K == 0) {
                TF = true;
                break;
            } 
        }

        if (TF) {
            System.out.println("OK");
        } else {
            System.out.println("NG");
        }
    }

Compiler output:
Main.java:25: error: reached end of file while parsing
    }
     ^
1 error
Language: Java

import java.util.Scanner;

public class App {
    public static void main(String[] args) throws Exception {
        Scanner sc = new Scanner(System.in);
        
        int K = sc.nextInt();
        int A = sc.nextInt();
        int B = sc.nextInt();

        boolean TF = false;
        
        for (int i = A; i <= B; i++) {
            if(i % K == 0) {
                TF = true;
                break;
            } 
        }

        if (TF) {
            System.out.println("OK");
        } else {
            System.out.println("NG");
    }
}

Compiler output:
Main.java:25: error: reached end of file while parsing
}
 ^
1 error
Language: C++

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

  int L = (B/K)*K;
  
  if (a <= L) { 
    cout << "OK" << endl;
  }
  else {
    cout << "NG" << endl;
  }
  
}
  
  
  

Compiler output:
a.cc: In function 'int main()':
a.cc:10:7: error: 'a' was not declared in this scope
   10 |   if (a <= L) {
      |       ^
Language: C++

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

int main() {
    // freopen("leep.in", "r", stdin);
    // freopen("leep.out", "w", stdout);
    int x;
    cin >> x;
    int a, b;
    for (int i = a; i <= b; i++) {
        if (i % k == 0) {
            return printf("OK\n"), 0;
        }
    }
    printf("NG\n");
    return 0;
}


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

#include<iostream>
using namespace std;
int main()
{
  int n,a,b;
  cin>>n>>a>>b;
  a--;
  b++;
  
  if((b/n - a/n) > 0)
    cout<<"OK\n";
  else
    cout<<"NG\n
;
}

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: lvalue required as left operand of assignment
    8 |         if(a+b%k=0){cout << "OK" << endl;} else{cout << "NG" << endl;}
      |            ~^~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:27: error: expected ';' before 'if'
    7 |         cin >> k >> a >> b
      |                           ^
      |                           ;
    8 |         if(a+b%k=0){cout << "OK" << endl;} else{cout << "NG" << endl;}
      |         ~~                 
a.cc:8:44: error: 'else' without a previous 'if'
    8 |         if(a+b%k=0){cout << "OK" << endl;} else{cout << "NG" << endl;}
      |                                            ^~~~
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:42: error: 'return0' was not declared in this scope
    9 |         if( a++ % k == 0 ){cout << "OK"; return0 ;}
      |                                          ^~~~~~~
Language: C++

#include<iostream>
#include<string>
#include<vector>
using namesapce std;

int main(void){
  int K,A,B;
  cin>>K;
  cin>>A,B;
  for(int i=1;i*K<=B;++i){
    if(A<=K*i&&K*i<=B){
      cout<<"OK\n";
    return 0;
    }
  }
  cout<<"NG\n";
  
}


Compiler output:
a.cc:4:7: error: expected nested-name-specifier before 'namesapce'
    4 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin>>K;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:12:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |       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:16:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |   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<iostream>
#include<string>
#include<vector>
using namesapce std;

int main(void){
  int K,A,B;
  cin>>K;
  cin>>A,B;
  for(int i=1;i*K<B;++i){
    if(A<=K*i&&K*i<=B){
      cout<<"OK\n";
    return 0;
    }
  }
  cout<<"NG\n";
  
}

Compiler output:
a.cc:4:7: error: expected nested-name-specifier before 'namesapce'
    4 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin>>K;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:12:7: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |       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:16:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   16 |   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 <stdio.h>
int main () {
  int i,j,hi,a;
  scanf("%d",&hi); 　　　　//hiは高さ
  for(i=1;i<=hi;i++){     //iが何行目かを知らせる
    for(j=1;j<=hi-i;j++){ //高さ-何行目かで空白を作る
      printf(" ");
      }    
      for(a=1;a<i*2;a++){ //iの2倍-1個の*をプリント
        printf("*");      
    }
    printf("\n");
  }
  return 0;
  }

Compiler output:
main.c: In function 'main':
main.c:4:20: error: stray '\343' in program
    4 |   scanf("%d",&hi); <U+3000><U+3000><U+3000><U+3000>//hi<U+306F><U+9AD8><U+3055>
      |                    ^~~~~~~~
main.c:4:22: error: stray '\343' in program
    4 |   scanf("%d",&hi); <U+3000><U+3000><U+3000><U+3000>//hi<U+306F><U+9AD8><U+3055>
      |                            ^~~~~~~~
main.c:4:24: error: stray '\343' in program
    4 |   scanf("%d",&hi); <U+3000><U+3000><U+3000><U+3000>//hi<U+306F><U+9AD8><U+3055>
      |                                    ^~~~~~~~
main.c:4:26: error: stray '\343' in program
    4 |   scanf("%d",&hi); <U+3000><U+3000><U+3000><U+3000>//hi<U+306F><U+9AD8><U+3055>
      |                                            ^~~~~~~~
Language: C

#include <stdio.h>

void PrintOutput(int inputK, int inputA, int inputB, int multiplyA, int multiplyB)
{
	if (inputK * multiplyA == inputA)
	{
		printf_s("OK \n");
	}
	else if (inputK * (multiplyA + 1) <= inputB)
	{
		printf_s("OK \n");
	}
	else
	{
		printf_s("NG \n");
	}
}

void StartProgram()
{
	int inputK, inputA, inputB, multiplyA, multiplyB;

	printf_s("Enter the value of K \n");
	scanf("%d", &inputK);
	printf_s("Enter the value of A and B \n");
	scanf("%d %d", &inputA, &inputB);

	if (inputK > 1000 || inputK < 1)
	{
		printf_s("Wrong input... \n");
		StartProgram();
	}
	else if (inputB > 1000 || inputB < 1 || inputA < 1)
	{
		printf_s("Wrong input... \n");
		StartProgram();
	}
	else if (inputA > inputB)
	{
		printf_s("Wrong input... \n");
		StartProgram();
	}

	multiplyA = inputA / inputK;
	multiplyB = inputB / inputK;

	PrintOutput(inputK, inputA, inputB, multiplyA, multiplyB);
}

int main(int argc, const char* argv[]) {

	StartProgram();

	return 0;
}

Compiler output:
main.c: In function 'PrintOutput':
main.c:7:17: error: implicit declaration of function 'printf_s'; did you mean 'printf'? [-Wimplicit-function-declaration]
    7 |                 printf_s("OK \n");
      |                 ^~~~~~~~
      |                 printf
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:14: error: 'K' was not declared in this scope
    8 |         if(i%K==0) flg = true;
      |              ^
Language: C++

#include<bits/stdc++.h>

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:14: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   int k,a,b; cin >> k; cin >> 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:7:14: error: 'K' was not declared in this scope
    7 |         if(i%K==0) flg = true;
      |              ^
a.cc:9:11: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   if(flg) 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:10:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |   else cout << "NG";
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C

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

#define ll long long
#define pb push_back
#define iter std::vector<int>::iterator

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

	int d, a, b;

	cin >> d >> a >> b;

	for (int i = a; i <= b; i++) {
		if (i % d == 0) {
			cout << "OK";
			return 0;
		}
	}

	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<stdio.h>
int main()
{
  int a,b,k,n;
  scanf("%d %d %d",&k,&a,&b);
  while(b>=a){
    a=a+1;
    a++;
    if((n%k)=0){
      if(a<=n<=b){
      break;
      printf("OK\n");
      }
      else{
        printf("NG\n");
      }
    }
    else{
      printf("NG\n");
    }
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:13: error: lvalue required as left operand of assignment
    9 |     if((n%k)=0){
      |             ^
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:12: error: expected expression before '=' token
    9 |     if(n%k)=0){
      |            ^
main.c:9:14: error: expected statement before ')' token
    9 |     if(n%k)=0){
      |              ^
main.c:18:5: error: 'else' without a previous 'if'
   18 |     else{
      |     ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:11:21: error: expected ';' before '}' token
   11 |       printf("OK\n")
      |                     ^
      |                     ;
   12 |     }
      |     ~                
main.c:14:21: error: expected ';' before '}' token
   14 |       printf("NG\n")
      |                     ^
      |                     ;
   15 |     }
      |     ~                
main.c:17:11: error: expected ';' before '}' token
   17 |   return 0
      |           ^
      |           ;
   18 | }
      | ~
Language: C++

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

int main(){
  int k;
  cin>>k;
  int a,b;
  cin>>a>>b;
  if(k==1){
    cout<<"OK\n";
  }
  else{
    for(int 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:19:5: error: 'else' without a previous 'if'
   19 |     else{
      |     ^~~~
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main  {
 public static void main(String[] args) throws IOException { 
   BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
   int k = Integer.parseInt(reader.readLine());
   String[] s = reader.readLine().split(" ");
   int a = Integer.parseInt(s[0]);
   int b = Integer.parseInt(s[1]);
   if (a % k == 0 || b % k == 0)
     System.out.println("OK");
  	else {
      int i = 1, product = k;
      boolean flag = false;
      while (!flag && product <= b) {
        product = k * i;
        if (product >= a && product <= b) {
          flag = true;
          break;
        }
       	i++;
      }
      if (flag == true) System.out.println("OK");
      else System.out.println("NG");
    }
 }
}


Compiler output:
Main.java:5: error: cannot find symbol
 public static void main(String[] args) throws IOException { 
                                               ^
  symbol:   class IOException
  location: class Main
1 error
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main  {
 public static void main(String[] args) { 
   BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
   int k = Integer.parseInt(reader.readLine());
   String[] s = reader.readLine().split(" ");
   int a = Integer.parseInt(s[0]);
   int b = Integer.parseInt(s[1]);
   if (a % k == 0 || b % k == 0)
     System.out.println("OK");
  	else {
      int i = 1, product = k;
      boolean flag = false;
      while (!flag && product <= b) {
        product = k * i;
        if (product >= a && product <= b) {
          flag = true;
          break;
        }
       	i++;
      }
      if (flag == true) System.out.println("OK");
      else System.out.println("NG");
    }
 }
}


Compiler output:
Main.java:7: error: unreported exception IOException; must be caught or declared to be thrown
   int k = Integer.parseInt(reader.readLine());
                                           ^
Main.java:8: error: unreported exception IOException; must be caught or declared to be thrown
   String[] s = reader.readLine().split(" ");
                               ^
2 errors
Language: Java

import java.io.BufferedReader;
import java.io.InputStreamReader;

public class Main  {
 public static void main(String[] args) { 
   BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
   int k = Integer.parseInt(reader.readLine());
   String[] s = reader.readLine().split(" ");
   int a = Integer.parseInt(s[0]);
   int b = Integer.parseInt(s[1]);
   if (a % k == 0 || b % k == 0)
     System.out.println("OK");
  	else {
      int i = 1, product = k;
      boolean flag = flag;
      while (!flag && product <= b) {
        product = k * i;
        if (product >= a && product <= b) {
          flag = true;
          break;
        }
       	i++;
      }
      if (flag == true) System.out.println("OK");
      else System.out.println("NG");
    }
 }
}

Compiler output:
Main.java:15: error: variable flag might not have been initialized
      boolean flag = flag;
                     ^
Main.java:7: error: unreported exception IOException; must be caught or declared to be thrown
   int k = Integer.parseInt(reader.readLine());
                                           ^
Main.java:8: error: unreported exception IOException; must be caught or declared to be thrown
   String[] s = reader.readLine().split(" ");
                               ^
3 errors
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:10:21: error: expected ';' before '}' token
   10 |       printf("NG\n")
      |                     ^
      |                     ;
   11 |     }
      |     ~                
main.c:16:17: error: expected ';' before 'retuern'
   16 |   printf("OK\n")
      |                 ^
      |                 ;
   17 |     retuern 0;
      |     ~~~~~~~      
main.c:18:1: error: expected declaration or statement at end of input
   18 | }
      | ^
Language: C

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

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

#include<iostream>
using namespace std;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:9:32: error: expected ';' before 'break'
    9 |                         check=1
      |                                ^
      |                                ;
   10 |                         break;
      |                         ~~~~~
Language: C

#include<iostream>
using namespace std;
bool solve(int k ,int a ,int b){
  for(int i=a;i<=b;i++){
    if(a%k==0){
      return true;
    }
    else{
      return false;
    }
 }
int main(){
  int k,a,b;
  cin>>k;
  cin>>a>>b;
  cout<<solve(k,a,b)?"YES":"NO";
}

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

#include <iostream>
using namespace std; 
  

int main() 
{ 
  	 int k, a, b, i;
    cout<<"Enter an integer: ";
    cin>>>>k>>a>>b;;
    for(i>a;i<b;i++)
    {
        if(n%i==0)
        {
            cout<<i<<" ";
        }
    }
    cout<<endl;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: expected primary-expression before '>>' token
    9 |     cin>>>>k>>a>>b;;
      |          ^~
a.cc:12:12: error: 'n' was not declared in this scope
   12 |         if(n%i==0)
      |            ^
Language: C++

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

int main() {

  int k,a,b,p,q,x;
	cin >> k >> a >> b;
	x=0
	p=a/k;
	q=b/k;
	if(a%k==0){
	x=1;
	}
	if(b%k==0){
	x=1;
	}
	if(q-p>=1){
	x=1;
	}
	if(x==1){
	cout << "OK" << endl;
	}
	else{
	cout << "NG" << endl;
	}

}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: expected ';' before 'p'
    8 |         x=0
      |            ^
      |            ;
    9 |         p=a/k;
      |         ~
Language: C++

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

int main() {

  int k,a,b,p,q;
	cin >> k >> a >> b;
	
	p=a/k;
	q=b/k;
	if(a%k==0){
	cout << "OK" << endl;
	}
	elseif(b%k==0){
	cout << "OK" << endl;
	}
	elseif(q-p>=1){
	cout << "OK" << endl;
	}
	else{
	cout << "NG" << endl;
	}

}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'elseif' was not declared in this scope
   14 |         elseif(b%k==0){
      |         ^~~~~~
a.cc:20:9: error: 'else' without a previous 'if'
   20 |         else{
      |         ^~~~
Language: C++

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

int main() {

  int k,a,b,p,q;
	cin >> k >> a >> b;
	
	p=a/k;
	q=b/k;
	if(a%k=0){
	cout << "OK" << endl;
	}
	elseif(b%k=0){
	cout << "OK" << endl;
	}
	elseif(q-p>=1){
	cout << "OK" << endl;
	}
	else{
	cout << "NG" << endl;
	}

}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: lvalue required as left operand of assignment
   11 |         if(a%k=0){
      |            ~^~
a.cc:14:17: error: lvalue required as left operand of assignment
   14 |         elseif(b%k=0){
      |                ~^~
a.cc:14:9: error: 'elseif' was not declared in this scope
   14 |         elseif(b%k=0){
      |         ^~~~~~
a.cc:20:9: error: 'else' without a previous 'if'
   20 |         else{
      |         ^~~~
Language: C++

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

int main() {

  int k,a,b,p,q;
	cin >> k >> a >> b;
	
	p=a/k;
	q=b/k;
	if(a%k=0){
	cout << "OK" << endl;
	}
	else(b%k=0){
	cout << "OK" << endl;
	}
	else(q-p>=1){
	cout << "OK" << endl;
	}
	else{
	cout << "NG" << endl;
	}

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: lvalue required as left operand of assignment
   11 |         if(a%k=0){
      |            ~^~
a.cc:14:15: error: lvalue required as left operand of assignment
   14 |         else(b%k=0){
      |              ~^~
a.cc:17:9: error: 'else' without a previous 'if'
   17 |         else(q-p>=1){
      |         ^~~~
a.cc:17:21: error: expected ';' before '{' token
   17 |         else(q-p>=1){
      |                     ^
      |                     ;
a.cc:20:9: error: 'else' without a previous 'if'
   20 |         else{
      |         ^~~~
Language: C++

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

int main() {

  int k,a,b,p,q;
	cin >> k >> a >> b;
	
	p=a/k;
	q=b/k;
	if(a%k=0){
	cout << "OK" << endl;
	return0;
	}
	if(b%k=0){
	cout << "OK" << endl;
	return0;
	}
	if(q-p>=1){
	cout << "OK" << endl;
	}
	else{
	cout << "NG" << endl;
	}

}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: lvalue required as left operand of assignment
   11 |         if(a%k=0){
      |            ~^~
a.cc:13:9: error: 'return0' was not declared in this scope
   13 |         return0;
      |         ^~~~~~~
a.cc:15:13: error: lvalue required as left operand of assignment
   15 |         if(b%k=0){
      |            ~^~
a.cc:17:9: error: 'return0' was not declared in this scope
   17 |         return0;
      |         ^~~~~~~
Language: C++

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

int main() {

  int k,a,b,p,q;
	cin >> k >> a >> b;
	
	p=a/k;
	q=b/k
	if(q-p>=1){
	cout << "OK" << endl;
	}
	else{
	cout << "NG" << endl;
	}

}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: expected ';' before 'if'
   10 |         q=b/k
      |              ^
      |              ;
   11 |         if(q-p>=1){
      |         ~~    
a.cc:14:9: error: 'else' without a previous 'if'
   14 |         else{
      |         ^~~~
Language: C

#include <stdio.h>
 
int main() {
  int K, A, B, i;
  scanf("%d", &K);
  scanf("%d %d", &A, &B);
  
  for (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:9:14: error: 'k' undeclared (first use in this function)
    9 |     if ((i % k) == 0) {
      |              ^
main.c:9:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include <stdio.h>

int main() {
  int K, A, B, i;
  scanf("%d", K);
  scanf("%d %d", A, B);
  
  for (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:9:14: error: 'k' undeclared (first use in this function)
    9 |     if ((i % k) == 0) {
      |              ^
main.c:9:14: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <regex>
#include <set>

using namespace std;

int main()
{
    int k;
    std::cin >> k;
    std::cin >> a >> b;
    bool ans(false);

    for(int i = a; i <= b; i++)
    {
        if(i % k == 0)
        {
            ans = true;
            break;
        }
    }

    if(ans)
    {
        std::cout << "OK";
    } else
    {
        std::cout << "NG";
    }
    

    return EXIT_SUCCESS;
} 


Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: 'a' was not declared in this scope
   14 |     std::cin >> a >> b;
      |                 ^
a.cc:14:22: error: 'b' was not declared in this scope
   14 |     std::cin >> a >> b;
      |                      ^
Language: C++

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <regex>
#include <set>

using namespace std;

int main()
{
    int k;
    std::cin >> k;
    std::cin >> a >> b;
    bool ans(false);

    for(int i = a; i <= b; i++)
    {
        if(i % k == 0)
        {
            ans = true;
            break;
        }
    }

    if(ans)
    {
        std::cout << "Yes";
    } else
    {
        std::cout << "No";
    }
    

    return EXIT_SUCCESS;
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:14:17: error: 'a' was not declared in this scope
   14 |     std::cin >> a >> b;
      |                 ^
a.cc:14:22: error: 'b' was not declared in this scope
   14 |     std::cin >> a >> b;
      |                      ^
Language: C++

#include <bits/stdc++.h>
 
 
using namesapce std;
 
int main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    
    int k;
    cin >> k;
    int a,b;
    cin >> a >> b;
    int ans = (b / k) - (a - 1) / k;
    if(ans > 0)
       cout << "OK";
    else
     cout << "NG";
    
    
}

Compiler output:
a.cc:4:7: error: expected nested-name-specifier before 'namesapce'
    4 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:5: error: 'ios' has not been declared
    8 |     ios::sync_with_stdio(0);
      |     ^~~
a.cc:9:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |     cin.tie(0);
      |     ^~~
      |     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:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout.tie(0);
      |     ^~~~
      |     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 namesapce std;

int main()
{
    ios::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);
    
    int k;
    cin >> k;
    cin >> a >> b;
    int ans = (b / k) - (a - 1) / k;
    if(ans > 0)
       cout << "OK";
    else
     cout << "NG";
    
    
}

Compiler output:
a.cc:4:7: error: expected nested-name-specifier before 'namesapce'
    4 | using namesapce std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:5: error: 'ios' has not been declared
    8 |     ios::sync_with_stdio(0);
      |     ^~~
a.cc:9:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    9 |     cin.tie(0);
      |     ^~~
      |     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:10:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |     cout.tie(0);
      |     ^~~~
      |     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:12: error: 'a' was not declared in this scope
   14 |     cin >> a >> b;
      |            ^
a.cc:14:17: error: 'b' was not declared in this scope
   14 |     cin >> a >> b;
      |                 ^
Language: C

#include <stdio.h>

int main(){
  int k, a, b, i;
  bool c;
  
  scanf("%d", &k);
  scanf("%d %d", &a, &b);
  
  for(i = a;i <= b;i++){
    if((i % k) == 0){
      c = true;
      break;
    }
  }
  
  if(c == true)
    printf("OK");
  else
    printf("NG");

Compiler output:
main.c: In function 'main':
main.c:5:3: error: unknown type name 'bool'
    5 |   bool c;
      |   ^~~~
main.c:2:1: note: 'bool' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
    1 | #include <stdio.h>
  +++ |+#include <stdbool.h>
    2 | 
main.c:12:11: error: 'true' undeclared (first use in this function)
   12 |       c = true;
      |           ^~~~
main.c:12:11: note: 'true' is defined in header '<stdbool.h>'; this is probably fixable by adding '#include <stdbool.h>'
main.c:12:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:20:5: error: expected declaration or statement at end of input
   20 |     printf("NG");
      |     ^~~~~~
Language: C

#include <stdio.h>
int main(void) {
    int k, a, b;
    scanf_s("%d", &k);
    scanf_s("%d %d", &a, &b);

    if (b / k > (a - 1) / k)printf_s("OK\n");
    else printf_s("NG\n");

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:5: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    4 |     scanf_s("%d", &k);
      |     ^~~~~~~
      |     scanf
main.c:7:29: error: implicit declaration of function 'printf_s'; did you mean 'printf'? [-Wimplicit-function-declaration]
    7 |     if (b / k > (a - 1) / k)printf_s("OK\n");
      |                             ^~~~~~~~
      |                             printf
Language: Java

ort java.util.Scanner;
 
public class Main { //クラス名はMain
    public static void main(String[] args) {
    Scanner in = new Scanner(System.in);
      int K = in.nextInt();
      int A = in.nextInt();
      int B = in.nextInt();
     
       if (B/K - A/K >= 1)
            System.out.println("OK");
       else
            System.out.println("NG");
    }
}

Compiler output:
Main.java:1: error: class, interface, enum, or record expected
ort java.util.Scanner;
^
1 error
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:10: error: expected primary-expression before '<' token
   15 |     if(a=<K&&K=<b) {
      |          ^
a.cc:15:16: error: expected primary-expression before '<' token
   15 |     if(a=<K&&K=<b) {
      |                ^
Language: Java

import java.util.Scanner;

class Main{
  public static main(String[] args){
    Scanner sc = new Scanner(System.in);
    final int K = sc.nextInt();
    final int A = sc.nextInt();
    final int B = sc.nextInt();
    sc.close();
    String is_ok = "NG";
    for(int i=A;i<=B;i++){
      if(i%K == 0){
        is_ok = "OK";
      }
    }
    System.out.println(is_ok);
  }
}

Compiler output:
Main.java:4: error: invalid method declaration; return type required
  public static main(String[] args){
                ^
1 error
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
ll a=100,b,k,ans;
int main()
{
cin>>x;
while(a<x)
{
	a=a+a/100;
	ans++;
}
cout<<ans;
return 0;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: 'x' was not declared in this scope
    7 | cin>>x;
      |      ^
Language: C++

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

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

import scala.io.StdIn

object Main extends App {
  val k = StdIn.readInt()
  val (a, b) = readIntPair
  val res = (a to b).exists(_ % k == 0)
  println(if (res) "OK" else "NG")

  def readIntPair: (Int, Int) = {
    val Array(x, y) = StdIn.readLine().split(" ").map(_.toInt)
    (x, y)
  }
}

Compiler output:
Main.java:1: error: ';' expected
import scala.io.StdIn
                     ^
1 error
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:8: error: 'k' was not declared in this scope
    6 |   cin>>k;
      |        ^
Language: C

#include<iostream>
using namespace std;
int main()
{
  int k,a,b;
  cin>>k>>a>>b;
  int min;
  min=a/k;
  min++;
  if(a%k==0 || b%k==0 || min*k<=b)
  {
        cout<<"OK\n";
  }
  else
  {
    cout<<"NG\n";
  }
  return 0;
  
  
}

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

#include <stdexcept>
#include <iostream>
#include <cmath>
#include <cassert>
#include <algorithm>
#include <functional>
#include <string>
#include <vector>

using namespace std;

int triangle(int n, int *arr) {
  int out = 0;

  for (int i = 0; i < n; i++) {
    for (int j = i + 1; j < n; j++) {
      for (int k = j + 1; k < n; k++) {
        int sum = arr[i] + arr[j] + arr[k];
        int arr_max = max(max(arr[i], arr[j]), arr[k]);
        
        if (sum - arr_max > arr_max) {
          out = max(out, sum);
        }
      }
    }
  }
  return out;
}

  int main() {
    int n;
    int arr[100];

    cout << "n = " << flush;
    cin >> n;
    if (check_int(n, 3, 100) < 0) {
      return -1;
    }

    cout << "arr  = " << endl;
    for (int i = 0; i < n; i++) {
      cin >> arr[i];

      if (check_int(n, 1, pow(10, 6)) < 0) {
        return -1;
      }
    }

    cout << endl;
    cout << "end: " << triangle(n, arr) << endl;

    return 0;
  }

Compiler output:
a.cc: In function 'int main()':
a.cc:36:9: error: 'check_int' was not declared in this scope
   36 |     if (check_int(n, 3, 100) < 0) {
      |         ^~~~~~~~~
a.cc:44:11: error: 'check_int' was not declared in this scope
   44 |       if (check_int(n, 1, pow(10, 6)) < 0) {
      |           ^~~~~~~~~