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

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

publ8c class Main{
    public static void main(String[] args)throws IOException {
        BufferedReader bufferedReader=new BufferedReader(new InputStreamReader(System.in));
        String[] s = bufferedReader.readLine().split(" ");
        long n = Long.parseLong(s[0]),k=Long.parseLong(s[1]);
        long ans = (long) Math.ceil((double)n/2);
        if(ans>=k)
        {
            System.out.println("YES");
        }
        else
        {
            System.out.println("NO");
        }
    }
}


Compiler output:
Main.java:5: error: class, interface, enum, or record expected
publ8c class Main{
^
1 error
Language: Java

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

public class atcoder {
    public static void main(String[] args)throws IOException {
        BufferedReader bufferedReader=new BufferedReader(new InputStreamReader(System.in));
        String[] s = bufferedReader.readLine().split(" ");
        long n = Long.parseLong(s[0]),k=Long.parseLong(s[1]);
        long ans = (long) Math.ceil((double)n/2);
        if(ans>=k)
        {
            System.out.println("YES");
        }
        else
        {
            System.out.println("NO");
        }
    }
}


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

import java.util.Scanner;
public class Main{
 public static void main(String args[])
   
 {
   int n = in.nextInt();
   int k = in.nextInt();
   if(n>=k)
     System.out.println("YES");
   else
     System.out.println("NO");
   
   
   
 }
  
  
  
}

Compiler output:
Main.java:6: error: cannot find symbol
   int n = in.nextInt();
           ^
  symbol:   variable in
  location: class Main
Main.java:7: error: cannot find symbol
   int k = in.nextInt();
           ^
  symbol:   variable in
  location: class Main
2 errors
Language: C++

#include<iostream>

using namespace std;

int main(){
 
  	int n, k;
    cin >> n >> k;
  	if(n >= (2 * k - 1)) put("YES");
  	else puts("NO");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:30: error: 'put' was not declared in this scope; did you mean 'putw'?
    9 |         if(n >= (2 * k - 1)) put("YES");
      |                              ^~~
      |                              putw
Language: C++

#include <iostream>
using namespace std;

int main(){
  int N,K;
  
  cin >> N >> K;
  
  if((N+1)>=K){
    cout << "Yes" << endl;
  }
  else{
    cou << "No" << endl;
  }
return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'cou' was not declared in this scope
   13 |     cou << "No" << endl;
      |     ^~~
Language: C++

#include <iostream>
using namespace std;

int main(){
  int N,K;
  
  cin >> N >> K;
  
  if((N+1)>=K){
    cout << "Yes" << endl;
  }
  else{
    cou << "No" << endl;
  }
}
return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: 'cou' was not declared in this scope
   13 |     cou << "No" << endl;
      |     ^~~
a.cc: At global scope:
a.cc:16:1: error: expected unqualified-id before 'return'
   16 | return 0;
      | ^~~~~~
Language: C++

#include <iostream>

using namespace std;

int main() {
   int a,b; cin >> a >> b;
   if(2*(b-1) > N-1) {
     cout << "NO" << endl;
   }
  else {
    cout << "YES" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'N' was not declared in this scope
    7 |    if(2*(b-1) > N-1) {
      |                 ^
Language: C++

#include<iostream>
using namespace std;

int main()
{
  int n,k;
  cin>>n>>k;
  
  for(int i=1;i<=n;i++)
  {
    if(n==k)
    {
      cout<<"NO"<<endl;
    }
    else if(n<k)
    {
      cout<<"NO"<<endl;
    }
    else{
      cout<<"YES"<<endl;
    }
    
 return 0;
}

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

#include<bits/stdc++.h>
using namespace         std;
#define                 int long long
#define                 pb push_back
#define                 mp make_pair
#define st(arr,a)       memset(arr,a,sizeof arr)
#define                 nl cout<<endl
#define                 real signed
#define                 endl '\n'              
#define bitcount(x)     __builtin_popcountll(x)
const int MOD = 1000000007ll;
#define forn(i,a,b)     for(int i=a;i<=b;i++)
#define rfor(i,a,b)     for(int i=a;i>=b;i--)
#define all(x)          x.begin() , x.end()
#define pi pair<int,int>
#define X first
#define Y second
#define N 314159


inline int mul(int a,int b){return (a*1ll*b)%MOD;}
inline int add(int a,int b){a+=b;if(a>=MOD)a-=MOD;return a;}
inline int power(int a,int b){int rt=1;while(b>0){if(b&1)rt=mul(rt,a);a=mul(a,a);b>>=1;}return rt;}
inline int inv(int a){return power(a,MOD-2);}


bitset<N>every;
int n,t;
 vector<int>adj[5];
int visited[5];

dfs(int x)
{
     visited[x]=true;
     for(auto i : adj[x])
     if(visited[i]==0)
     dfs(i);
}

signed main() 
{
     forn(i,1,3)
     {
          int a,b;
          cin>>a>>b;
          adj[a].pb(b);
          adj[b].pb(a);
          
     }
     dfs(1);
     forn(i,1,4)
     {
          if(visited[i]==0)
          {
               cout<<"NO";
               return 0;
          }
     }
     cout<<"YES";
}

//       g++ -g c.cpp ; ./a.exe

Compiler output:
a.cc:32:1: error: ISO C++ forbids declaration of 'dfs' with no type [-fpermissive]
   32 | dfs(int x)
      | ^~~
a.cc: In function 'int dfs(long long int)':
a.cc:38:1: warning: no return statement in function returning non-void [-Wreturn-type]
   38 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace         std;
#define                 int long long
#define                 pb push_back
#define                 mp make_pair
#define st(arr,a)       memset(arr,a,sizeof arr)
#define                 nl cout<<endl
#define                 real signed
#define                 endl '\n'              
#define bitcount(x)     __builtin_popcountll(x)
const int MOD = 1000000007ll;
#define forn(i,a,b)     for(int i=a;i<=b;i++)
#define rfor(i,a,b)     for(int i=a;i>=b;i--)
#define all(x)          x.begin() , x.end()
#define pi pair<int,int>
#define X first
#define Y second
#define N 314159


inline int mul(int a,int b){return (a*1ll*b)%MOD;}
inline int add(int a,int b){a+=b;if(a>=MOD)a-=MOD;return a;}
inline int power(int a,int b){int rt=1;while(b>0){if(b&1)rt=mul(rt,a);a=mul(a,a);b>>=1;}return rt;}
inline int inv(int a){return power(a,MOD-2);}


bitset<N>every;
int n,t;
int arr[N];
signed main() 
{
     cin>>n>>t;
     
     if((n+1)/2>=t)
          cout<<"YES";
     else cout<<"NO:        
 
     


    
     return 0;

}

//       g++ -g c.cpp ; ./a.exe

Compiler output:
a.cc:36:17: warning: missing terminating " character
   36 |      else cout<<"NO:
      |                 ^
a.cc:36:17: error: missing terminating " character
   36 |      else cout<<"NO:
      |                 ^~~~        
a.cc: In function 'int main()':
a.cc:42:6: error: expected primary-expression before 'return'
   42 |      return 0;
      |      ^~~~~~
Language: Java

import java.util.*;

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

        if (N - 2K + 1 > 0) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
}

Compiler output:
Main.java:9: error: ')' expected
        if (N - 2K + 1 > 0) {
                 ^
Main.java:9: error: not a statement
        if (N - 2K + 1 > 0) {
                       ^
Main.java:9: error: ';' expected
        if (N - 2K + 1 > 0) {
                          ^
Main.java:11: error: 'else' without 'if'
        } else {
          ^
4 errors
Language: Java

import java.util.*;

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

        if (N - K > 0) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
}

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

#include <iostream>
using namespace std;
int main(){
  int N,K;
  cin >> N >> K;
  if(N > K)
    cout << "YES" << '\n';
  else
    cout << "NO" << '\n';
  return 0
}

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

import java.util.*;
public class Main {
  public static void main(String ... args) {
  	Scanner in = new Scanner(System.in);
    int n = in.nextInt();
    int m = in.nextInt();
    int temp = n%2==0 ? n/2 : n/2 + 1;
    if(m>temp) System.out.println("NO");
    else System.out.println("YES);
  }
}

Compiler output:
Main.java:9: error: unclosed string literal
    else System.out.println("YES);
                            ^
1 error
Language: C++

#include<stdio.h>
int main(void)
{
	int a, b;
	scanf("%d %d", &a, &b);
	if((n+1)/2 >= b)
		printf("YES\n");
	else
		printf("NO\n");
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: 'n' was not declared in this scope
    6 |         if((n+1)/2 >= b)
      |             ^
Language: C++

include <iostream>
using namespace std;

int main(){
  int n,m;
  cin >> n >> m;
  if(n+1>=2*m){
    cout << "YES" << endl;
  }
  else{
    cout << "NO" << endl;
  }
}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <iostream>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> n >> m;
      |   ^~~
a.cc:8:5: error: 'cout' was not declared in this scope
    8 |     cout << "YES" << endl;
      |     ^~~~
a.cc:8:22: error: 'endl' was not declared in this scope
    8 |     cout << "YES" << endl;
      |                      ^~~~
a.cc:11:5: error: 'cout' was not declared in this scope
   11 |     cout << "NO" << endl;
      |     ^~~~
a.cc:11:21: error: 'endl' was not declared in this scope
   11 |     cout << "NO" << endl;
      |                     ^~~~
Language: C++

#include<stdio . h>#include<vector>#include<algorithm>using  namespace  std ;int  main ()fint  n ,  k ;scanf ("%d%d" , &n , &k ) ;i f  (k2

Compiler output:
a.cc:1:20: warning: extra tokens at end of #include directive
    1 | #include<stdio . h>#include<vector>#include<algorithm>using  namespace  std ;int  main ()fint  n ,  k ;scanf ("%d%d" , &n , &k ) ;i f  (k2
      |                    ^
a.cc:1:9: fatal error: stdio . h: No such file or directory
    1 | #include<stdio . h>#include<vector>#include<algorithm>using  namespace  std ;int  main ()fint  n ,  k ;scanf ("%d%d" , &n , &k ) ;i f  (k2
      |         ^~~~~~~~~~~
compilation terminated.
Language: C++

#include"bits/stdc++.h"

using namespace std;

int main() {
	int N, K;
	cin >> N >> K;
	if (K * 2 - 1 <= N) {
		cout << "YES" << endl;
	}
	else {
		cout << "NO" << endl;
	}
	return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:14:18: error: expected '}' at end of input
   14 |         return 0;
      |                  ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
//string F(int n,int k);
bool F(int n,int k){

  if(2*(k)-n>=1)){
      return true;

    }

  return false;
}
int main(){
  int n,k;
  cin>>n>>k;
  bool s=F(n,k);
  if(s==true)
    cout<<"YES"<<endl;
  else
    cout<<"NO"<<endl;
                return 0;
}


Compiler output:
a.cc: In function 'bool F(int, int)':
a.cc:6:17: error: expected primary-expression before ')' token
    6 |   if(2*(k)-n>=1)){
      |                 ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
//string F(int n,int k);
bool F(int n,int k){

  if(2*(k-n)>=1)){
      return true;

    }

  return false;
}
int main(){
  int n,k;
  cin>>n>>k;
  bool s=F(n,k);
  if(s==true)
    cout<<"YES"<<endl;
  else
    cout<<"NO"<<endl;
                return 0;
}


Compiler output:
a.cc: In function 'bool F(int, int)':
a.cc:6:17: error: expected primary-expression before ')' token
    6 |   if(2*(k-n)>=1)){
      |                 ^
Language: C++

#include<stdio.h>
#include<vector>
#include<algorithm>
using namespace std ;
int main ( )
{
int n , k ;
scanf("%d%d" , &n , &k ) ;
if ( k * 2 − 1 <= n ) printf ( "YES\n") ;
else printf( "NO\n") ;
}


Compiler output:
a.cc:9:12: error: extended character − is not valid in an identifier
    9 | if ( k * 2 − 1 <= n ) printf ( "YES\n") ;
      |            ^
a.cc: In function 'int main()':
a.cc:9:11: error: expected ')' before '\U00002212'
    9 | if ( k * 2 − 1 <= n ) printf ( "YES\n") ;
      |    ~      ^~
      |           )
Language: C++

#include<stdio.h>
#include<vector>
#include<algorithm>
using namespace std ;
int main ( )
{
int n , k ;
scanf(”%d%d ” , &n , &k ) ;
if ( k ∗ 2 − 1 <= n ) printf ( ”YES\n ” ) ;
else printf( ”NO\n”) ;
}


Compiler output:
a.cc:8:7: error: extended character ” is not valid in an identifier
    8 | scanf(”%d%d ” , &n , &k ) ;
      |       ^
a.cc:8:13: error: extended character ” is not valid in an identifier
    8 | scanf(”%d%d ” , &n , &k ) ;
      |             ^
a.cc:9:8: error: extended character ∗ is not valid in an identifier
    9 | if ( k ∗ 2 − 1 <= n ) printf ( ”YES\n ” ) ;
      |        ^
a.cc:9:12: error: extended character − is not valid in an identifier
    9 | if ( k ∗ 2 − 1 <= n ) printf ( ”YES\n ” ) ;
      |            ^
a.cc:9:32: error: extended character ” is not valid in an identifier
    9 | if ( k ∗ 2 − 1 <= n ) printf ( ”YES\n ” ) ;
      |                                ^
a.cc:9:36: error: stray '\' in program
    9 | if ( k ∗ 2 − 1 <= n ) printf ( ”YES\n ” ) ;
      |                                    ^
a.cc:9:39: error: extended character ” is not valid in an identifier
    9 | if ( k ∗ 2 − 1 <= n ) printf ( ”YES\n ” ) ;
      |                                       ^
a.cc:10:14: error: extended character ” is not valid in an identifier
   10 | else printf( ”NO\n”) ;
      |              ^
a.cc:10:17: error: stray '\' in program
   10 | else printf( ”NO\n”) ;
      |                 ^
a.cc:10:18: error: extended character ” is not valid in an identifier
   10 | else printf( ”NO\n”) ;
      |                  ^
a.cc: In function 'int main()':
a.cc:8:7: error: '\U0000201d' was not declared in this scope
    8 | scanf(”%d%d ” , &n , &k ) ;
      |       ^
a.cc:8:9: error: 'd' was not declared in this scope
    8 | scanf(”%d%d ” , &n , &k ) ;
      |         ^
a.cc:9:7: error: expected ')' before '\U00002217'
    9 | if ( k ∗ 2 − 1 <= n ) printf ( ”YES\n ” ) ;
      |    ~  ^~
      |       )
a.cc:9:32: error: '\U0000201dYES' was not declared in this scope
    9 | if ( k ∗ 2 − 1 <= n ) printf ( ”YES\n ” ) ;
      |                                ^~~~
a.cc:10:14: error: '\U0000201dNO' was not declared in this scope
   10 | else printf( ”NO\n”) ;
      |              ^~~
Language: Java

package minprocon2019;

import java.util.Scanner;

public class AAntiAdjacency {

	public static void main(String[] args) {
		// TODO NとKをうけとる。
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt();
		int k = sc.nextInt();
		// TODO NとNの関係性を判定
		if (n % 2 == 1) {
			// TODO Nが奇数のとき
			// TODO ①KがNの商＋１か
			if (k <= n / 2 + 1) {
				// TODO ①がYだったらYESと出力
				System.out.println("YES");
			} else {
				// TODO ①がNだったらNOと出力
				System.out.println("NO");
			}
		} else {
			// TODO Nが偶数のとき
			// TODO ②KがNの商か
			if (k <= n / 2) {
				// TODO ②がYだったらYESと出力
				System.out.println("YES");
			} else {
				// TODO ②がNだったらNOと出力
				System.out.println("NO");
			}
		}
		sc.close();
	}

}


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

import java.util.Scanner;
public class Main{
    public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int N = sc.nextInt();
      int K = sc.nextInt();
      N = (N+1)/2
      if(N >= K){
        System.out.println("YES");
      }else{
        System.out.println("NO");
      }
    }
}

Compiler output:
Main.java:7: error: ';' expected
      N = (N+1)/2
                 ^
1 error
Language: C++

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

int main() {
  int K,A,B;
  cin >>K>>A>>B;
  int start=1;
  for(int i=0;i<K;i++){
    if(A-B=<2){
      cout<<start+K<<endl;
      break;
    }
    else if(A>start){
      start++;
    }
    else if(i==K-1){
      start++;
    }
      
    else{
      start+=(B-A);
      i++;
    }
    cout <<start<<endl;
  }
    
}


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

#include <iostream>
#include<stdio.h>
using namespace std;

int Main()
{
int N;
int n;
int K;

cin >> N;
cin >> K;

n = N%2;
N = N/2;
if(n == 0){
if(N ≧ K){
cout << "YES";
}else{
cout << "NO";
}
}

if(n == 1){
K = K-1;
if(N ≧ K){
cout << "YES";
}else{
cout << "NO";
}
}

return 0;
}


Compiler output:
a.cc:17:6: error: extended character ≧ is not valid in an identifier
   17 | if(N ≧ K){
      |      ^
a.cc:26:6: error: extended character ≧ is not valid in an identifier
   26 | if(N ≧ K){
      |      ^
a.cc: In function 'int Main()':
a.cc:17:5: error: expected ')' before '\U00002267'
   17 | if(N ≧ K){
      |   ~ ^~
      |     )
a.cc:26:5: error: expected ')' before '\U00002267'
   26 | if(N ≧ K){
      |   ~ ^~
      |     )
Language: C++

#include <iostream>
using namespace std;

int Main(void)
{
int N;
int n;
int K;

cin >> N;
cin >> K;

n = N%2;
N = N/2;
if(n == 0){
if(N ≧ K){
cout << "YES";
}else{
cout << "NO";
}
}

if(n == 1){
K = K-1;
if(N ≧ K){
cout << "YES";
}else{
cout << "NO";
}
}

return 0;
}


Compiler output:
a.cc:16:6: error: extended character ≧ is not valid in an identifier
   16 | if(N ≧ K){
      |      ^
a.cc:25:6: error: extended character ≧ is not valid in an identifier
   25 | if(N ≧ K){
      |      ^
a.cc: In function 'int Main()':
a.cc:16:5: error: expected ')' before '\U00002267'
   16 | if(N ≧ K){
      |   ~ ^~
      |     )
a.cc:25:5: error: expected ')' before '\U00002267'
   25 | if(N ≧ K){
      |   ~ ^~
      |     )
Language: C++

#include <stdio.h>

int main(){
    int n=0;
    int k=0;

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


    if(k<=0){
        printf("NO");
    }else of(k>100){
        printf("YES");
    }else if(n>k){
        printf("YES");
    }else{
        printf("NO");
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: 'of' was not declared in this scope
   13 |     }else of(k>100){
      |           ^~
a.cc:15:6: error: 'else' without a previous 'if'
   15 |     }else if(n>k){
      |      ^~~~
Language: C++

#include <iostream>
using namespace std;

int Main()
{
int N;
int n;
int K;

cin >> N;
cin >> K;

n = N%2;
N = N/2;
if(n == 0){
if(N ≧ K){
cout << "YES";
}else{
cout << "NO";
}
}

if(n == 1){
K = K-1;
if(N ≧ K){
cout << "YES";
}else{
cout << "NO";
}
}

return 0;
}


Compiler output:
a.cc:16:6: error: extended character ≧ is not valid in an identifier
   16 | if(N ≧ K){
      |      ^
a.cc:25:6: error: extended character ≧ is not valid in an identifier
   25 | if(N ≧ K){
      |      ^
a.cc: In function 'int Main()':
a.cc:16:5: error: expected ')' before '\U00002267'
   16 | if(N ≧ K){
      |   ~ ^~
      |     )
a.cc:25:5: error: expected ')' before '\U00002267'
   25 | if(N ≧ K){
      |   ~ ^~
      |     )
Language: C++

#include <iostream>
using namespace std;

int Main( )
{
int N;
int n;
int K;

cin >> N;
cin >> K;

n = N%2;
N = N/2;
if (n == 0){
if (N ≥ )K){
cout << "YES";
}else{
cout << "NO";
}
}

if (n == 1){
K = K-1;
if (N ≥ )K){
cout << "YES";
}else{
cout << "NO";
}
}

return 0;
}


Compiler output:
a.cc:16:7: error: extended character ≥ is not valid in an identifier
   16 | if (N ≥ )K){
      |       ^
a.cc:25:7: error: extended character ≥ is not valid in an identifier
   25 | if (N ≥ )K){
      |       ^
a.cc: In function 'int Main()':
a.cc:16:6: error: expected ')' before '\U00002265'
   16 | if (N ≥ )K){
      |    ~ ^~
      |      )
a.cc:16:11: error: expected ';' before ')' token
   16 | if (N ≥ )K){
      |           ^
      |           ;
a.cc:25:6: error: expected ')' before '\U00002265'
   25 | if (N ≥ )K){
      |    ~ ^~
      |      )
a.cc:25:11: error: expected ';' before ')' token
   25 | if (N ≥ )K){
      |           ^
      |           ;
Language: Java

import java.util.*;
import java.io.*;
public class Main{
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
int n,k;
n = sc.nextInt();
k = sc.nextInt();
n = n+1;
n=n/2;
if(k>n)
System.out.println("NO");
else
System.out.println("YES");
}
}
import java.util.*;
import java.io.*;

Compiler output:
Main.java:18: error: class, interface, enum, or record expected
import java.util.*;
^
Main.java:19: error: class, interface, enum, or record expected
import java.io.*;
^
2 errors
Language: Java

import java.util.Scanner;

public class Main {
    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        int n = scan.nextInt();
        int k = scan.nextInt();
        if (k = 1)
            System.out.println("YES");
        if (n <= k)
            System.out.println("NO");
        else {
            int count = 0;
            for (int i=1; i<=n; i+=2) {
                count++;
                if (i>n)
                    count--;
                if (count == k)
                    break;
            }
            if (count == k)
                System.out.println("YES");
            else
                System.out.println("NO");
        }
    }
}


Compiler output:
Main.java:8: error: incompatible types: int cannot be converted to boolean
        if (k = 1)
              ^
1 error
Language: C++

#include <iostream>
using namespace std;

int Main()
{
int N;
int n;
int K;

cin >> N;
cin >> K;

n = N%2;
N = N/2;
if(n == 0){
if(N ≥ K){
cout << "YES";
}else{
cout << "NO";
}
}

if(n == 1){
K = K-1;
if(N ≥ K){
cout << "YES";
}else{
cout << "NO";
}
}

return 0;
}


Compiler output:
a.cc:16:6: error: extended character ≥ is not valid in an identifier
   16 | if(N ≥ K){
      |      ^
a.cc:25:6: error: extended character ≥ is not valid in an identifier
   25 | if(N ≥ K){
      |      ^
a.cc: In function 'int Main()':
a.cc:16:5: error: expected ')' before '\U00002265'
   16 | if(N ≥ K){
      |   ~ ^~
      |     )
a.cc:25:5: error: expected ')' before '\U00002265'
   25 | if(N ≥ K){
      |   ~ ^~
      |     )
Language: C++

#include <iostream>
using namespace std;

int Main( )
{
int N;
int n;
int K;

cin >> N;
cin >> K;

n = N%2;
N = N/2;
if (n == 0){
if (N ≥ K){
cout << "YES";
}else{
cout << "NO";
}
}

if (n == 1){
K = K-1;
if (N ≥ K){
cout << "YES";
}else{
cout << "NO";
}
}

return 0;
}


Compiler output:
a.cc:16:7: error: extended character ≥ is not valid in an identifier
   16 | if (N ≥ K){
      |       ^
a.cc:25:7: error: extended character ≥ is not valid in an identifier
   25 | if (N ≥ K){
      |       ^
a.cc: In function 'int Main()':
a.cc:16:6: error: expected ')' before '\U00002265'
   16 | if (N ≥ K){
      |    ~ ^~
      |      )
a.cc:25:6: error: expected ')' before '\U00002265'
   25 | if (N ≥ K){
      |    ~ ^~
      |      )
Language: C++

using namespace std;

int main()
{
	int N, K;
	cin >> N >> K;
	cout << ((N + 1) / 2 >= K ? "YES" : "NO");
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'cin' was not declared in this scope
    6 |         cin >> N >> K;
      |         ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | using namespace std;
a.cc:7:9: error: 'cout' was not declared in this scope
    7 |         cout << ((N + 1) / 2 >= K ? "YES" : "NO");
      |         ^~~~
a.cc:7:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

#include <iostream>
using namespace std;

int Main()
{
int N;
int n;
int K;

cin >> N;
cin >> K;

n = N%2;
N = N/2;
if(n == 0){
if(N ≥ K){
cout << "YES";
}else{
cout << "NO";
}
}

if(n == 1){
N = N+1;
if(N ≥ K){
cout << "YES";
}else{
cout << "NO";
}
}

return 0;
}


Compiler output:
a.cc:16:6: error: extended character ≥ is not valid in an identifier
   16 | if(N ≥ K){
      |      ^
a.cc:25:6: error: extended character ≥ is not valid in an identifier
   25 | if(N ≥ K){
      |      ^
a.cc: In function 'int Main()':
a.cc:16:5: error: expected ')' before '\U00002265'
   16 | if(N ≥ K){
      |   ~ ^~
      |     )
a.cc:25:5: error: expected ')' before '\U00002265'
   25 | if(N ≥ K){
      |   ~ ^~
      |     )
Language: C++

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

int main() {

    int a,N,K;

    cin >> N;
    cin >> K;

    a = N/2;
    a = a+1;

    }if(K ==2 && N==2){
        cout << "NO" <<endl;
    }else if(K <= a){
        cout << "YES" << endl;
    }else{
        cout << "NO" <<endl;
    }
}


Compiler output:
a.cc:14:6: error: expected unqualified-id before 'if'
   14 |     }if(K ==2 && N==2){
      |      ^~
a.cc:16:6: error: expected unqualified-id before 'else'
   16 |     }else if(K <= a){
      |      ^~~~
a.cc:18:6: error: expected unqualified-id before 'else'
   18 |     }else{
      |      ^~~~
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C

#include <stdio.h>
int main(void){
 
long k,a,b;
int sum = 0;
scanf("%ld %ld %ld",&k,&a,&b);

if(k < 2)
printf("2")

else if(k < a + 1)
printf("%ld",1+k);

else if(b -a  <= 1)
printf("%ld",1+k);

else
printf("%ld",b - a + k - 2 + 1);

return 0;
 
}


Compiler output:
main.c: In function 'main':
main.c:9:12: error: expected ';' before 'else'
    9 | printf("2")
      |            ^
      |            ;
   10 | 
   11 | else if(k < a + 1)
      | ~~~~
Language: C++

#include<bits/stdc++.h>
#include<ext/rope>
#include<ext/pb_ds/assoc_container.hpp>
#include<ext/pb_ds/tree_policy.hpp>
#define mst(a,b) memset(a,b,sizeof(a))
#define ALL(x) x.begin(),x.end()
#define pii pair<int,int>
#define mp make_pair
#define lowbit(x) (x&(-x))
#define X first
#define Y second
using namespace __gnu_pbds;
using namespace __gnu_cxx;
using namespace std;
typedef long long ll;
typedef long long LL;
typedef unsigned long long ull;
typedef unsigned int ui;
typedef pair<ll, ll> pll;
const int inf = 0x3f3f3f3f;
const ll INF = 0x3f3f3f3f3f3f3f3f;
const long double eps = 1e-8;
const long double pi = acos(-1.0);
const int N = 1e6 + 5;
const int mod = 1e9 + 21;
const int maxn = 1e7 + 5;
ll a[N];
ll dp[N];
ll pre[N];
ll suf[N];
ll sdp[N];
ll dp1[N];
ll sdp1[N];
int main() {
#ifdef local
    freopen("input", "r", stdin);
//    freopen("out.txt","w",stdout);
#endif
    ios::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    int n;
    cin>>n;
    for(int i = 1; i <= n; i++){
        cin>>a[i];
    }
    ans = INF;
    mst(dp,0);mst(sdp,0);mst(pre,0);mst(suf,0);
    for(int i = 1; i <= n; i++){
        pre[i] = pre[i - 1] + a[i];
    }
    for(int i = n; i >= 1; i--)suf[i] = suf[i + 1] + a[i];
    for(int i = 1; i <= n; i++){
        ll tmp = min(pre[i - 1],dp[i - 1]);
        if(a[i] == 0){
            dp[i] = tmp + 2;
        }
        else if(a[i] % 2 == 1){
            dp[i] = tmp + 1;
        }
        else dp[i] = tmp;
        dp1[i] = min(dp1[i - 1],dp[i]) + (a[i] % 2 == 0);
    }

    for(int i = n; i >= 1; i--){
        ll tmp = min(sdp[i + 1],suf[i + 1]);
        if(a[i] == 0){
            sdp[i] = tmp + 2;
        }
        else if(a[i] % 2 == 1){
            sdp[i] = tmp + 1;
        }
        else sdp[i] = tmp;
        sdp1[i] = min(sdp1[i + 1],sdp[i + 1]) + (a[i] % 2 == 0);
    }
    for(int i = 1; i <= n; i++){
        ans = min(ans,dp1[i] + sdp1[i] - (a[i] % 2 == 0));
    }
    cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:47:5: error: 'ans' was not declared in this scope; did you mean 'abs'?
   47 |     ans = INF;
      |     ^~~
      |     abs
Language: Java

import java.util.*;

class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int  x,y;
    x = sc.nextInt();
    y = sc.nextInt();
    if(x%2==1){
      if(x+1/2>=y){
        System.out.println("YES");
      }
      else{
        System.out.println("NO");
      }
    }
    else if(x==1){
      if(y>1){
        System.out.println("YES");
      }
      else{
        System.out.println("NO");
      }
    }
    else if(x==2){
        if(y>=2)
         System.out.println("NO");
        else
          System.out.println("YES");
    else{
      if(x/2>=y){
        System.out.println("YES");
      }
      else{
         System.out.println("NO");
      }
    }
  }
}


Compiler output:
Main.java:30: error: 'else' without 'if'
    else{
    ^
Main.java:39: error: reached end of file while parsing
}
 ^
2 errors
Language: C++

#include<iostream>
using namespace std;
int mian () {
  int N, K;
  cin >> N >> K;
  int ans = (N + 1) / 2;
  if (ans >= K) cout << "YES" << endl;
  else cout << "NO" << endl;
}

Compiler output:
a.cc: In function 'int mian()':
a.cc:9:1: warning: no return statement in function returning non-void [-Wreturn-type]
    9 | }
      | ^
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>
using namespace std;
int main(void){
    int N,K,ans;
    cin >> N >> K;
    ans = (N-1)*N - (N*2-2);
    if((K <= ans) && !(N<=2)) cout<<"YES";
    else cout<<"NO";
    
}

    
}


Compiler output:
a.cc:13:1: error: expected declaration before '}' token
   13 | }
      | ^
Language: C

#include<stdio.h>
int main(void){
  
  int N,K;
  scanf("%d %d",&N,&K);

  if(1<=N&&K<=100){
   if(N>K){
      if(N%2==0){
        if(N/2>=K){
      printf("YES\n");
        }
         else if(N/2<K){
         printf("NO\n");
          }}
      
       if(N%2==1){
        if((N+1)/2>=K){
      printf("YES\n");
        }      
        else if((N+1)/2>K){
         printf("NO\n");
          }}
  else{
    printf("NO\n");
  }
  }
    return 0;
  }


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

#include <stdio.h>
int main(void){
 
int a[6];
int count[4] = {0,0,0,0};

scanf("%d %d",&a[0],&a[1]);
scanf("%d %d",&a[2],&a[3]);
scanf("%d %d",&a[4],&a[5]);

for(int j = 1; j <= 4 ;j++){
for(int i = 0;i < 6; i++){

if(a[i] ==j)
count[j-1] += 1;

}
}

int judge = 0;

for(int k = 0; k<=3 ; k++){
if(count[k] => 3)
judge = 1;
}

if(judge == 0)
printf("YES");
else
  printf("NO");
return 0;
 
}


Compiler output:
main.c: In function 'main':
main.c:23:14: error: expected expression before '>' token
   23 | if(count[k] => 3)
      |              ^
Language: C++

#include <iostream>
using namespace std;

int main()
{
    int N,K;
    cin >> N >> K;
    if(N % K == 1 & N >= 100 & K >= 100){
         cout << YES << endl;
    }else{
         cout << NO << endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: 'YES' was not declared in this scope
    9 |          cout << YES << endl;
      |                  ^~~
a.cc:11:18: error: 'NO' was not declared in this scope; did you mean 'N'?
   11 |          cout << NO << endl;
      |                  ^~
      |                  N
Language: C++

#include <algorithm>
#include <bitset>
#include <iomanip>
#include <ios>
#include <iostream>
#include <numeric>
#include <string>
#include <unordered_map>
#include <vector>

using namespace std;

int main()
{
    int N, K;
    cin >> N >> K;
    if (K <= (N + 1) / 2) {
        cout << "YES\n";
    } else {
        cout << "NO\n"
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:23: error: expected ';' before '}' token
   20 |         cout << "NO\n"
      |                       ^
      |                       ;
   21 |     }
      |     ~
Language: C

#include <stdio.h>
int main(void){
 
int a[6];
int count[4] = {0,0,0,0};

scanf("%d %d",&a[0],&a[1]);
scanf("%d %d",&a[2],&a[3]);
scanf("%d %d",&a[4],&a[5]);

for(int j = 1; j <= 4 ;j++){
for(int i = 0;i < 6; i++){

if(a[i] ==j)
count[j-1] += 1;

}
}

int judge = 0;

for(int k = 0; k<=3 ; k++){
if(count[k] => 3)
judge = 1;
}

if(judge == 0;)
printf("YES");
else
  printf("NO");
return 0;
 
}


Compiler output:
main.c: In function 'main':
main.c:23:14: error: expected expression before '>' token
   23 | if(count[k] => 3)
      |              ^
main.c:27:14: error: expected ')' before ';' token
   27 | if(judge == 0;)
      |   ~          ^
      |              )
Language: C++

#include<algorithm>
#include<vector>
using namespace std;
  
int main(){
   int N,M;
   cin>>N>>M;
   int b =0;
   if(N%2==0){
       for(int i=0;i<N/2;i++){
          b=b+1;
          cout<<b<<endl;
       }
   }
   else{
       for(int j= 0;j<N+1;j=j+2){
          cout<<b<<endl;
       }
   }
   if(b>=M){
       cout<<"YES"<<endl;
   }
   else{
       cout<<"NO"<<endl;
   }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:4: error: 'cin' was not declared in this scope
    7 |    cin>>N>>M;
      |    ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<vector>
  +++ |+#include <iostream>
    3 | using namespace std;
a.cc:12:11: error: 'cout' was not declared in this scope
   12 |           cout<<b<<endl;
      |           ^~~~
a.cc:12:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:20: error: 'endl' was not declared in this scope
   12 |           cout<<b<<endl;
      |                    ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<vector>
  +++ |+#include <ostream>
    3 | using namespace std;
a.cc:17:11: error: 'cout' was not declared in this scope
   17 |           cout<<b<<endl;
      |           ^~~~
a.cc:17:11: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:17:20: error: 'endl' was not declared in this scope
   17 |           cout<<b<<endl;
      |                    ^~~~
a.cc:17:20: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:21:8: error: 'cout' was not declared in this scope
   21 |        cout<<"YES"<<endl;
      |        ^~~~
a.cc:21:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:21: error: 'endl' was not declared in this scope
   21 |        cout<<"YES"<<endl;
      |                     ^~~~
a.cc:21:21: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
a.cc:24:8: error: 'cout' was not declared in this scope
   24 |        cout<<"NO"<<endl;
      |        ^~~~
a.cc:24:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:24:20: error: 'endl' was not declared in this scope
   24 |        cout<<"NO"<<endl;
      |                    ^~~~
a.cc:24:20: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C

#include<stdio.h>
int main(void){
  
  int N,K;
  scanf("%d %d",&N,&K);

  if(1<=N&&K<=100){
    if(N>K){
      if(N%2==0){
        if(N/2>=K){
      printf("YES\n");
        }}
       if(N%2==1){
        if((N+1)/2>=K){
      printf("YES\n");
        }}
          else{
         printf("NO\n");
    }
    else if(N<=K){
      printf("NO\n");
    }
  }}
    return 0;
  }


Compiler output:
main.c: In function 'main':
main.c:20:5: error: expected '}' before 'else'
   20 |     else if(N<=K){
      |     ^~~~
main.c: At top level:
main.c:24:5: error: expected identifier or '(' before 'return'
   24 |     return 0;
      |     ^~~~~~
main.c:25:3: error: expected identifier or '(' before '}' token
   25 |   }
      |   ^
Language: C++

#include <iostream>


using namespace std;

int N, K;

int main() {

	cin >> N >> K;
	if (((N + 1) / 2)>= K) {
		cout << "YES" << endl;
	}
	else {
		cout << "NO" << endl;
	}

	return 0;

Compiler output:
a.cc: In function 'int main()':
a.cc:18:18: error: expected '}' at end of input
   18 |         return 0;
      |                  ^
a.cc:8:12: note: to match this '{'
    8 | int main() {
      |            ^
Language: C

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

  if(1<=N&&K<=100){
    if(N>K){
      if(N%2==0){
        if(N/2>=K){
      printf("YES\n");
        }}
       if(N%2==1){
        if(N/2>=K){
      printf("YES\n");
        }
       else{
         printf("NO\n");
       }
      
    }
    else if(N<=K){
      printf("NO\n");
    }
  }
    return 0;
  }


Compiler output:
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |   scanf_s("%d %d",&N,&K);
      |   ^~~~~~~
      |   scanf
main.c:27:3: error: expected declaration or statement at end of input
   27 |   }
      |   ^
Language: C

#include<stdio.h>
int main(void){
  
  int N,K;
  scanf("%d %d",&N,&K);

  if(1<=N&&K<=100){
    if(N>K){
      if(N%2==0){
        if(N/2>=K){
      printf("YES\n");
        }}
       if(N%2==1){
        if(N/2>=K){
      printf("YES\n");
        }
       else{
         printf("NO\n");
       }
      
    }
    else if(N<=K){
      printf("NO\n");
    }
  }
    return 0;
  }


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

#include<stdio.h>
int main(void){
  
  int N,K;
  scanf("%d %d",&N,&K);

    
  
  if(1<=N&&K<=100){
    if(N>K){
      if(N%2==0){
        if(N/2>=K){
      printf("YES\n");
        }}
       if(N%2==1){
        if(N/2>=K){
      printf("YES\n");
        }
       else{
         printf("NO\n");
       }
      
    }
    else if(N<=K){
      printf("NO\n");
    }
  }
    return 0;
  }


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

#include<stdio.h>
int main(void){
  
  int N,K;
  scanf("%d %d",&N,&K);

    
  
  if(1<=N&&K<=100){
    if(N>K){
      if(N%2=0){
        if(N/2>=K){
      printf("YES\n");
        }}
       if(N%2=1){
        if(N/2>=K){
      printf("YES\n");
        }
       else{
         printf("NO\n");
       }
      
    }
    else if(N<=K){
      printf("NO\n");
    }
  }
    return 0;
  }


Compiler output:
main.c: In function 'main':
main.c:11:13: error: lvalue required as left operand of assignment
   11 |       if(N%2=0){
      |             ^
main.c:15:14: error: lvalue required as left operand of assignment
   15 |        if(N%2=1){
      |              ^
main.c:29:3: error: expected declaration or statement at end of input
   29 |   }
      |   ^
Language: C

#include<stdio.h>
int main(void){
  
  int N,K;
  scanf("%d %d",&N,&K);
 
  for(i=1;i<N;i++){
    if(
    
  
  if(1<=N&&K<=100){
    if(N>K){
      if(N%2=0){
        if(N/2>=K){
      printf("YES\n");
        }}
       if(N%2=1){
        if(N/2>=K){
      printf("YES\n");
        }
       else{
         printf("NO\n");
       }
      
    }
    else if(N<=K){
      printf("NO\n");
    }
  }
    return 0;
  }


Compiler output:
main.c: In function 'main':
main.c:7:7: error: 'i' undeclared (first use in this function)
    7 |   for(i=1;i<N;i++){
      |       ^
main.c:7:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:3: error: expected expression before 'if'
   11 |   if(1<=N&&K<=100){
      |   ^~
main.c:31:3: error: expected declaration or statement at end of input
   31 |   }
      |   ^
main.c:31:3: error: expected declaration or statement at end of input
Language: C

 #include <stdio.h>
             
int main()
{
     int N,K;
     scanf_s("%d %d",&N,&K);
     
     if(N == 101 || K == 101) return 0;
     if(N % K == 1)
     {
         printf("YES\n");
     }else{
         printf("NO\n");
     }
         return 0;
}

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

 #include <stdio.h>
             
int main()
{
     int N,K;
     scanf_s("%d %d",&N,&K)
     
     if(N == 101 || K == 101) return 0;
     if(N % K == 1)
     {
         printf("YES\n");
     }else{
         printf("NO\n");
     }
         return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:6: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |      scanf_s("%d %d",&N,&K)
      |      ^~~~~~~
      |      scanf
main.c:6:28: error: expected ';' before 'if'
    6 |      scanf_s("%d %d",&N,&K)
      |                            ^
      |                            ;
    7 | 
    8 |      if(N == 101 || K == 101) return 0;
      |      ~~
Language: C++

include <iostream>
using namespace std;
 
int main(){
  int n, k;
  cin >> n >> k;
  if(n >= k * 2 - 1) cout << "YES" << endl;
  else cout << "NO" << endl;
  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:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> n >> k;
      |   ^~~
a.cc:7:22: error: 'cout' was not declared in this scope
    7 |   if(n >= k * 2 - 1) cout << "YES" << endl;
      |                      ^~~~
a.cc:7:39: error: 'endl' was not declared in this scope
    7 |   if(n >= k * 2 - 1) cout << "YES" << endl;
      |                                       ^~~~
a.cc:8:8: error: 'cout' was not declared in this scope
    8 |   else cout << "NO" << endl;
      |        ^~~~
a.cc:8:24: error: 'endl' was not declared in this scope
    8 |   else cout << "NO" << endl;
      |                        ^~~~
Language: C


Copy

            #include <stdio.h>
             
            int main()
            {
                int N,K;
                scanf_s("%d %d",&N,&K);
     
                if(N == 101 || K == 101) return 0;
                if(N % K == 1)
                {
                    printf("YES\n");
                }else{
                    printf("NO\n");
                }
                return 0;
            }

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

        #include <stdio.h>
         
        int main()
        {
            int N,K;
            scanf_s("%d %d",&N,&K)

            if(N == 101 || K == 101) return 0;
            if(N % K == 1)
            {
                printf("YES\n");
            }else{
                printf("NO\n");
            }
            return 0;
        }

Compiler output:
main.c: In function 'main':
main.c:6:13: error: implicit declaration of function 'scanf_s'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    6 |             scanf_s("%d %d",&N,&K)
      |             ^~~~~~~
      |             scanf
main.c:6:35: error: expected ';' before 'if'
    6 |             scanf_s("%d %d",&N,&K)
      |                                   ^
      |                                   ;
    7 | 
    8 |             if(N == 101 || K == 101) return 0;
      |             ~~
Language: C++

#include <stdio.h>

int main(){
    int n=0;
    int k=0;

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


    if(n>K){
        printf("YES");
    }else if(k<0){
        printf("NO");
    }else{
        printf("NO");
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: 'K' was not declared in this scope
   11 |     if(n>K){
      |          ^
Language: Java

 int nValue; // 1 <= N
        int kValue; //<= 100

        Scanner scanner = new Scanner(System.in);

        System.out.println("1 以上 N 以下の異なる整数を、差が 1 の整数をともに選ばないように K 個選びます");
        System.out.println("NとKをそれぞれ半角空白で区切って入力してください");
        System.out.println("例: input ->10 90");
        System.out.println("input >>");

        String N = scanner.next();
        String K = scanner.next();

        nValue = Integer.valueOf(N);
        kValue = Integer.valueOf(K);


        if (100 < kValue || kValue < 1) {
            System.out.println("Kの値は1以上100以下の整数を入力してください。終了します。");
            return;
        }

        if (nValue < 2) {
            System.out.println("Nの値は1以上の整数を入力してください。終了します。");
            return;
        }


        if (2 <= (nValue -1) &&  kValue <= (nValue -1)) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
 int nValue; // 1 <= N
 ^
  (use --enable-preview to enable unnamed classes)
Main.java:6: error: class, interface, enum, or record expected
        System.out.println("1 ?? N ???????????? 1 ?????????????? K ?????");
        ^
Main.java:7: error: class, interface, enum, or record expected
        System.out.println("N?K??????????????????????");
        ^
Main.java:8: error: class, interface, enum, or record expected
        System.out.println("?: input ->10 90");
        ^
Main.java:9: error: class, interface, enum, or record expected
        System.out.println("input >>");
        ^
Main.java:14: error: class, interface, enum, or record expected
        nValue = Integer.valueOf(N);
        ^
Main.java:15: error: class, interface, enum, or record expected
        kValue = Integer.valueOf(K);
        ^
Main.java:18: error: class, interface, enum, or record expected
        if (100 < kValue || kValue < 1) {
        ^
Main.java:20: error: class, interface, enum, or record expected
            return;
            ^
Main.java:21: error: class, interface, enum, or record expected
        }
        ^
Main.java:25: error: class, interface, enum, or record expected
            return;
            ^
Main.java:26: error: class, interface, enum, or record expected
        }
        ^
Main.java:31: error: class, interface, enum, or record expected
        } else {
        ^
Main.java:33: error: class, interface, enum, or record expected
        }
        ^
14 errors
Language: Java

import java.util.Scanner;

public class A1 {

    public static void main(String[] args) {
        int nValue; // 1 <= N
        int kValue; //<= 100

        Scanner scanner = new Scanner(System.in);

        System.out.println("1 以上 N 以下の異なる整数を、差が 1 の整数をともに選ばないように K 個選びます");
        System.out.println("NとKをそれぞれ半角空白で区切って入力してください");
        System.out.println("例: input ->10 90");
        System.out.println("input >>");

        String N = scanner.next();
        String K = scanner.next();

        nValue = Integer.valueOf(N);
        kValue = Integer.valueOf(K);


        if (100 < kValue || kValue < 1) {
            System.out.println("Kの値は1以上100以下の整数を入力してください。終了します。");
            return;
        }

        if (nValue < 2) {
            System.out.println("Nの値は1以上の整数を入力してください。終了します。");
            return;
        }


        if (2 <= (nValue -1) &&  kValue <= (nValue -1)) {
            System.out.println("YES");
        } else {
            System.out.println("NO");
        }
    }
}


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