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

#include <stdio.h>

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

    scanf("%d",&lln);
    scanf("%d",&llk);


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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:17: error: 'lln' was not declared in this scope
    7 |     scanf("%d",&lln);
      |                 ^~~
a.cc:8:17: error: 'llk' was not declared in this scope
    8 |     scanf("%d",&llk);
      |                 ^~~
Language: C++

#include<stdio.h>
int main(void){
    int br[4] ={0};
    int a, b,i=0;
    while(i<3){
        scanf("%d %d",&a,&b);
        br[a-1]++; br[b-1]++;
        i++;
    }
    if(br[0]<=2&&br[1]<=2&&br[2]<=2&&br[3]<=2
      &&br[0]>=1&&br[1]>=1&&br[2]>=1&&br[3]>=1){
        printf("YES¥n");
    }else{
        printf("NO¥n");
   }
    break 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:5: error: break statement not within loop or switch
   16 |     break 0;
      |     ^~~~~
a.cc:16:10: error: expected ';' before numeric constant
   16 |     break 0;
      |          ^~
      |          ;
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{
      if(x/2>=y){
        System.out.println("YES");
      }
      else{
         System.out.println("NO");
      }
    }
  else{
    if(y==1){
      System.out.println("YES");
    }
    else{
      System.out.println("NO");
    }
  }
}


Compiler output:
Main.java:17: error: '(' expected
    else if{
           ^
Main.java:33: error: reached end of file while parsing
}
 ^
2 errors
Language: C

#include<stdio.h>
#include<math.h>

int main(){
 int N,K;
int i=0,j,k,ans=0;

scanf("%d %d",&N,&K);

while(i<=N;){
ans++;
i+=2;
}
if(ans>=K)
puts("YES");
else
puts("NO");

return 0;
}


Compiler output:
main.c: In function 'main':
main.c:10:11: error: expected ')' before ';' token
   10 | while(i<=N;){
      |      ~    ^
      |           )
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:12: error: lvalue required as left operand of assignment
    6 |     if (n%2=1) {
      |            ^
main.c:9:10: error: lvalue required as left operand of assignment
    9 |       n-1=m;
      |          ^
main.c:10:10: error: lvalue required as left operand of assignment
   10 |       m/2=j;
      |          ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:12: error: lvalue required as left operand of assignment
    6 |     if (n%2=1) {
      |            ^
main.c:10:10: error: lvalue required as left operand of assignment
   10 |       n-1=m;
      |          ^
main.c:11:10: error: lvalue required as left operand of assignment
   11 |       m/2=j;
      |          ^
Language: C

#include<stdio.h>

int main(){
int N,K;
int y,x;
y=N*N-3*N/2+3;
if(N>=3){if(y>=K){printf("Yes")};
else{printf("No");}
}
if(N<=2){if(K=1){
printf("Yes")}else{
printf("No");
}
}
return 0;}
}

Compiler output:
main.c: In function 'main':
main.c:7:32: error: expected ';' before '}' token
    7 | if(N>=3){if(y>=K){printf("Yes")};
      |                                ^
      |                                ;
main.c:8:1: error: expected '}' before 'else'
    8 | else{printf("No");}
      | ^~~~
main.c: At top level:
main.c:10:1: error: expected identifier or '(' before 'if'
   10 | if(N<=2){if(K=1){
      | ^~
main.c:15:1: error: expected identifier or '(' before 'return'
   15 | return 0;}
      | ^~~~~~
main.c:15:10: error: expected identifier or '(' before '}' token
   15 | return 0;}
      |          ^
main.c:16:1: error: expected identifier or '(' before '}' token
   16 | }
      | ^
Language: C

#include <stdio.h>
int main(void){
    // Your code here!
    int N,i;
    int Ans[5]={1,2,2,3,3,4};
    for(f=0;f<6;f++){
    scanf("%d",&N);
    for(i=0;i<6;i++){
        if(Ans[i]==N){
         Ans[i]=0;   
        }
    }
    }
    if(Ans[0]==0&&Ans[1]==0&&Ans[2]==0&&Ans[3]==0&&Ans[4]==0&&Ans[5]==0){
        printf("YES");
    }else{
        printf("NO");
    }
}


Compiler output:
main.c: In function 'main':
main.c:5:27: warning: excess elements in array initializer
    5 |     int Ans[5]={1,2,2,3,3,4};
      |                           ^
main.c:5:27: note: (near initialization for 'Ans')
main.c:6:9: error: 'f' undeclared (first use in this function)
    6 |     for(f=0;f<6;f++){
      |         ^
main.c:6:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include <stdio.h>

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

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

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

Compiler output:
a.cc:16:6: error: expected unqualified-id before 'else'
   16 |     }else{
      |      ^~~~
a.cc:19:1: error: expected declaration before '}' token
   19 | }
      | ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:12: error: lvalue required as left operand of assignment
    6 |     if (n%2=1) {
      |            ^
main.c:8:12: error: expected ';' before '}' token
    8 |       j=m/2
      |            ^
      |            ;
    9 |     }else{
      |     ~       
main.c:10:10: error: lvalue required as left operand of assignment
   10 |       n-1=m;
      |          ^
main.c:11:10: error: lvalue required as left operand of assignment
   11 |       m/2=j;
      |          ^
Language: Java

public class Test {

        public static void main(String[] args) {
                int n = Integer.parseInt(args[0]);
                int k = Integer.parseInt(args[1]);
                boolean resultFlg = false;

                int cnt = 0;
                for(int i=0; i<n; i+=2) {
                        cnt ++;
                        if(k <= cnt) resultFlg = true;
                }

                if(resultFlg) System.out.println("Yes");
                else System.out.println("No");
        }

}

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

#include<stdio.h>
#include<math.h>

int main(){
 int N,K;
int i,j,k,ans=0;

scanf("%d %d",&N,%K);

for(N=0;i<=N;i+=2){
ans++;
}
if(ans>=K)
puts("YES");
else
puts("NO");

return 0;
}

Compiler output:
main.c: In function 'main':
main.c:8:18: error: expected expression before '%' token
    8 | scanf("%d %d",&N,%K);
      |                  ^
Language: C++

#include <stdio.h>

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:9: error: 'pritnf' was not declared in this scope; did you mean 'printf'?
   12 |         pritnf("NO");
      |         ^~~~~~
      |         printf
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/2>=y){
        System.out.println(YES);
      }
      else{
         System.out.println(NO);
      }
    }
  }
}


Compiler output:
Main.java:19: error: cannot find symbol
        System.out.println(YES);
                           ^
  symbol:   variable YES
  location: class Main
Main.java:22: error: cannot find symbol
         System.out.println(NO);
                            ^
  symbol:   variable NO
  location: class Main
2 errors
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:5:5: error: 'else' without a previous 'if'
    5 |     else if(K <= N/2+1 || K == 1 || N == 1) printf("YES\n");
      |     ^~~~
Language: C++

#include <iostream>
 
using namespace std;
int main() {
    double n, k;
	cin >> n >> k;
 
	if (ceil(n / 2) >= k) cout << "YES";
	else cout << "NO";
 
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:13: error: 'ceil' was not declared in this scope
    8 |         if (ceil(n / 2) >= k) cout << "YES";
      |             ^~~~
Language: C++

#include <iostream>

int main(){
  int n, k;
  cin >> n >> k;
  if(n > k * 3) cout << "YES" << endl;
  else cout << "NO" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin >> n >> 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:6:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |   if(n > k * 3) cout << "YES" << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:34: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |   if(n > k * 3) cout << "YES" << endl;
      |                                  ^~~~
      |                                  std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:7:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |   else cout << "NO" << endl;
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |   else cout << "NO" << endl;
      |                        ^~~~
      |                        std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:12: error: implicit declaration of function 'abs' [-Wimplicit-function-declaration]
    9 |         if(abs(N-i)!=1){
      |            ^~~
main.c:3:1: note: include '<stdlib.h>' or provide a declaration of 'abs'
    2 | #include<math.h>
  +++ |+#include <stdlib.h>
    3 | int main(void) {
main.c:17:5: error: expected declaration or statement at end of input
   17 |     }
      |     ^
Language: C

#include <stdio.h>
int main(void){
    // Your code here!
    int N,K;
    
    scanf("%d %d",&N,&K);
    
    if(N%2==1){
        if(N/2>=K){
            printf("YES");
        }else{
            printf("NO");
        }
    }else if(N%2==0){
        if((N+1)/2>=K){
            prinf("YES");
        }else{
            printf("NO");
        }
        
    }
}


Compiler output:
main.c: In function 'main':
main.c:16:13: error: implicit declaration of function 'prinf'; did you mean 'printf'? [-Wimplicit-function-declaration]
   16 |             prinf("YES");
      |             ^~~~~
      |             printf
Language: C++

#include <iostream>

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


Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |     cin >> N >> 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:6:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    6 |     if(N<2*K-1) cout << "NO" << endl;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:6:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    6 |     if(N<2*K-1) cout << "NO" << endl;
      |                                 ^~~~
      |                                 std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:7:10: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    7 |     else cout << "YES" << endl;
      |          ^~~~
      |          std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:7:27: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
    7 |     else cout << "YES" << endl;
      |                           ^~~~
      |                           std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include <stdio.h>

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:11:16: error: expected primary-expression before '<' token
   11 |     }else if(n=<k){
      |                ^
Language: C++

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

int main(void)
{
    int n, k;
    cin >> n >> k;

    if ((n / 2.0 + 1 )> k) {
        cout << "YES" << endl;
    }else {
        cout << "NO" << endl;
    }

    return 0;


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

n,k=map(int,input().split())
if k-n>=1:
    print('YES')
else:
    print('NO')

Compiler output:
a.cc:3:11: warning: multi-character character constant [-Wmultichar]
    3 |     print('YES')
      |           ^~~~~
a.cc:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     print('NO')
      |           ^~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n,k=map(int,input().split())
      | ^
Language: C++

#include<iostream>
using namespace std;
int main(void)
{
	double a, b;
	double sum = 0;
	cin >> a >> b;
	sum = floor(a / 2 + 0.5);
	if (sum >= b)
		cout << "YES" << endl;
	else
		cout << "NO" << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: 'floor' was not declared in this scope
    8 |         sum = floor(a / 2 + 0.5);
      |               ^~~~~
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/2==y){
        System.out.println(YES);
      }
      else{
         System.out.println(NO);
      }
    }
  }
}


Compiler output:
Main.java:19: error: cannot find symbol
        System.out.println(YES);
                           ^
  symbol:   variable YES
  location: class Main
Main.java:22: error: cannot find symbol
         System.out.println(NO);
                            ^
  symbol:   variable NO
  location: class Main
2 errors
Language: C

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

Compiler output:
main.c: In function 'main':
main.c:9:43: error: expected ')' before '{' token
    9 |     while((N>=1&&N<=100)&&((K>=1&&K<=100)){
      |          ~                                ^
      |                                           )
main.c:22:1: error: expected expression before '}' token
   22 | }
      | ^
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/2+1==y){
        System.out.println("YES");
      }
      else{
        System.out.println("NO");
      }
    }
    else{
      if(x/2==y){
        System.out.println(YES);
      }
      else{
         System.out.println(NO);
      }
    }
  }
}


Compiler output:
Main.java:19: error: cannot find symbol
        System.out.println(YES);
                           ^
  symbol:   variable YES
  location: class Main
Main.java:22: error: cannot find symbol
         System.out.println(NO);
                            ^
  symbol:   variable NO
  location: class Main
2 errors
Language: C++

#include<iostream>
using namespace std;
int main(void)
{
	double a, b;
	int sum = 0;
	cin >> a >> b;
	sum = ceil(a / 2 + 0.5);
	if (sum >= b)
		cout << "YES" << endl;
	else
		cout << "NO" << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:15: error: 'ceil' was not declared in this scope
    8 |         sum = ceil(a / 2 + 0.5);
      |               ^~~~
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/2+1==y){
        System.out.println("YES");
      }
      else{
        System.out.println("NO");
      }
    else{
      if(x/2==y){
        System.out.println(YES);
      }
      else{
         System.out.println(NO);
      }
    }
  }
}


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

#include<iostream>
#include<cstdio>
#include<cmath>
#include<algorithm>
#include<cstring>
using namespace std;
int n,k;
int main()
{
    cin>>n>>k;
    if (n <= k) && n % 2 != 0{
        cout<<"NO"<<endl;
    } else
    {
        cout<<"YES"<<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: invalid operands of types 'void*' and 'int' to binary 'operator%'
   11 |     if (n <= k) && n % 2 != 0{
      |                 ~~~~ ^ ~
      |                 |      |
      |                 void*  int
a.cc:11:20: error: label 'n' used but not defined
   11 |     if (n <= k) && n % 2 != 0{
      |                    ^
Language: C++

#include <iostream>
using namespace std;

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

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

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

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

Compiler output:
main.c:2:9: fatal error: math,h: No such file or directory
    2 | #include<math,h>
      |         ^~~~~~~~
compilation terminated.
Language: C

#include<stdio.h>

int main(){
	int N,K,kaijou=1,i;
  	scanf("%d %d",&N,&K);
  	for(i=1;i<N;++i)kaijou*=i;
 	if(kaijou>=K)print("YES\n");
  	else printf("NO\n");
  	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:7:22: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    7 |         if(kaijou>=K)print("YES\n");
      |                      ^~~~~
      |                      printf
Language: C++

include<iostream>

using namespace std;

int main() {
	int	n, k;

	cin >> n >> k;

	int count = n / 2;
	if (n % 2 != 0) {
		count++;
	}

	if (k <= count) {
		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:8:9: error: 'cin' was not declared in this scope
    8 |         cin >> n >> k;
      |         ^~~
a.cc:16:17: error: 'cout' was not declared in this scope; did you mean 'count'?
   16 |                 cout << "YES" << endl;
      |                 ^~~~
      |                 count
a.cc:16:34: error: 'endl' was not declared in this scope
   16 |                 cout << "YES" << endl;
      |                                  ^~~~
a.cc:19:17: error: 'cout' was not declared in this scope; did you mean 'count'?
   19 |                 cout << "NO" << endl;
      |                 ^~~~
      |                 count
a.cc:19:33: error: 'endl' was not declared in this scope
   19 |                 cout << "NO" << endl;
      |                                 ^~~~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: expected ';' before '{' token
    7 |   if((a > b){
      |             ^
      |             ;
a.cc:10:3: error: expected primary-expression before 'else'
   10 |   else cout << "NO" << endl;
      |   ^~~~
a.cc:9:4: error: expected ')' before 'else'
    9 |   }
      |    ^
      |    )
   10 |   else cout << "NO" << endl;
      |   ~~~~
a.cc:7:5: note: to match this '('
    7 |   if((a > b){
      |     ^
Language: C

#include<stdio.h>

int main(){
	int N,K,kaijou=1;
  	scanf("%d %d",&N,&K);
  	for(i=1;i<N;++i)kaijou*=i;
 	if(kaijou>=K)print("YES\n");
  	else printf("NO\n");
  	return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:13: error: 'i' undeclared (first use in this function)
    6 |         for(i=1;i<N;++i)kaijou*=i;
      |             ^
main.c:6:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:22: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    7 |         if(kaijou>=K)print("YES\n");
      |                      ^~~~~
      |                      printf
Language: C++

#include<iostream>
using namespace std;
int main(){
  int N, K;
  cin >> N >> K;
  if (N>=2K-1){
    cout << "YES" << endl;
  }else{
    cout << "NO" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: fixed-point types not supported in C++
    6 |   if (N>=2K-1){
      |          ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int a,b;
  if((a > b){
  	cout << "YES"<< endl;
  }
  else cout << "NO" << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: expected ';' before '{' token
    6 |   if((a > b){
      |             ^
      |             ;
a.cc:9:3: error: expected primary-expression before 'else'
    9 |   else cout << "NO" << endl;
      |   ^~~~
a.cc:8:4: error: expected ')' before 'else'
    8 |   }
      |    ^
      |    )
    9 |   else cout << "NO" << endl;
      |   ~~~~
a.cc:6:5: note: to match this '('
    6 |   if((a > b){
      |     ^
Language: C

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














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

#define REP(i, n) for(int i = 0; i < n; i++)
#define REPR(i, n) for(int i = n; i >= 0; i--)
#define FOR(i, m, n) for(int i = m; i < n; i++)
#define INF 1e9
#define ALL(v) v.begin(), v.end()

using namespace std;

typedef long long ll;

int main() {
    cin.tie(0);
    ios::sync_with_stdio(false);
    
    int n,k;
    cin >> n >> k;

    if (n+1 >= k*2) {
        cout << "YES" << "\n";
    } else {
        cout << "NO" << "\n";
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'cin' was not declared in this scope
   12 |     cin.tie(0);
      |     ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #define REP(i, n) for(int i = 0; i < n; i++)
a.cc:13:5: error: 'ios' has not been declared
   13 |     ios::sync_with_stdio(false);
      |     ^~~
a.cc:19:9: error: 'cout' was not declared in this scope
   19 |         cout << "YES" << "\n";
      |         ^~~~
a.cc:19:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:21:9: error: 'cout' was not declared in this scope
   21 |         cout << "NO" << "\n";
      |         ^~~~
a.cc:21:9: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C

#include<stdio.h>

main(){
	int N,K,kaijou=1;
  	scanf("%d %d",&N,&K);
  	for(i=1;i<N;++i)kaijou*=i;
 	if(kaijou>K)print("YES\n");
  	else printf("NO\n");
  	return 0;
}

Compiler output:
main.c:3:1: error: return type defaults to 'int' [-Wimplicit-int]
    3 | main(){
      | ^~~~
main.c: In function 'main':
main.c:6:13: error: 'i' undeclared (first use in this function)
    6 |         for(i=1;i<N;++i)kaijou*=i;
      |             ^
main.c:6:13: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:21: error: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
    7 |         if(kaijou>K)print("YES\n");
      |                     ^~~~~
      |                     printf
Language: Java

import java.util.Scanner;


public class A {
	public static void main(String[] args) {
		Scanner sn = new Scanner(System.in);
		
		int n = sn.nextInt();
		int k = sn.nextInt();
		int cnt = 0,cur = 1;
		while(cur <= n )
		{
			++cur;
			++cnt;
		}
		if( cnt >= k )
			System.out.println("YES");
		else
			System.out.println("NO");
		sn.close();
	}
}


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

#include <stdio.h>

int main() {
	int N, K;
	scanf("%d %d", &N, &K);

	if (N / 2 <= K)
		printf("YES\n");
	else 
		printf("NO\n")
		
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:31: error: expected ';' before 'return'
   10 |                 printf("NO\n")
      |                               ^
      |                               ;
   11 | 
   12 |         return 0;
      |         ~~~~~~
Language: C

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

int n, k;
int sum = 0;
a = 0;
scanf("%d %d",&n,&k);

for(int i = 1; i <= n; i++){
sum += i;
a += 1
}

if(sum > k+a)
printf("YES");

else
printf("NO");

return 0;

}

Compiler output:
main.c: In function 'main':
main.c:6:1: error: 'a' undeclared (first use in this function)
    6 | a = 0;
      | ^
main.c:6:1: note: each undeclared identifier is reported only once for each function it appears in
main.c:11:7: error: expected ';' before '}' token
   11 | a += 1
      |       ^
      |       ;
   12 | }
      | ~
Language: C++

using System;
using System.Linq;

public class Test
{
	public static void Main(){
var p = Console.ReadLine().Split(' ').Select(s=>int.Parse(s)).ToArray();
int n= p[0];
int k = p[1];
Console.WriteLine(k *2-1>n?"NO":"YES");
}
}

Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:2:7: error: expected nested-name-specifier before 'System'
    2 | using System.Linq;
      |       ^~~~~~
a.cc:4:1: error: expected unqualified-id before 'public'
    4 | public class Test
      | ^~~~~~
Language: C

#include <windows.h>
#include <stdio.h>

int main(void) {
	int N,K;
	scanf("%d%d",&N,&K);
	if(N/2+1>=K)printf("Yes\n");
	else printf("No\n");
	return 0;
}

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


#include <bits/stdc++.h>
using namespace std;
int main() {
  int N,K;
  cin >> N >> K;
  if((N/2+1)<=K){
    cout << "YES" << endl;
  }else{
    cout << "NO" << endl;
  }
}
14

Compiler output:
a.cc:13:1: error: expected unqualified-id before numeric constant
   13 | 14
      | ^~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <numeric>
#include <cmath>
#include <climits>
#include <cfloat>

using namespace std;

//start of 0uts1de's library

int cin_int_arr(vector<int>& arr){
    for (int i = 0; i < arr.size(); ++i){
        cin >> arr.at(i);
    }
    return 0;
}

int cin_int_arr(vector<int>& arr, int n){    //overload
    for (int i = 0; i < n; ++i){
        cin >> arr.at(i);
    }
    return 0;
}

int cin_double_arr(vector<double>& arr){
    for (int i = 0; i < arr.size(); ++i){
        cin >> arr.at(i);
    }
    return 0;
}

int cin_double_arr(vector<double>& arr, int n){    //overload
    for (int i = 0; i < n; ++i){
        cin >> arr.at(i);
    }
    return 0;
}


int cout_int_arr(vector<int>& arr){
    for (int i = 0; i < arr.size(); ++i){
        cout << arr.at(i) << endl;
    }
    return 0;
}

int cout_int_arr(vector<int>& arr, int n){    //overload
    for (int i = 0; i < n; ++i){
        cout << arr.at(i) << endl;
    }
    return 0;
}

int cout_double_arr(vector<double>& arr){
    for (int i = 0; i < arr.size(); ++i){
        cout << arr.at(i) << endl;
    }
    return 0;
}

int cout_double_arr(vector<double>& arr, int n){    //overload
    for (int i = 0; i < n; ++i){
        cout << arr.at(i) << endl;
    }
    return 0;
}


int max_int_arr(std::vector<int>& arr){    //data mode
    int maxVal = INT_MIN;       //min of int
    for (int i = 0; i < arr.size(); ++i){
        if (arr.at(i) > maxVal){
            maxVal = arr.at(i);
        }
    }
    return maxVal;
}

int max_int_arr(std::vector<int>& arr, int mode){    //overload index mode
    int maxVal = INT_MIN;       //min of int
    int maxIndex = 0;
    for (int i = 0; i < arr.size(); ++i){
        if (arr.at(i) > maxVal){
            maxVal = arr.at(i);
            maxIndex = i;
        }
    }
    return maxIndex;
}

double max_double_arr(std::vector<double>& arr){    //data mode
    double maxVal = -DBL_MAX;       //min of double
    for (int i = 0; i < arr.size(); ++i){
        if (arr.at(i) > maxVal){
            maxVal = arr.at(i);
        }
    }
    return maxVal;
}

int max_double_arr(std::vector<double>& arr, int mode){    //overload index mode
    double maxVal = -DBL_MAX;       //min of double
    int maxIndex = 0;
    for (int i = 0; i < arr.size(); ++i){
        if (arr.at(i) > maxVal){
            maxVal = arr.at(i);
            maxIndex = i;
        }
    }
    return maxIndex;
}

//end of 0uts1de's library

int main(){
    int n, k;
    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:121:18: error: expected primary-expression before '>' token
  121 |     if ((n+1)/2 => k){
      |                  ^
Language: Java


		int num1 = Integer.parseInt(args[0]);
		int num2 = Integer.parseInt(args[1]);
		String answer;
		if (num1 >= num2 * 2 - 1) {
			answer = "yes";
		}else{
			answer = "no";
		}
		System.out.println(answer);

Compiler output:
Main.java:2: error: unnamed classes are a preview feature and are disabled by default.
		int num1 = Integer.parseInt(args[0]);
		^
  (use --enable-preview to enable unnamed classes)
Main.java:5: error: class, interface, enum, or record expected
		if (num1 >= num2 * 2 - 1) {
		^
Main.java:7: error: class, interface, enum, or record expected
		}else{
		^
Main.java:9: error: class, interface, enum, or record expected
		}
		^
4 errors
Language: C++

#include <iostream>
using namespace std;
int main(){
  int a,b;
  cin>>a>>b;
  if(a-b=<0)
    cout<<"NO"<<endl;
  else
    cout<<"YES"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:10: error: expected primary-expression before '<' token
    6 |   if(a-b=<0)
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int a,b;
  cin>>a>>b;
  if(a<3){
    cout<<"No"<<endl;
  if(a>b){
    cout<<"YES"<<endl;
  }else cout<<"NO"<<endl;
}

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

#include <iostream>

using namespace std;

int main(){
  int N,K;
  cin >> N;
  cin >> K;
  if(N > K){
cout<<"YES";
}else{
cout<<"NO";
}
return 0
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: expected ';' before '}' token
   14 | return 0
      |         ^
      |         ;
   15 | }
      | ~
Language: C++

#include <iostream>
#define FOR(i,a,b) for(int i=(a);i<(b);++i)
#define rep(i,n) FOR(i,0,n)
#define repr(i,n) for(int i=(n)-1;0<=i;--i)
#define each(e,v) for(auto&& e:(v))
#define all(v) begin(v),end(v)
#define dump(x) cerr<<#x<<": "<<(x)<<endl
using namespace std;
using vint = vector<int>;
using ll = long long;
using vll = vector<ll>;
template <class T> void chmin(T& a, const T& b) { a = min(a, b); }
template <class T> void chmax(T& a, const T& b) { a = max(a, b); }
void yes() { cout << "YES" << endl; exit(0); }
void no() { cout << "NO" << endl; exit(0); }

int main() {
    int n, k; cin >> n >> k;
    int a = (n + (k - 1)) / k;
    if(a >= 2) yes();
    no();
    return 0;
}


Compiler output:
a.cc:9:14: error: 'vector' does not name a type
    9 | using vint = vector<int>;
      |              ^~~~~~
a.cc:11:13: error: 'vector' does not name a type
   11 | using vll = vector<ll>;
      |             ^~~~~~
Language: C++

main :: IO ()
main = do
  (x:y:xs) <- map read . words <$> getLine
  putStrLn $ if solve' x y then "YES" else "NO"

solve' :: Int -> Int -> Bool
solve' x y = x `div` y >= 2


Compiler output:
a.cc:4:22: warning: missing terminating ' character
    4 |   putStrLn $ if solve' x y then "YES" else "NO"
      |                      ^
a.cc:4:22: error: missing terminating ' character
    4 |   putStrLn $ if solve' x y then "YES" else "NO"
      |                      ^~~~~~~~~~~~~~~~~~~~~~~~~~
a.cc:6:6: warning: missing terminating ' character
    6 | solve' :: Int -> Int -> Bool
      |      ^
a.cc:6:6: error: missing terminating ' character
    6 | solve' :: Int -> Int -> Bool
      |      ^~~~~~~~~~~~~~~~~~~~~~~
a.cc:7:6: warning: missing terminating ' character
    7 | solve' x y = x `div` y >= 2
      |      ^
a.cc:7:6: error: missing terminating ' character
    7 | solve' x y = x `div` y >= 2
      |      ^~~~~~~~~~~~~~~~~~~~~~
a.cc:1:1: error: 'main' does not name a type
    1 | main :: IO ()
      | ^~~~
Language: C++

#include <iostream>

using namespace std;

int main(){
  int N,K;
  cin >> N;
  cin >> K;
  if(N > K){
cout<<"YES";
}else{
cout<<"NO";
}
return 0

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

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

int main() {
  vector<int> a(3),b(3);
  for(int i=0;i<3;i++){
  	cin >> a.at(i) >> b.at(i);
  }

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


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

#include <stdio.h>

int main() {
    int n, k;
    
    scanf("%d",&n); scanf("%d",&k);
    
    if (n - k > 0) {
        printf("YES");
    
    ] else {
        printf("NO");
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: expected primary-expression before ']' token
   11 |     ] else {
      |     ^
a.cc:15:2: error: expected '}' at end of input
   15 | }
      |  ^
a.cc:3:12: note: to match this '{'
    3 | int main() {
      |            ^
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <math.h>
#include <algorithm>
#include <functional>
#include <bitset>

using namespace std;

int main()
{
	int N, K;
	cin >> N >> K;

	if (N / 2 > K) {
		cout << "YES";
	}
	else {
		cout << "NO"
	}

	return 0;
}

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

import math
import copy
import bisect








def nCast(number):
    if type(number)==str:
        return int(number)
    for idx in range(0,len(number)):
        if type(number[idx])==str:

            number[idx]=int(number[idx])
        else:
            nCast(number[idx])
    return number
    
def inputArr(w):
    l=list()
    for idx in range(0,w):
        l.append(input())
    return l
def inputArr1(w):
    l=list()
    for idx in range(0,w):
        l.append(input().split())
    return l

n=nCast(input().split())



def func():
    if n[0]%2!=0:
        n[0]+=1
    if n[1]*2==n[0]:
        return "YES"
    else:
        return "NO"
    
print(func()) 







Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import math
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include<iostream>
#include<algorithm>
#include<math.h>
#include<string>
using namespace std;
int main(){
int A, B, C, D ,E ,F;
long long int V[10000000] = {};
long long int G[10000000] = {}
string S,Sa,Sb,Sc;
long long int ans = 0;
cin >> A >> B;
if(A <= B || A <= 2)cout << "NO" << endl;
else cout << "YES" << endl;
return 0; 
}



Compiler output:
a.cc: In function 'int main()':
a.cc:10:1: error: expected ',' or ';' before 'string'
   10 | string S,Sa,Sb,Sc;
      | ^~~~~~
Language: C++

# coding: utf-8
n, k = map(int, input().split())
print("YES" if k <= (n >> 1) + (n & 1) else "NO")

Compiler output:
a.cc:1:3: error: invalid preprocessing directive #coding
    1 | # coding: utf-8
      |   ^~~~~~
a.cc:2:1: error: 'n' does not name a type
    2 | n, k = map(int, input().split())
      | ^
Language: C++

#include<cstdio>
#include<string>
#include<cstring>
#include<utility>
#include<cmath>
#include<map>
#include<queue>
#include<set>
#include<algorithm>
#include<vector>
#include<iostream>
#define ll long long
#define pii pair<int,int>
#define mp make_pair
#define fi first
#define se second
#define inf 0x7fffffff
using namespace std;
int main()
{
	int i,j,k,n,m,x,y;
	scanf("%d%d",&n,&m);
	if(if((n+1)/2)>=m)
	{
		printf("YES");
	}
	else
	{
		printf("NO");
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:12: error: expected primary-expression before 'if'
   23 |         if(if((n+1)/2)>=m)
      |            ^~
a.cc:23:12: error: expected ')' before 'if'
   23 |         if(if((n+1)/2)>=m)
      |           ~^~
      |            )
Language: C++

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





int main(){
	ios::sync_with_stdio(false);
	cin.tie(0);
	cin>>n>>k;
	if(k*2-1<=n){
		cout<<"YES";
		return 0;
	}cout<<"NO";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: 'n' was not declared in this scope; did you mean 'yn'?
   12 |         cin>>n>>k;
      |              ^
      |              yn
a.cc:12:17: error: 'k' was not declared in this scope
   12 |         cin>>n>>k;
      |                 ^
Language: C++

#include <iostream>
#include <algorithm>
using namespace std;

int main(){
　int n, k;
  cin >> n >> k;
  if(n/2 + n%2 > k ){
    cout << "YES" << endl;
  }else{
    cout << "NO" <<endl;
  }
}

Compiler output:
a.cc:6:1: error: extended character 　 is not valid in an identifier
    6 | 　int n, k;
      | ^
a.cc: In function 'int main()':
a.cc:6:1: error: '\U00003000int' was not declared in this scope
    6 | 　int n, k;
      | ^~~~~
a.cc:7:10: error: 'n' was not declared in this scope
    7 |   cin >> n >> k;
      |          ^
a.cc:7:15: error: 'k' was not declared in this scope
    7 |   cin >> n >> k;
      |               ^
Language: Java

import java.util.*;
class Main {
    Scanner sc = new Scanner(System.in);
    int	N = sc.nextInt();
    int	K = sc.nextInt();
    if(N-1>=K) {
	System.out.println("YES");
    }else {
	System.out.println("NO");
    }
}

Compiler output:
Main.java:6: error: illegal start of type
    if(N-1>=K) {
    ^
Main.java:6: error: <identifier> expected
    if(N-1>=K) {
        ^
Main.java:6: error: <identifier> expected
    if(N-1>=K) {
             ^
Main.java:8: error: illegal start of type
    }else {
     ^
4 errors
Language: Java

import java.io.*;
import java.util.*;
import java.math.*;
 
public class main {
    public static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    public static PrintWriter pw = new PrintWriter(System.out);
    public static String line;
    public static StringTokenizer st;
    public static ArrayList<ArrayList<Integer>> adjList;
    public static int[] dx = {-1, 0, 1, 0, -1, 1, 1, -1, 0};
    public static int[] dy = {0, 1, 0, -1, 1, 1, -1, -1, 0};
    public static int INF = 0x3f3f3f3f;
    public static int MOD = 1000000007;
    public static long LINF = 0x3f3f3f3f3f3f3f3fL;

    public static void main(String[] args) throws Exception {
        st = new StringTokenizer(br.readLine());
        int N = Integer.parseInt(st.nextToken());
        int K = Integer.parseInt(st.nextToken());

        pw.println((N + 1) / 2 >= K ? "YES" : "NO");


        pw.close(); 
        br.close();
    }
}

class Pair implements Comparable<Pair>{
    public long x;
    public int y;
 
    Pair(long _x, int _y){
        x = _x;
        y = _y;
    }
 
    public String toString(){
        return x + " " + y;
    }

    public int compareTo(Pair p){
        if (x != p.x) return x < p.x ? -1 : 1;
        if (y != p.y) return y < p.y ? -1 : 1;
        return 0;
    }
} 

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

#include <iostream>
#include <string>
#include <algorithm>
#include <cmath>
#include <map>
#include <vector>
#include <set>
#include <utility>
#include <cstdio>
using namespace std;
typedef long long LL;
#define rep(i, n) for (int i = 0; i < n; i++)
#define rrep(i, n, m) for (int i = n; i >= m; i--)

template <class T>
bool contain(const std::string &s, const T &v)
{
    return s.find(v) != std::string::npos;
}

int n,k;

int main()
{
    cin>>n>>k;
    if(n>k){
        cout<"YES"<<endl;
    }else{
        cout<<"NO"<<endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:27:19: error: invalid operands of types 'const char [4]' and '<unresolved overloaded function type>' to binary 'operator<<'
   27 |         cout<"YES"<<endl;
      |              ~~~~~^~~~~~
Language: C++

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

int main(){
  int n,k;
  cin >> n >> k;
  if(n>2k-2){
    cout << "YES" << endl;
  }else{
    cout << "NO" << endl;
  }
} 

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: fixed-point types not supported in C++
    7 |   if(n>2k-2){
      |        ^~
Language: C++

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

typedef long long ll;
typedef pair<int,int> p_int;
typedef pair<ll,ll> p_ll;
typedef tuple<ll,ll,ll> t3_ll;
int dx[] = {-1,0,1,0},dy[] = {0,1,0,-1};
int prime[] = {2,3,5,7,11,13,17,19,23,29,31,37,41,43,47,53,59,61,67,71,73,79,83,89,97};
const ll inf = 1e9+7;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: expected initializer before 'cin'
   14 |         cin >> n >> k;
      |         ^~~
a.cc:15:13: error: 'k' was not declared in this scope
   15 |         if (k * 2<=n+1) {
      |             ^