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

#include <iostream>
#include <map>
#include <vector>
#include <string>

#define SIZE 10000

int N, M;
std::vector< std::string > vec, p;
std::map<int, int> mp0, mp;
std::string dp[SIZE];

void init() {
    mp0[1] = 2;  mp0[2] = 5;  mp0[3] = 5;
    mp0[4] = 4;  mp0[5] = 5;  mp0[6] = 6;
    mp0[7] = 3;  mp0[8] = 7;  mp0[9] = 6;
}

std::vector< std::string > ms;

void pf(int n, int max, std::string &a) {
	if (n == 0) {
        std::string b = a;
        std::sort(b.begin(), b.end());
        std::reverse(b.begin(), b.end());
		ms.push_back(b);
		return;
	}
	for (int i=std::min(n,max); i>0; --i) {
        if (mp.find(i) != mp.end()) {
    		a += std::to_string( mp[i] );
	    	pf(n-i, i, a);
		    a.erase(a.end()-1);
        }
	}
}

bool compare(std::string &s, std::string &t) {
    if ( s.size() > t.size() ) {
        return true;
    } else if (s.size() < t.size()) {
        return false;
    } else {
        return s > t;
    }
}

void solve() {
    std::string a;
    std::vector< std::string > res;
    pf(N, N, a);
    std::sort( ms.begin(), ms.end(), compare );
    std::cout << ms[0] << std::endl;
}

int main() {
    init();
    std::cin >> N >> M;
    for (int i=0; i<M; ++i) {
        int A;
        std::cin >> A;
        mp[ mp0[A] ] = A;
    }
    // std::sort(A, A+M);
    
    solve();
    return 0;
}

Compiler output:
a.cc: In function 'void pf(int, int, std::string&)':
a.cc:24:14: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   24 |         std::sort(b.begin(), b.end());
      |              ^~~~
      |              qsort
a.cc:25:14: error: 'reverse' is not a member of 'std'
   25 |         std::reverse(b.begin(), b.end());
      |              ^~~~~~~
a.cc: In function 'void solve()':
a.cc:52:10: error: 'sort' is not a member of 'std'; did you mean 'qsort'?
   52 |     std::sort( ms.begin(), ms.end(), compare );
      |          ^~~~
      |          qsort
Language: C++

#include<bits/stdc++.h>

using namespace std;
using ll = long long;

#define sz(x) ((int)(x).size())
#define all(x) (x).begin(), (x).end()
#define debug(x) cout << #x << ": " << x << endl;
#define popcnt __builtin_popcount

const int INF = 1e9;
#typedef int long long

int cost[11]={0, 2, 5, 5, 4, 5, 6, 3, 7, 6 };
bool num[11];

int N, M;
bool flg = false;
vector<int> sel;
void dfs(int sum, vector<int>& x){
    if(sum==N){
        flg=true;
        return;
    }
    else if(sum>N) return;

    for(int i : x)
    {
        if(flg)break;
        if(!flg){
            sel.push_back(i);
            dfs(sum+i, x);
            if(!flg)sel.pop_back();
        }
    }
    return;
}

int main() {
    cin>>N>>M;
    vector<int> A(M), use;
    for(int i = 0; i < M; i++)
    {
        cin>>A[i];
        num[A[i]]=true;
        use.push_back(cost[A[i]]);
    }

    sort(all(use));
    use.erase(unique(use.begin(), use.end()), use.end());
    
    dfs(0, use);
    
    map<int, int> h;
    for(auto i : sel){
        h[i]++;
    }

    string ans;
    int cnt = 0;
    vector<pair<int, int>> p;
    for(int i = 9; i >= 1; i--)
    {
        if(cnt==h.size())break;
        if(!num[i])continue;
        for(auto x : h){
            if(cost[i]==x.first){
                p.push_back({i, x.second});
                cnt++;
                break;
            }
        }
    }
    
    for(int i = 0;i<sz(p); i++){
        for(int j = 0;j<p[i].second;j++)ans+=to_string(p[i].first);
    }
    cout<<ans<<endl;

    return 0;
}

Compiler output:
a.cc:12:2: error: invalid preprocessing directive #typedef
   12 | #typedef int long long
      |  ^~~~~~~
Language: Java

import java.util.Arrays;
import java.util.Scanner;

public class MAin {

	public static void main(String[] args) {
		Scanner scn = new Scanner(System.in);
		int N = scn.nextInt();
		int M = scn.nextInt();
		int[] Num = new int[M];
		for (int i = 0; i < M; i++) {
			Num[i] = scn.nextInt();
		}
		Arrays.sort(Num);
		int[] numnum = { 2, 5, 5, 4, 5, 6, 3, 7, 6 };
		NumSet.setNum(Num);


		NumSet[] DP = new NumSet[N+1];
		for(int i = 0;i <= N;i++) {
			for(int j = 0;j <= Math.min(N/2, 1000);j++) {
				if(DP[j] != null && DP[i-j] != null) {
					if(DP[i] == null) {
						DP[i] = new NumSet(DP[j], DP[i-j]);
					}else {
						DP[i] = NumSet.max(new NumSet(DP[j], DP[i-j]), DP[i]);
					}
				}
			}
			if(DP[i] == null) {
				for(int j = Num.length-1;j > -1;j--) {
					if(i == numnum[Num[j]-1]) {
						DP[i] = new NumSet(j);
						 break;
					}
				}
			}
		}
		System.out.println(DP[N]);

	}

}

class NumSet{
	static int[] num;
	int[] num_num;
	public NumSet(NumSet N1, NumSet N2) {
		num_num = marge(N1, N2);
	}

	public NumSet(int j) {
		num_num = new int[num.length];
		num_num[j]++;
	}

	int[] getNum(){
		return this.num;
	}

	int[] getNumNum() {
		return this.num_num;
	}

	int getSize() {
		int size = 0;
		for(int i:num_num) {
			size+= i;
		}
		return size;
	}

	int[] marge(NumSet N1, NumSet N2) {
		int[] n1 = N1.getNumNum(), n2 = N2.getNumNum();
		int length = n1.length;
		int[] merge_num_num = new int[length];
		for(int i = 0;i < length;i++) {
			merge_num_num[i] = n1[i] + n2[i];
		}
		return merge_num_num;
	}

	static void setNum(int[] Num) {
		num = Num;
	}

	static NumSet max(NumSet N1, NumSet N2) {
		if(N1.getSize() > N2.getSize()) {
			return N1;
		}
		if(N1.getSize() < N2.getSize()) {
			return N2;
		}
		int length = num.length;
		int[] n1 = N1.getNumNum();
		int[] n2 = N2.getNumNum();
		for(int i = length-1;i > -1;i--) {
			if(n1[i] > n2[i])return N1;
			if(n1[i] < n2[i])return N2;
		}
		return N1;
	}

	public String toString() {
		String str = "";
		for(int i = num.length-1;i > -1;i--) {
			for(int j = 0;j < num_num[i];j++) {
				str += num[i];
			}
		}
		return str;
	}
}


Compiler output:
Main.java:4: 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<iomanip>
#include<cmath>
#include<vector>
#include<algorithm>
#include<queue>

using namespace std;

#define int long long
#define rep(i,n) for(int i = 0; i < (n); i++)
#define INF ((long long)1e18)
#define MOD ((int)1e9+7)
#define endl "\n"

#define yn(f) ((f)?"Yes":"No")
#define YN(f) ((f)?"YES":"NO")

#define MAX 11000

int N, M, n;
int A[MAX];

string ans;
int hoge[10] = {INF,2,5,5,4,5,6,3,7,6};
int can[10];

signed main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
	cout<<fixed<<setprecision(10);
	
	priotrity_queue<int> Q;
	
	cin>>N>>M;
	
	n = N;
	
	for(int i = 0; i < M; i++){
		cin>>A[i];
		can[A[i]] = true;
	}
	
	for(int i = 0;;){
		int ma = 0;
		for(int j = 1; j < 10; j++){
			if(can[j] && n >= hoge[j] && hoge[ma] >= hoge[j]){
				ma = j;
			}
		}
		// cout<<ma<<endl;
		if(0 == ma) break;
		n -= hoge[ma];
		ans += '0' + ma;
	}
	
	
	
	// cout<<n<<endl;

	// cout<<ans<<" n-> "<<n<<endl;
	
	for(int i = ans.size()-1; i >= 0 && n; i--){
		int ma = 0;
		for(int j = 1; j < 10; j++){
			if(can[j] && n+hoge[ans[i]-'0'] >= hoge[j]){
				ma = j;
			}
		}
		// cout<<ma<<endl;
		if(0 == ma) continue;
		n -= hoge[ma];
		n += hoge[ans[i]-'0'];
		ans[i] = '0' + ma;
	}
	// cout<<ans<<" n-> "<<n<<endl;
	for(int i = 0; i < ans.size() && n; i++){
		int ma = 0;
		hoge[ma] = 0;
		for(int j = 1; j < 10; j++){
			if(can[j] && n+hoge[ans[i]-'0'] >= hoge[j] && hoge[ma] <= hoge[j]){
				ma = j;
			}
		}
		// cout<<ma<<endl;
		if(0 == ma) continue;
		n -= hoge[ma];
		n += hoge[ans[i]-'0'];
		ans[i] = '0' + ma;
		Q.push(ans[i]);
	}
	// cout<<ans<<" n-> "<<n<<endl;
	
	// cout<<ans<<endl;
	
	
	for(int i = ans.size()-1; i >= 0; i--){
		// cout<<ans[i];
		cout<<Q.top();
		Q.pop();
	}cout<<endl;
	
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:9: error: 'priotrity_queue' was not declared in this scope
   34 |         priotrity_queue<int> Q;
      |         ^~~~~~~~~~~~~~~
a.cc:11:13: error: expected primary-expression before 'long'
   11 | #define int long long
      |             ^~~~
a.cc:34:25: note: in expansion of macro 'int'
   34 |         priotrity_queue<int> Q;
      |                         ^~~
a.cc:91:17: error: 'Q' was not declared in this scope
   91 |                 Q.push(ans[i]);
      |                 ^
a.cc:100:23: error: 'Q' was not declared in this scope
  100 |                 cout<<Q.top();
      |                       ^
Language: C++

NUM = [10000, 2 , 5 , 5 , 4 , 5 , 6 , 3 , 7 , 6]
n, m = map(int, input().split())
aa = list(map(int, input().split()))

dp = ["x"] * (n + 1)
dp[0] = ""
for i in range(n):
    for a in aa:
        if i + 1 - NUM[a] >= 0 and dp[i + 1 - NUM[a]] != "x":
            tmp = dp[i + 1 - NUM[a]] + str(a)
            tmp = "".join(sorted(tmp, reverse=True))
            if int(tmp) > (0 if dp[i] == "x" else int(dp[i])):
                dp[i + 1] = tmp
print(dp[n])

Compiler output:
a.cc:1:1: error: 'NUM' does not name a type
    1 | NUM = [10000, 2 , 5 , 5 , 4 , 5 , 6 , 3 , 7 , 6]
      | ^~~
Language: C++

#include<bits/stdc++.h>
#define INF 1e9
#define llINF 1e18
#define MOD 1000000007
#define pb push_back
#define mp make_pair 
#define F first
#define S second
#define ll long long
#define ull unsigned long long
#define vi vector<ll>
#define vvi vector<vi>
#define BITLE(n) (1LL<<(n))
#define BITCNT(n) (__builtin_popcountll(n))
#define SUBS(s,f,t) (s.substr(f-1,t-f+1))
#define ALL(a) (a).begin(),(a).end()
using namespace std;
struct Grid{ll x,y,t;};
struct Edge{ll to,cost;};
struct Graph{vector<vector<Edge>>E;int V;
  const ll Inf = llINF;const int MAX_V=201010;vector<ll>d;
  Graph(int n):E(n){d.resize(MAX_V);E.resize(n);V=n;}
  void init(){for(int i=0;i<MAX_V;i++)d[i]=Inf;}
  void add_edge(ll from,ll to,ll cost){E[from].pb({to,cost});}
};
ll num[100]={0,2,5,5,4,5,6,3,7,6};
int main(){
  cin.tie(0);
  ios::sync_with_stdio(false);
  ll n,m;cin>>n>>m;
  vector<pair<ll,ll>>pll;
  bool used[100]={};
  for(int i=0;i<m;i++){
    ll nu;cin>>nu;
    used[nu]=true;
    bool fl=true;
    for(int j=0;j<pll.size();j++){
      if(pll[j].F==num[nu]){
	if(abs(pll[j].S)<nu){
	  pll.erase(pll.begin()+j);
	  break;
	}else fl=false;
      }
    }
    if(fl)
      pll.pb(mp(num[nu],-nu));
  }
  sort(ALL(pll));
  ll nn=n;
  vi ans;
  ll cnt=0;
  while(cnt<pll.size()&&nn>0){
    if(nn>=pll[cnt].F){
      ans.pb(-pll[cnt].S);
      nn-=pll[cnt].F;
    }else{
      cnt++;
    }
  }
  for(int i=0;i<ans.size();i++){
    if(nn==0)break;
    for(int j=9;j>0;j--){
      if(used[j]){
	if(nn==0)break;
	if(num[j]-num[ans[i]]>0&&ans[i]<j&&nn>=num[j]-num[ans[i]]){
	  nn-=num[j]-num[ans[i]];
	  ans[i]=j;
	  break;
	}
      }
    }
  }
  for(int i=ans.size()-1;i>=0;i--){
    if(nn==0)break;
    for(int j=9;j>0;j--){
      if(used[j]){
	if(nn==0)break;
	if(num[j]-num[ans[i]]>0&&nn>=num[j]-num[ans[i]]){
	  nn-=num[j]-num[ans[i]];
	  ans[i]=j;
	}
      }
    }
  }
  while(nn!=0){
    ll ho=ans.back();
    ans.pop_back():
      nn+=num[ho];
    for(int i=ans.size()-1;i>=0;i--){
      if(nn==0)break;
      for(int j=9;j>0;j--){
	if(used[j]){
	  if(nn==0)break;
	  if(num[j]-num[ans[i]]>0&&nn>=num[j]-num[ans[i]]){
	    nn-=num[j]-num[ans[i]];
	    ans[i]=j;
	  }
	}
      }
    }
  }
  for(ll hog:ans)cout<<hog;
  cout<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:87:19: error: expected ';' before ':' token
   87 |     ans.pop_back():
      |                   ^
      |                   ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define MOD (long long int)(1e9+7)
#define ll long long int
#define rep(i,n) for(int i=0; i<(int)(n); i++)
#define reps(i,n) for(int i=1; i<=(int)(n); i++)
#define REP(i,n) for(int i=n-1; i>=0; i--)
#define REPS(i,n) for(int i=n; i>0; i--)
#define FOR(i,a,b) for(int i=a; i<(int)(b); i++)
#define ALL(x) (x).begin(),(x).end()
#define RALL(a) (a).rbegin(), (a).rend()
#define CLR(a) memset((a), 0 ,sizeof(a))
#define PB push_back
#define MP make_pair
#define SP << " " <<
const int INF = 1001001001;
const ll LINF = 100100100100100100;
#define EPS (1e-10)
const long double PI  = acos(-1.0L);
typedef pair<int,int> PII;
typedef pair<ll,ll> PLL;
typedef pair<double,double> PDD;
typedef vector<int> VI;
typedef vector<VI> VVI;
typedef vector<ll> VL;
#define chmax(a,b) a = (((a)<(b))?(b):(a))
#define chmin(a,b) a = (((a)>(b))?(b):(a))

__attribute__((constructor))
void initial(){
	cin.tie(nullptr);
	ios::sync_with_stdio(false);
	cout << fixed << setprecision(15);
}

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


Compiler output:
a.cc: In function 'int main()':
a.cc:38:14: error: 'k' was not declared in this scope
   38 |         if(2*k-1<=n) cout<<"YES"<<endl;
      |              ^
Language: C++

#include<bitd/stdc++.h>
using namespace std;
int main()
{
  int n,k;
  cin>>n>>k;
  if(n-k>0)
    cout<<"YES";
   else
     cout<<"NO";
  return 0;
          }

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

#include<bitd/stdc++.h>
using namespace std;
int main()
{
  int n,k;
  cin>>n>>k;
  if(n-k>0)
    print("Yes);
   else
     print("No");
  return 0;
          }

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

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: lvalue required as left operand of assignment
    7 |   if(N<=K||N=1){
      |      ~~~~^~~
Language: Java

import java.util.*;
import java.util.stream.*;
import java.io.*;

public class Main {

  static Graph g;

  public static void main(String[] args) throws IOException {

    BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
    
    String[] in = br.readLine().split(" ");
    int n = Integer.parseInt(in[0]);
    int k = Integer.parseInt(in[1]);

    br.close();

    System.out.println((n+1) / 2 >= k ? "YES" : "NO");
    
  }
}

Compiler output:
Main.java:7: error: cannot find symbol
  static Graph g;
         ^
  symbol:   class Graph
  location: class Main
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N,K;cin>>N>>K;
  cout<<((N+1)/2>=K)?"Yes":"No")<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:32: error: expected ';' before ')' token
    6 |   cout<<((N+1)/2>=K)?"Yes":"No")<<endl;
      |                                ^
      |                                ;
Language: C++

#include<iostream>
using namespace std;

int main(){
    int a,b;
    cin >>a>>b;
    if (a<b)cout <<"No";
    else{
    if(a%2==0){
        if((a/2)>=b) cout<<"Yes";
        else cout <<"No";
    }
    else {
      if(((a/2)+1)>=b) cout <<"Yes";
      else cout <<"No";
    }
    }
}#include<iostream>
using namespace std;

int main(){
    int a,b;
    cin >>a>>b;
    if (a==1 && b==1)cout <<"Yes";
    else{
    if(a%2==0){
        if((a/2)>=b) cout<<"Yes";
        else cout <<"No";
    }
    else {
      if(((a/2)+1)>=b) cout <<"Yes";
      else cout <<"No";
    }
    }
}

Compiler output:
a.cc:18:2: error: stray '#' in program
   18 | }#include<iostream>
      |  ^
a.cc:18:3: error: 'include' does not name a type
   18 | }#include<iostream>
      |   ^~~~~~~
a.cc:21:5: error: redefinition of 'int main()'
   21 | int main(){
      |     ^~~~
a.cc:4:5: note: 'int main()' previously defined here
    4 | int main(){
      |     ^~~~
Language: C++

#include <iostream>
//#include <iomanip>
#include <string>
//#include <vector>
//#include <algorithm>
//#include <utility>
//#include <set>
//#include <map>
//#include <queue>
//#include <bitset>
//#include <math.h>
using namespace std ;
//using ll = long long ;
//using ld = long double ;
//using vll = vector<ll> ;
//using vvll = vector<vll> ;
//using vc = vector<char> ;
//using vvc = vector<vc> ;
//using vb = vector<bool> ;
//using vvb = vector<vb> ;
//using pll = pair<ll,ll> ;

//ll mod = 1000000007 ;
//long double pie = acos(-1) ;

//string yorn(bool a){if(a) return"Yes" ; return "No" ;}
string YorN(bool a){if(a) return"YES" ; return "NO" ;}
//ll gcd(long long a,long long b){if(b==0) return a ; return gcd(b,a%b) ;}
//ll lcm(long long a,long long b){return a/gcd(a,b)*b ;}
//ll sa(long long a,long long b){if(a>b) return a-b ; return b-a ;}
//void mysort(vector<long long> &a){sort(a.begin(),a.end()) ;}
//void myrev(vector<long long> &a){reverse(a.begin(),a.end()) ;}

int main(){
	int n,k ;
	cin >> n >> k ;
	cout << yorn((n+1)/2>=k) << endl ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:37:17: error: 'yorn' was not declared in this scope; did you mean 'YorN'?
   37 |         cout << yorn((n+1)/2>=k) << endl ;
      |                 ^~~~
      |                 YorN
Language: C++

#include <bits/stdc++.h>

using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
#define rep1(i,n) for(int i=1;i<=n;i++)
typedef long long ll;


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


Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: expected ';' before string constant
   12 |   if(n>k)cout "YES" << endl;
      |              ^~~~~~
      |              ;
Language: C++

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

int main(){
  int i,j,cnt=0;
  int n,k;
  cin>>n>>k;
  if((n+1)/2=>k)cout<<"YES";
  else cout<<"NO";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected primary-expression before '>' token
    9 |   if((n+1)/2=>k)cout<<"YES";
      |              ^
Language: C++

#include<iostream>
using namespace std;

int main(){
 	int n, k;
  	cin >> n >> k;
	if((int)(n * 0.5 + 0.5) >= k){
    	cout << "Yes\n";
    }else{
    	cout << "No\n";l
    }

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:24: error: 'l' was not declared in this scope
   10 |         cout << "No\n";l
      |                        ^
Language: C++

#include<iostream>
using namespace std;

int main(){
 	int n, k;
  	cin >> n >> k;
  	int count = 0;
  	for(int i = 0; i < n; ++i){
    	for(int j = i + 2; j < n; ++j){
        	count += 1;
        }
    }
  	if(count >= k){
      cout << "Yes\n";
    else{
      cout << "No\n";
    }
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:5: error: expected '}' before 'else'
   15 |     else{
      |     ^~~~
a.cc:13:23: note: to match this '{'
   13 |         if(count >= k){
      |                       ^
Language: C++

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

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



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

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

int main (){
  
  int N;
  int K;
  
  cin >> N >> K;
  
  if(K > N / K + 1){
    cout << "No" << endl;
  }
  else{
    cout << "Yes" << endl;
  }
}

}


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

import java.io.PrintWriter
import java.util.*

fun main(args:Array<String>){
    val sc = Scanner(System.`in`)
    val n = sc.nextInt()
    val k = sc.nextInt()
    if(2*k+1<=n){
        println("YES")   
    }
    else{
        println("NO")
    }
    return
}

Compiler output:
a.cc:5:29: error: stray '`' in program
    5 |     val sc = Scanner(System.`in`)
      |                             ^
a.cc:5:32: error: stray '`' in program
    5 |     val sc = Scanner(System.`in`)
      |                                ^
a.cc:1:1: error: 'import' does not name a type
    1 | import java.io.PrintWriter
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define pb push_back
#define mp make_pair
#define fi first
#define se second
#define be begin()
#define en end()
#define le length()
#define all(x) (x).begin(), (x).end()
#define rep(i, n) for (__typeof(n) i = 0; i < n; i++)
#define repo(i, n) for (__typeof(n) i = 1; i <= n; i++)
#define eps 1e-6
#define pi 3.141592653589793
#define c(a) cout << a << "\n";
#define a(a)         \
    for (auto i : a) \
        cout << i << " ";
typedef vector<int> vii;
typedef vector<ll> vll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
const int MOD = 1e9 + 7;
const int INF = 1e9;
int main()
{
    ll n, k
                  cin >>
              n >> k;
    if ((1 + 2 * k) <= n)
        c("YES") else c("NO")
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:19: error: expected initializer before 'cin'
   30 |                   cin >>
      |                   ^~~
a.cc:32:18: error: 'k' was not declared in this scope
   32 |     if ((1 + 2 * k) <= n)
      |                  ^
Language: C++

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

int int_len(int n) {
  int s=0;
  while(n!=0) s++, n/=10;
  return s;
}

int int_sum(int n) {
  int m=0,s=0,a=n;
  while(a!=0) s++, a/=10;
  for(int i=s-1;i>=0;i--) m+=n/((int)pow(10,i))-(n/((int)pow(10,i+1)))*10;
  return m;
}


int vec_sum(vector<int> v){
  int n=0;
  for(int i=0;i<v.size();i++) n+=v[i];
  return n;
}

int main() {
  int a,b;
  cin>>a>>b;
  if((a+1)/2>=b){
    cout<"YES"<<endl;
  }else{
    cout<<"NO"<<endl;
  }
}


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

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

int int_len(int n) {
  int s=0;
  while(n!=0) s++, n/=10;
  return s;
}

int int_sum(int n) {
  int m=0,s=0,a=n;
  while(a!=0) s++, a/=10;
  for(int i=s-1;i>=0;i--) m+=n/((int)pow(10,i))-(n/((int)pow(10,i+1)))*10;
  return m;
}


int vec_sum(vector<int> v){
  int n=0;
  for(int i=0;i<v.size();i++) n+=v[i];
  return n;
}

int main() {
  int a,b;
  cin>>a>>b;
  if((a+1)/2>=b) cout<"YES"<<endl;
  else cout<<"NO"<<endl;
}


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

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

int int_len(int n) {
  int s=0;
  while(n!=0) s++, n/=10;
  return s;
}

int int_sum(int n) {
  int m=0,s=0,a=n;
  while(a!=0) s++, a/=10;
  for(int i=s-1;i>=0;i--) m+=n/((int)pow(10,i))-(n/((int)pow(10,i+1)))*10;
  return m;
}


int vec_sum(vector<int> v){
  int n=0;
  for(int i=0;i<v.size();i++) n+=v[i];
  return n;
}

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


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

using System;

class Program{
  static void Main(string[] args) {
    int[] x = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
    int n = x[0];
    int k = x[1];
    int cnt = 0;
    for(int i = 1; i <= n; i+=2) cnt ++;
    Console.WriteLine(cnt>=k ? "YES" : "NO");
  }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:4:20: error: 'string' has not been declared
    4 |   static void Main(string[] args) {
      |                    ^~~~~~
a.cc:4:29: error: expected ',' or '...' before 'args'
    4 |   static void Main(string[] args) {
      |                             ^~~~
a.cc:12:2: error: expected ';' after class definition
   12 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Program::Main(int*)':
a.cc:5:8: error: structured binding declaration cannot have type 'int'
    5 |     int[] x = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
      |        ^~
a.cc:5:8: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:5:8: error: empty structured binding declaration
a.cc:5:11: error: expected initializer before 'x'
    5 |     int[] x = Console.ReadLine().Split(' ').Select(int.Parse).ToArray();
      |           ^
a.cc:6:13: error: 'x' was not declared in this scope
    6 |     int n = x[0];
      |             ^
a.cc:10:5: error: 'Console' was not declared in this scope
   10 |     Console.WriteLine(cnt>=k ? "YES" : "NO");
      |     ^~~~~~~
Language: C++

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

Compiler output:
a.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
    1 | #include,bits/stdc++.h>
      |         ^
a.cc: In function 'int main()':
a.cc:4:11: error: 'cin' was not declared in this scope
    4 |   int n,k;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 | #include,bits/stdc++.h>
a.cc:5:16: error: 'cout' was not declared in this scope
    5 |   if((n+1)/2<k)cout<<"NO"<<endl;
      |                ^~~~
a.cc:5:16: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:5:28: error: 'endl' was not declared in this scope
    5 |   if((n+1)/2<k)cout<<"NO"<<endl;
      |                            ^~~~
a.cc:1:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
  +++ |+#include <ostream>
    1 | #include,bits/stdc++.h>
a.cc:6:8: error: 'cout' was not declared in this scope
    6 |   else cout<<"YES"<<endl;
      |        ^~~~
a.cc:6:8: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:6:21: error: 'endl' was not declared in this scope
    6 |   else cout<<"YES"<<endl;
      |                     ^~~~
a.cc:6:21: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
Language: C++

#include <stdio.h>
int main(){
	int N=0, K=0;
	scanf("%d %d", &N, &K);
	if(K<=100&&1<=N){
		writeln((N + 1) / 2 >= K ? "YES" : "NO");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 'writeln' was not declared in this scope
    6 |                 writeln((N + 1) / 2 >= K ? "YES" : "NO");
      |                 ^~~~~~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:11: error: fixed-point types not supported in C++
    7 |   if(1+N>=2K) cout<<"YES"<<endl;
      |           ^~
Language: C++

if __name__=="__main__":
    n, k = input().split(' ')
    n = int(n)
    k = int(k)
    if k * 2 - 1 <= n:
        print('YES')
    else:
        print('NO')

Compiler output:
a.cc:6:15: warning: multi-character character constant [-Wmultichar]
    6 |         print('YES')
      |               ^~~~~
a.cc:8:15: warning: multi-character character constant [-Wmultichar]
    8 |         print('NO')
      |               ^~~~
a.cc:1:1: error: expected unqualified-id before 'if'
    1 | if __name__=="__main__":
      | ^~
Language: C++

#define _USE_MATH_DEFINES
#include<iostream>
#include<string>
#include<queue>
#include<cmath>
#include<map>
#include<set>
#include<list>
#include<iomanip>
#include<vector>
#include<random>
#include<functional>
#include<algorithm>
#include<stack>
#include<cstdio>
#include<bitset>
#include<unordered_map>
#include<climits>
#include<fstream>
using namespace std;
///////////////////library zone!!!!!!!!!!!!!!!!!!!!!!!!!!!!
typedef long long ll;
typedef long double ld;
#define all(a) (a).begin(),(a).end()
#define EPS (1e-5)
#define bit(n,k) ((n>>k)&1)
const ll Mod = 1000000007;
const ll mod = 998244353;
struct H {
	ll x, y;
	bool operator<(const H &b) const {
		if (x != b.x) return x < b.x;
		return y < b.y;
	}
	bool operator>(const H &b) const {
		if (x != b.x) return x > b.x;
		return y > b.y;
	}
	bool operator==(const H &b) const { return x == b.x&&y == b.y; }
	bool operator!=(const H &b) const { return (*this) != b; }
};
struct P {
	ll pos, cost;
	bool operator<(const P &b) const { return cost < b.cost; }
	bool operator>(const P &b) const { return cost > b.cost; }
};
struct B {
	ll to, cost;
};
struct E {
	ll from, to, cost;
	bool operator<(const E &b) const { return cost < b.cost; }
	bool operator>(const E &b) const { return cost > b.cost; }
};
template<typename T, typename U>
void chmin(T &a, U b) {
	if (a > b) a = b;
}
template<typename T, typename U>
void chmax(T &a, U b) {
	if (a < b) a = b;
}
template<typename T>
T max_0(T a) {
	if (a < 0) return 0;
	return a;
}
template<typename T>
T min_0(T a) {
	if (a > 0) return 0;
	return a;
}
ll read() {
	ll u;
	ll k = scanf("%lld", &u);
	return u;
}
ll gcd(ll i, ll j) {
	if (i > j) swap(i, j);
	if (i == 0) return j;
	return gcd(j%i, i);
}
ll mod_pow(ll x, ll n, ll p) {
	ll res = 1;
	while (n > 0) {
		if (n & 1) res = res * x % p;
		x = x * x % p;
		n >>= 1;
	}
	return res;
}//x^n%p
vector<string>split(string s, char c = ' ') {
	vector<string>vec;
	string h = "";
	for (int i = 0; i < s.size();) {
		int j = i;
		while (j < s.size() && s[j] != ' ') {
			h += s[j++];
		}
		if (h.size() > 0) vec.push_back(h);
		h = "";
		i = j + 1;
	}
	return vec;
}
const ll Inf = 3023372036854775807;
const int inf = 1500000000;
#define int long long
//----------------------------------------------------
signed main() {
	int n, k;
	cin >> n >> k;
	if (2 * k - 1 <= n) {
		cout << "YES\n";
	}
	else cout<<"NO\n"
}

Compiler output:
a.cc: In function 'int main()':
a.cc:116:26: error: expected ';' before '}' token
  116 |         else cout<<"NO\n"
      |                          ^
      |                          ;
  117 | }
      | ~
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <algorithm>
#include <cmath>
#include <iomanip>
#include <cctype>
#define len length()
#define sz size()
#define rng(i, a, b) for(int i = a; i < b; i++)
#define rep(i, n) rng(i, 0, n)
#define srt(v) sort(v.begin(), v.end())
#define rev(s) reverse(s.begin(), s.end())
#define vi(a, n) vector<int> a(n)
#define vs(a, n) vector<string> a(n)
#define vc(a, n) vector<char> a(n)
#define psb(a) push_back(a)
#define ppb pop_back()
#define erc(S, i) S.erase(S.begin() + i)
#define ers(S, i, j) S.erase(S.begin() + i, S.begin() + j)
#define sp(n) cout << setprecision(n) << fixed
#define fst(s) s.at(0)
#define lst(s) s.at(s.len - 1)
typedef long long ll;
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:30:19: error: expected primary-expression before '<' token
   30 |     if(K * 2 - 1 =< N) cout << "YES" << endl;
      |                   ^
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 k=in.nextInt();
      
      if (n%2==1){
        if (k>n/2+1)system.out.println("NO");
        else system.out.println("YES");
      }
      else if (k>n/2)system.out.println("NO");
      else system.out.println("YES");
      return;
    }
}


Compiler output:
Main.java:6: error: cannot find symbol
      Scanner in =new Scanner(system.in);
                              ^
  symbol:   variable system
  location: class Main
Main.java:11: error: package system does not exist
        if (k>n/2+1)system.out.println("NO");
                          ^
Main.java:12: error: package system does not exist
        else system.out.println("YES");
                   ^
Main.java:14: error: package system does not exist
      else if (k>n/2)system.out.println("NO");
                           ^
Main.java:15: error: package system does not exist
      else system.out.println("YES");
                 ^
5 errors
Language: Java

import java.util.*;

public class Main{
	public static void main(String[] args) {
      boolean ans=
      Scanner in =new Scanner(system.in);
      int n=in.nextInt();
      int k=in.nextInt();
      
      if (n%2==1){
        if (k>n/2+1)system.out.println("NO");
        else system.out.println("YES");
      }
      else if (k>n/2)system.out.println("NO");
      else system.out.println("YES");
      return;
    }
}


Compiler output:
Main.java:6: error: ';' expected
      Scanner in =new Scanner(system.in);
             ^
1 error
Language: Java

public static void main(int[] args) {
        int K = args[1];
        int N = args[0];

        System.out.println ((N+1)/2>=K);
    }

Compiler output:
Main.java:1: error: unnamed classes are a preview feature and are disabled by default.
public static void main(int[] args) {
              ^
  (use --enable-preview to enable unnamed classes)
1 error
Language: C++

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

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

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

#include <iostream>
int main() {
  int n, k;
  if (n >= 2*k-1) cout << "YES\n";
  else cout << "NO\n";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:19: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    4 |   if (n >= 2*k-1) cout << "YES\n";
      |                   ^~~~
      |                   std::cout
In file included from a.cc:1:
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:5:8: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    5 |   else cout << "NO\n";
      |        ^~~~
      |        std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

int main() {
  int n, k;
  scanf("%d %d", &n, &k);
  if (k > ((n + 1) / 2)) puts("NO");
  else puts("YES");
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'scanf' was not declared in this scope
    3 |   scanf("%d %d", &n, &k);
      |   ^~~~~
a.cc:4:26: error: 'puts' was not declared in this scope
    4 |   if (k > ((n + 1) / 2)) puts("NO");
      |                          ^~~~
a.cc:5:8: error: 'puts' was not declared in this scope
    5 |   else puts("YES");
      |        ^~~~
Language: C++

#include <iostream>
using namespace std;

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

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

#include <iostream>

using namespace std;
int main(void){
    
    //変数 N, Kの宣言
    int N, K;
    
    //変数 N, Kの入力
    cin >> N >> K;
    
    //NとKの差が「 1 」かどうか判定
    if((fabs(N-K)) == 1) cout << "YES" << endl;
    else if((N==1 && 1==K)) cout << "YES" << endl;
    else if(K < N)  cout << "YES" << endl;

    else cout << "NO" << endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'fabs' was not declared in this scope; did you mean 'labs'?
   13 |     if((fabs(N-K)) == 1) cout << "YES" << endl;
      |         ^~~~
      |         labs
Language: C++

#include <iostream>

using namespace std;
int main(void){
    
    //変数 N, Kの宣言
    int N, K;
    
    //変数 N, Kの入力
    cin >> N >> K;
    
    //NとKの差が「 1 」かどうか判定
    if(fabs(N-K) == 1) cout << "YES" << endl;
    else if((N==1 && 1==K)) cout << "YES" << endl;
    else if(K < N)  cout << "YES" << endl;

    else cout << "NO" << endl;
    
}



Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: 'fabs' was not declared in this scope; did you mean 'labs'?
   13 |     if(fabs(N-K) == 1) cout << "YES" << endl;
      |        ^~~~
      |        labs
Language: C++

#include <iostream>

using namespace std;
int main(void){
    
    //変数 N, Kの宣言
    int N, K;
    
    //変数 N, Kの入力
    cin >> N >> K;
    
    //NとKの差が「 1 」かどうか判定
    if(fabs(N-K) == 1) cout << "YES" << endl;
    else if((N==1 && 1==K)) cout << "YES" << endl;
    else if(K < N)  cout << "YES" << endl;

    else cout << "NO" << endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: 'fabs' was not declared in this scope; did you mean 'labs'?
   13 |     if(fabs(N-K) == 1) cout << "YES" << endl;
      |        ^~~~
      |        labs
Language: C++

#include <iostream>

using namespace std;
int main(void){
    
    //変数 N, Kの宣言
    int N, K;
    
    //変数 N, Kの入力
    cin >> N >> K;
    
    //NとKの差が「 1 」かどうか判定
    if((N==1 && 1==K)) cout << "YES" << endl;
    else if(K < N)  cout << "YES" << endl;
    else if(fabs(N-K) == 1) cout << "YES" << endl;
    else cout << "NO" << endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: 'fabs' was not declared in this scope; did you mean 'labs'?
   15 |     else if(fabs(N-K) == 1) cout << "YES" << endl;
      |             ^~~~
      |             labs
Language: C++

#include <iostream>

using namespace std;
int main(void){
    
    //変数 N, Kの宣言
    int N, K;
    
    //変数 N, Kの入力
    cin >> N >> K;
    
    //NとKの差が「 1 」かどうか判定
    if((k < (1<N)) || (N==1 && 1<=K)) cout << "YES" << endl;
    else cout << "NO" << endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'k' was not declared in this scope
   13 |     if((k < (1<N)) || (N==1 && 1<=K)) cout << "YES" << endl;
      |         ^
Language: C++

#include <iostream>

using namespace std;
int main(void){
    
    //変数 N, Kの宣言
    int N, K;
    
    //変数 N, Kの入力
    cin >> N >> K;
    
    //NとKの差が「 1 」かどうか判定
    if(k < (1<N)) || (N==1 && 1<=K)) cout << "YES" << endl;
    else cout << "NO" << endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:8: error: 'k' was not declared in this scope
   13 |     if(k < (1<N)) || (N==1 && 1<=K)) cout << "YES" << endl;
      |        ^
a.cc:13:19: error: expected primary-expression before '||' token
   13 |     if(k < (1<N)) || (N==1 && 1<=K)) cout << "YES" << endl;
      |                   ^~
Language: C++

#include <iostream>

using namespace std;
int main(void){
    
    //変数 N, Kの宣言
    int N, K;
    
    //変数 N, Kの入力
    cin >> N >> K;
    
    //NとKの差が「 1 」かどうか判定
    if(N <= K || !(N==1 && 1==K) || ) cout << "NO" << endl;
    else cout << "YES" << endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:37: error: expected primary-expression before ')' token
   13 |     if(N <= K || !(N==1 && 1==K) || ) cout << "NO" << endl;
      |                                     ^
Language: C++

#include <iostream>

using namespace std;
int main(void){
    
    //変数 N, Kの宣言
    int N, K;
    
    //変数 N, Kの入力
    cin >> N >> K;
    
    //NとKの差が「 1 」かどうか判定
    if(N > K || (N==1 && 1 <= K) cout << "YES" << endl;
    else cout << "NO" << endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:33: error: expected ';' before 'cout'
   13 |     if(N > K || (N==1 && 1 <= K) cout << "YES" << endl;
      |                                 ^~~~~
      |                                 ;
a.cc:14:5: error: expected primary-expression before 'else'
   14 |     else cout << "NO" << endl;
      |     ^~~~
a.cc:13:56: error: expected ')' before 'else'
   13 |     if(N > K || (N==1 && 1 <= K) cout << "YES" << endl;
      |       ~                                                ^
      |                                                        )
   14 |     else cout << "NO" << endl;
      |     ~~~~
Language: C++

#include <iostream>
#include <cmath>

using namespace std;
int main(void){
    
    //変数 N, Kの宣言
    int N, K;
    
    //変数 N, Kの入力
    cin >> N >> K;
    
    //NとKの差が「 1 」かどうか判定
    if((sprt(N-K)) == 1) cout << "YES" << endl;
    else cout << "NO" << endl;
    
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:9: error: 'sprt' was not declared in this scope; did you mean 'sqrt'?
   14 |     if((sprt(N-K)) == 1) cout << "YES" << endl;
      |         ^~~~
      |         sqrt
Language: C++

#include <iostream>
#include <cmath>

using namespace std;
int main(void){
    
    //変数 N, Kの宣言
    int N, K;
    
    //変数 N, Kの入力
    cin >> N >> K;
    
    //NとKの差が「 1 」かどうか判定
    if(sprt(N-K) == 1) cout << "YES" << endl;
    else cout << "NO" << endl;
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: 'sprt' was not declared in this scope; did you mean 'sqrt'?
   14 |     if(sprt(N-K) == 1) cout << "YES" << endl;
      |        ^~~~
      |        sqrt
Language: Java

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


Compiler output:
Main.java:1: error: ';' expected
import java.util.*
                  ^
1 error
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:22: error: expected ';' before 'endl'
   14 |         cout << "YES" endl;
      |                      ^~~~~
      |                      ;
a.cc:16:18: error: expected ';' before 'endl'
   16 |      cout << "NO" endl;
      |                  ^~~~~
      |                  ;
Language: C++

#include<iostream>
#include<fstream>
#include<cstdio>
#include<algorithm>
#include<cmath>
#include<vector>
#include<deque>
#include<set>
#include<map>
#include<bitset>
#include<ctime>
#include<queue>
using namespace std;
#define int long long
#define mn 100005
#define inf 4444444444444444444
#define mod 1000000009
#define FLN "test"
#define pii pair <int, int>
#define XX first
#define YY second

signed main()
{
#ifdef lowie
	freopen(FLN".inp", "r", stdin);
	freopen(FLN".out", "w", stdout);
#endif
	ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
  
  	int n, k
    cin>>n>>k;
  	if (2*k<=n+1) cout<<"YES";
  else cout<<"NO";
    
}

// PLEASE REMOVE "cout" AND "cerr" DEBUG LINES BEFORE SUBMITTING PROBLEMS
// Code by low_
// Contact me via mail: dung.totuan01@gmail.com
// ...or codeforces: www.codeforces.com/profiles/low_
// ...or if you're interested in food: www.instagram.com/lowie_review/


Compiler output:
a.cc: In function 'int main()':
a.cc:34:5: error: expected initializer before 'cin'
   34 |     cin>>n>>k;
      |     ^~~
a.cc:35:15: error: 'k' was not declared in this scope
   35 |         if (2*k<=n+1) cout<<"YES";
      |               ^
Language: C++

#inclued <bits/stdc++.h>

using namespace std;

int main(){
int a, b;
cin >> a >> b;
if(a > b && b > 1){
cout <<"YES";
}
else{
    cout <<"NO";
}
}


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inclued; did you mean #include?
    1 | #inclued <bits/stdc++.h>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:7:1: error: 'cin' was not declared in this scope
    7 | cin >> a >> b;
      | ^~~
a.cc:1:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
  +++ |+#include <iostream>
    1 | #inclued <bits/stdc++.h>
a.cc:9:1: error: 'cout' was not declared in this scope
    9 | cout <<"YES";
      | ^~~~
a.cc:9:1: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:12:5: error: 'cout' was not declared in this scope
   12 |     cout <<"NO";
      |     ^~~~
a.cc:12:5: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: Java

import java.util.*;
import java.math.*;
import java.io.*;

public class main {

	public static void main(String args[]) throws IOException{

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
  	StringTokenizer st = new StringTokenizer(br.readLine());

	int n= Integer.parseInt(st.nextToken());
	int k = Integer.parseInt(st.nextToken());
	int total =0;

	if( n%2 == 0) {
		total = n/2;
	} else {
		total = (n+1)/2;
	}

	if(k <= total) {
		System.out.println("YES");
	} else {
		System.out.println("NO");
	}
	}
}

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: Java

import java.util.*;
import java.math.BigDecimal;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import java.util.Collections;
import java.io.*;

public class testList {

	public static void main(String args[]) throws IOException{

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
  	StringTokenizer st = new StringTokenizer(br.readLine());

	int n= Integer.parseInt(st.nextToken());
	int k = Integer.parseInt(st.nextToken());
	int total =0;

	if( n%2 == 0) {
		total = n/2;
	} else {
		total = (n+1)/2;
	}

	if(k <= total) {
		System.out.println("YES");
	} else {
		System.out.println("NO");
	}
	}
}

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

import java.util.*;
import java.math.BigDecimal;
import java.util.List;
import java.util.stream.Collectors;
import java.util.stream.Stream;
import java.util.Collections;
import java.io.*;

public class taskA {

	public static void main(String args[]) throws IOException{

	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
  	StringTokenizer st = new StringTokenizer(br.readLine());

	int n= Integer.parseInt(st.nextToken());
	int k = Integer.parseInt(st.nextToken());
	int total =0;

	if( n%2 == 0) {
		total = n/2;
	} else {
		total = (n+1)/2;
	}

	if(k <= total) {
		System.out.println("YES");
	} else {
		System.out.println("NO");
	}
	}
}

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

import java.util.*;
import java.lang.*; 
import java.io.*;
import java.math.*;

public class taskA {

  public static void main(String[] arguments) {

  	BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
  	StringTokenizer st = new StringTokenizer(br.readLine());

	int n= Integer.parseInt(st.nextToken());
	int k = Integer.parseInt(st.nextToken());
	int total =0;

	if( n%2 == 0) {
		total = n/2;
	} else {
		total = (n+1)/2;
	}

	if(k <= total) {
		System.out.println("YES");
	} else {
		System.out.println("NO");
	}
  }
}

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

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

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

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