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

#include<stdio.h>
#include<string.h>
#include<math.h>
#include<conio.h>
#include<windows.h>
#include<stdlib.h>

int main()
{
    int n,k;
    int cnt=0;
    scanf("%d %d",&n,&k);

    int arr[n];
    for(int i=0;i<n;i++)
    scanf("%d",&arr[i]);

    for(int i=0;i<n;i++){
        if(arr[i]>=k)
            cnt++;
    }

    printf("%d\n",cnt);


return 0;
}


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

#include<stdio.h>
int main(void){
  int n,k,ans=0;
  scanf("%d%d",&n,&k);
  int a[n];
  for(i=0;i<n;i++){
    scanf("%d",&a[i]);
    if(a[i]>=k) ans++;
  }
  printf("%d",ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:7: error: 'i' undeclared (first use in this function)
    6 |   for(i=0;i<n;i++){
      |       ^
main.c:6:7: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main(void){
  int n,k,ans=0;
  scanf("%d%d",&n,&k);
  for(i=0;i<n;i++){
    scanf("%d",&a[i]);
    if(a[i]>=k) ans++;
  }
  printf("%d",ans);
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:7: error: 'i' undeclared (first use in this function)
    5 |   for(i=0;i<n;i++){
      |       ^
main.c:5:7: note: each undeclared identifier is reported only once for each function it appears in
main.c:6:17: error: 'a' undeclared (first use in this function)
    6 |     scanf("%d",&a[i]);
      |                 ^
Language: C++

#include<bits/stdc++.H>
using namespace std;
typedef long long int ll;
int main()
{
  ll n,k,c=0;
  cin>>n>>k;
  vector<int>v(n);
  for(int i=0;i<n;i++) cin>>v[i];
  for(int i=0;i<n;i++) {
    if(v[i]>=k) c++;
  }
  cout<<c<<"\n";
}


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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N,K;
  cin >>N>>K;
     vector<int> H(N);
   for (int i = 0; i < N; i++) {
    cin >> H.at(i);
  }
  
  int count=0;
  for (int i = 0; i < N; i++) {
  if(H[i]=>K){
    count++;
}
  }
  cout <<count<<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:11: error: expected primary-expression before '>' token
   14 |   if(H[i]=>K){
      |           ^
Language: C++

#include "stdafx.h" //プリインクルードされている場合はコメントアウト
#include <iostream>
#include <string>
#include <cstdlib> //func147bでインクルード
#include <vector>  //func146b
using namespace std;

void func142b()
{
    int n, k,h;
    int count = 0;
    vector<int> v;
    cin >> n >> k;
    for (int i = 0; i < n; ++i) {
        cin >> h;
        v.emplace_back(h);
    }
    for(int i=0; i<n ; ++i){
        if (v[i] >= k) count++;
    }
    cout << count << endl;
}

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

Compiler output:
a.cc:1:10: fatal error: stdafx.h: No such file or directory
    1 | #include "stdafx.h" //プリインクルードされている場合はコメントアウト
      |          ^~~~~~~~~~
compilation terminated.
Language: Java

import java.util.Scanner;
class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int n = sc.nextInt();
    int k = sc.nextInt();
    int[] height = new int[n];
    int num = 0;
    for(int i = 0; i < n; i++){
      t = sc.nextInt();
      if(t>=k){
        num++;
      }
    }
    System.out.println(num);
  }
}

Compiler output:
Main.java:10: error: cannot find symbol
      t = sc.nextInt();
      ^
  symbol:   variable t
  location: class Main
Main.java:11: error: cannot find symbol
      if(t>=k){
         ^
  symbol:   variable t
  location: class Main
2 errors
Language: C++

5 1
100 200 300 40#include<bits/stdc++.h>
using namespace std;

int main(){
    int N,K,h;
    int ans = 0;
    cin >> N >> K;
    for (int a = 0; a < N;a++){
        cin >> h;
        if(h>=K){
            ans++;
        }
    }
    cout << ans << endl;
}


Compiler output:
a.cc:2:15: error: stray '#' in program
    2 | 100 200 300 40#include<bits/stdc++.h>
      |               ^
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 5 1
      | ^
a.cc: In function 'int main()':
a.cc:8:5: error: 'cin' was not declared in this scope
    8 |     cin >> N >> K;
      |     ^~~
a.cc:15:5: error: 'cout' was not declared in this scope
   15 |     cout << ans << endl;
      |     ^~~~
a.cc:15:20: error: 'endl' was not declared in this scope
   15 |     cout << ans << endl;
      |                    ^~~~
Language: C++

/*B - Roller Coaster*/

#include <bits/Stdc++.h>

using namespace std;

int main(){

	ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);

	int friends;
	int ans = 0;
	int heigh;
	int h;

	cin >> friends >> heigh;

	for (int i = 0; i < friends; ++i)
	{
		cin >> h;
		if(h >= heigh)
			ans++;
	}

	cout << ans;
	
	return 0;
}

Compiler output:
a.cc:3:10: fatal error: bits/Stdc++.h: No such file or directory
    3 | #include <bits/Stdc++.h>
      |          ^~~~~~~~~~~~~~~
compilation terminated.
Language: C++

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

int main() {
  int n, k, h;
  cin >> n;
  cin >> k;
  for (int i = 0; i < n; i++) {
    cin >> h;
    if (h < k) {
      n--;
    }
  }
  cout << n << endl;
  return 0;
｝

Compiler output:
a.cc: In function 'int main()':
a.cc:17:1: error: '\U0000ff5d' was not declared in this scope
   17 | ｝
      | ^~
a.cc:17:3: error: expected '}' at end of input
   17 | ｝
      |   ^
a.cc:5:12: note: to match this '{'
    5 | int main() {
      |            ^
Language: C++

#include<iostream>
#include<vector>
#include<algorithm>

int main()
{
int n, k; std::cin >> n >> k;
int a;
vector<int> h;
for(int i = 0; i < n; ++i)
{
cin >> a;
h.emplace_back(a);
}
std::sort(h.begin(), h.end());


auto itr = std::find(h.begin(), h.end(), k);

std::cout << h.end() - itr;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:1: error: 'vector' was not declared in this scope
    9 | vector<int> h;
      | ^~~~~~
a.cc:9:1: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:9:8: error: expected primary-expression before 'int'
    9 | vector<int> h;
      |        ^~~
a.cc:12:1: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
   12 | cin >> a;
      | ^~~
      | 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:13:1: error: 'h' was not declared in this scope
   13 | h.emplace_back(a);
      | ^
a.cc:15:11: error: 'h' was not declared in this scope
   15 | std::sort(h.begin(), h.end());
      |           ^
Language: C++

#include <iostream>
#include <map>
#include <set>
#include <vector>
#include <algorithm>
#include <string>
#include <math.h>
#include <iomanip>


#define rep(i,n) for(int i=0; i< (n); ++i)

using namespace std;
void B_142()
{
  int N, K;
  cin >> N >> K;

  int count = 0;
  for (int i = 0; i < N; ++i)
  {
    int h;
    cin >> h;
    if (N <= h) ++count;
  }
  cout << count << endl;
}

Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

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

int main(){
  int N,K;
  vector<int> h(N);
  for(int i=0;i<N;i++){
    cin>>h.at(i);
  }
  sort(h.begin(),h.end());
  reverse(h.begin(),h.end());
  int i=0;
  while(h.at(i)>=K){
    i++;
    if(i==N){
      break;
    }
  }
  cout<<i<<endl;

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

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for(ll i = 0; i < (ll)(n); i++)
#define rep2(i, a, n) for(ll i = a; i < (ll)(n); i++)
#define memi cout << endl
#define kono(n) cout << fixed << setprecision(n)
#define all(x) (x).begin(),(x).end()
#define pb push_back
#define hina cout << ‘ ‘
const ll mei = (ll)1e9 + 7;

int main(){
  ll n, k, g;
  cin >> n >> k;
  ll a[n];
  rep(i, n)
    cin >> a[i];
  sort(all(a));
  g = n;
  while(true){
    if(a[n - g] < k)
      g--;
    else{
      cout << g;
      memi;
      return 0;
    }
    if(g == 0){
      cout << 0;
      memi;
      return 0;
    }
  }
}

Compiler output:
a.cc:10:22: error: extended character ‘ is not valid in an identifier
   10 | #define hina cout << ‘ ‘
      |                      ^
a.cc:10:24: error: extended character ‘ is not valid in an identifier
   10 | #define hina cout << ‘ ‘
      |                        ^
a.cc: In function 'int main()':
a.cc:8:20: error: request for member 'begin' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    8 | #define all(x) (x).begin(),(x).end()
      |                    ^~~~~
a.cc:19:8: note: in expansion of macro 'all'
   19 |   sort(all(a));
      |        ^~~
a.cc:8:32: error: request for member 'end' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    8 | #define all(x) (x).begin(),(x).end()
      |                                ^~~
a.cc:19:8: note: in expansion of macro 'all'
   19 |   sort(all(a));
      |        ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for(ll i = 0; i < (ll)(n); i++)
#define rep2(i, a, n) for(ll i = a; i < (ll)(n); i++)
#define memi cout << endl
#define kono(n) cout << fixed << setprecision(n)
#define all(c) (c).begin(), (c).end()
#define pb push_back
#define hina cout << ‘ ‘
const ll mei = (ll)1e9 + 7;

int main(){
  ll n, k, g;
  cin >> n >> k;
  ll a[n];
  rep(i, n)
    cin >> a[i];
  sort(all(a));
  g = n;
  while(true){
    if(a[n - g] < k)
      g--;
    else{
      cout << g;
      memi;
      return 0;
    }
    if(g == 0){
      cout << 0;
      memi;
      return 0;
    }
  }
}

Compiler output:
a.cc:10:22: error: extended character ‘ is not valid in an identifier
   10 | #define hina cout << ‘ ‘
      |                      ^
a.cc:10:24: error: extended character ‘ is not valid in an identifier
   10 | #define hina cout << ‘ ‘
      |                        ^
a.cc: In function 'int main()':
a.cc:8:20: error: request for member 'begin' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    8 | #define all(c) (c).begin(), (c).end()
      |                    ^~~~~
a.cc:19:8: note: in expansion of macro 'all'
   19 |   sort(all(a));
      |        ^~~
a.cc:8:33: error: request for member 'end' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    8 | #define all(c) (c).begin(), (c).end()
      |                                 ^~~
a.cc:19:8: note: in expansion of macro 'all'
   19 |   sort(all(a));
      |        ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for(ll i = 0; i < (ll)(n); i++)
#define rep2(i, a, n) for(ll i = a; i < (ll)(n); i++)
#define memi cout << endl
#define kono(n) cout << fixed << setprecision(n)
#define all(c) c.begin(), c.end()
#define pb push_back
#define hina cout << ‘ ‘
const ll mei = (ll)1e9 + 7;

int main(){
  ll n, k, g;
  cin >> n >> k;
  ll a[n];
  rep(i, n)
    cin >> a[i];
  sort(all(a));
  g = n;
  while(true){
    if(a[n - g] < k)
      g--;
    else{
      cout << g;
      memi;
      return 0;
    }
    if(g == 0){
      cout << 0;
      memi;
      return 0;
    }
  }
}

Compiler output:
a.cc:10:22: error: extended character ‘ is not valid in an identifier
   10 | #define hina cout << ‘ ‘
      |                      ^
a.cc:10:24: error: extended character ‘ is not valid in an identifier
   10 | #define hina cout << ‘ ‘
      |                        ^
a.cc: In function 'int main()':
a.cc:8:18: error: request for member 'begin' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    8 | #define all(c) c.begin(), c.end()
      |                  ^~~~~
a.cc:19:8: note: in expansion of macro 'all'
   19 |   sort(all(a));
      |        ^~~
a.cc:8:29: error: request for member 'end' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    8 | #define all(c) c.begin(), c.end()
      |                             ^~~
a.cc:19:8: note: in expansion of macro 'all'
   19 |   sort(all(a));
      |        ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for(ll i = 0; i < (ll)(n); i++)
#define rep2(i, a, n) for(ll i = a; i < (ll)(n); i++)
#define memi cout << endl
#define kono(n) cout << fixed << setprecision(n)
#define all(c) c.begin(), c.end()
#define pb push_back
#define hina cout << ‘ ‘
const ll mei = (int)1e9 + 7;

int main(){
  ll n, k, g;
  cin >> n >> k;
  ll a[n];
  rep(i, n)
    cin >> a[i];
  sort(all(a));
  g = n;
  while(true){
    if(a[n - g] < k)
      g--;
    else{
      cout << g;
      memi;
      return 0;
    }
    if(g == 0){
      cout << 0;
      memi;
      return 0;
    }
  }
}

Compiler output:
a.cc:10:22: error: extended character ‘ is not valid in an identifier
   10 | #define hina cout << ‘ ‘
      |                      ^
a.cc:10:24: error: extended character ‘ is not valid in an identifier
   10 | #define hina cout << ‘ ‘
      |                        ^
a.cc: In function 'int main()':
a.cc:8:18: error: request for member 'begin' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    8 | #define all(c) c.begin(), c.end()
      |                  ^~~~~
a.cc:19:8: note: in expansion of macro 'all'
   19 |   sort(all(a));
      |        ^~~
a.cc:8:29: error: request for member 'end' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    8 | #define all(c) c.begin(), c.end()
      |                             ^~~
a.cc:19:8: note: in expansion of macro 'all'
   19 |   sort(all(a));
      |        ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, n) for(ll i = 0; i < (ll)(n); i++)
#define rep2(i, a, n) for(ll i = a; i < (ll)(n); i++)
#define memi cout << endl
#define kono(n) cout << fixed << setprecision(n)
#define all(c) c.begin(), c.end()
#define pb push_back
#define hina cout << ‘ ‘
const mei = (int)1e9 + 7;

int main(){
  ll n, k, g;
  cin >> n >> k;
  ll a[n];
  rep(i, n)
    cin >> a[i];
  sort(all(a));
  g = n;
  while(true){
    if(a[n - g] < k)
      g--;
    else{
      cout << g;
      memi;
      return 0;
    }
    if(g == 0){
      cout << 0;
      memi;
      return 0;
    }
  }
}

Compiler output:
a.cc:10:22: error: extended character ‘ is not valid in an identifier
   10 | #define hina cout << ‘ ‘
      |                      ^
a.cc:10:24: error: extended character ‘ is not valid in an identifier
   10 | #define hina cout << ‘ ‘
      |                        ^
a.cc:11:7: error: 'mei' does not name a type; did you mean 'memi'?
   11 | const mei = (int)1e9 + 7;
      |       ^~~
      |       memi
a.cc: In function 'int main()':
a.cc:8:18: error: request for member 'begin' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    8 | #define all(c) c.begin(), c.end()
      |                  ^~~~~
a.cc:19:8: note: in expansion of macro 'all'
   19 |   sort(all(a));
      |        ^~~
a.cc:8:29: error: request for member 'end' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    8 | #define all(c) c.begin(), c.end()
      |                             ^~~
a.cc:19:8: note: in expansion of macro 'all'
   19 |   sort(all(a));
      |        ^~~
Language: C++

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

typedef long long ll;
#define rep(i, n) for(ll i = 0; i < (ll)(n); i++)
#define memi cout << endl
#define kono(n) cout << fixed << setprecision(n)
#define all(x) x.begin(), x.end()
#define pb push_back
#define hina cout << ' '
#pragma GCC
const ll mei = (int)1e9 + 7;

int main(){
  ll n, k, g;
  cin >> n >> k;
  ll a[n];
  rep(i, n)
    cin >> a[i];
  sort(all(a));
  g = n;
  while(true){
    if(a[n - g] < k)
      g--;
    else{
      cout << g;
      memi;
      return 0;
    }
    if(g == 0){
      cout << 0;
      memi;
      return 0;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: request for member 'begin' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    8 | #define all(x) x.begin(), x.end()
      |                  ^~~~~
a.cc:20:8: note: in expansion of macro 'all'
   20 |   sort(all(a));
      |        ^~~
a.cc:8:29: error: request for member 'end' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    8 | #define all(x) x.begin(), x.end()
      |                             ^~~
a.cc:20:8: note: in expansion of macro 'all'
   20 |   sort(all(a));
      |        ^~~
Language: C++

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

typedef long long ll;
#define rep(i, n) for(ll i = 0; i < (ll)(n); i++)
#define memi cout << endl
#define kono(n) cout << fixed << setprecision(n)
#define all(x) (x).begin(), (x).end()
#define pb push_back
#define hina cout << ' '
#pragma GCC
const ll mei = (int)1e9 + 7;

int main(){
  ll n, k, g;
  cin >> n >> k;
  ll a[n];
  rep(i, n)
    cin >> a[i];
  sort(all(a));
  g = n;
  while(true){
    if(a[n - g] < k)
      g--;
    else{
      cout << g;
      memi;
      return 0;
    }
    if(g == 0){
      cout << 0;
      memi;
      return 0;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: request for member 'begin' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    8 | #define all(x) (x).begin(), (x).end()
      |                    ^~~~~
a.cc:20:8: note: in expansion of macro 'all'
   20 |   sort(all(a));
      |        ^~~
a.cc:8:33: error: request for member 'end' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    8 | #define all(x) (x).begin(), (x).end()
      |                                 ^~~
a.cc:20:8: note: in expansion of macro 'all'
   20 |   sort(all(a));
      |        ^~~
Language: C++

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

typedef long long ll;
#define rep(i, n) for(ll i = 0; i < (ll)(n); i++)
#define memi cout << endl
#define kono(n) cout << fixed << setprecision(n)
#define all(x) (x).begin(), (x).end()
#define pb push_back
#define hina cout << ' '
#pragma GCC
const ll mei = (int)1e9 + 7;

int main(){
  ll n, k, g;
  cin >> n >> k;
  int a[n];
  rep(i, n)
    cin >> a[i];
  sort(all(a));
  g = n;
  while(true){
    if(a[n - g] < k)
      g--;
    else{
      cout << g;
      memi;
      return 0;
    }
    if(g == 0){
      cout << 0;
      memi;
      return 0;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: request for member 'begin' in 'a', which is of non-class type 'int [n]'
    8 | #define all(x) (x).begin(), (x).end()
      |                    ^~~~~
a.cc:20:8: note: in expansion of macro 'all'
   20 |   sort(all(a));
      |        ^~~
a.cc:8:33: error: request for member 'end' in 'a', which is of non-class type 'int [n]'
    8 | #define all(x) (x).begin(), (x).end()
      |                                 ^~~
a.cc:20:8: note: in expansion of macro 'all'
   20 |   sort(all(a));
      |        ^~~
Language: C++

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

typedef long long ll;
#define rep(i, n) for(ll i = 0; i < (ll)(n); i++)
#define memi cout << endl
#define kono(n) cout << fixed << setprecision(n)
#define all(x) (x).begin(), (x).end()
#define pb push_back
#define mei cout << ' '
#pragma GCC
const ll hina = (int)1e9 + 7;

int main(){
  ll n, k, g;
  cin >> n >> k;
  ll a[n];
  rep(i, n)
    cin >> a[i];
  sort(all(a));
  g = n;
  while(true){
    if(a[n - g] < k)
      g--;
    else{
      cout << g;
      memi;
      return 0;
    }
    if(g == 0){
      cout << 0;
      memi;
      return 0;
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:20: error: request for member 'begin' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    8 | #define all(x) (x).begin(), (x).end()
      |                    ^~~~~
a.cc:20:8: note: in expansion of macro 'all'
   20 |   sort(all(a));
      |        ^~~
a.cc:8:33: error: request for member 'end' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    8 | #define all(x) (x).begin(), (x).end()
      |                                 ^~~
a.cc:20:8: note: in expansion of macro 'all'
   20 |   sort(all(a));
      |        ^~~
Language: C++

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

#define rep(i, n) for(ll i = 0; i < (ll)(n); i++)
#define memi cout << endl
#define kono(n) cout << fixed << setprecision(n)
#define all(x) (x).begin(), (x).end()
#define pb push_back
#define mei cout << ' '
#pragma GCC
const ll hina = (int)1e9 + 7;
typedef long long ll;

int main(){
  ll n, k, g;
  cin >> n >> k;
  ll a[n];
  rep(i, n)
    cin >> a[i];
  sort(all(a));
  g = n;
  while(true){
    if(a[n - g] < k)
      g--;
    else{
      cout << g;
      memi;
      return 0;
    }
    if(g == 0){
      cout << 0;
      memi;
      return 0;
    }
  }
}

Compiler output:
a.cc:11:7: error: 'll' does not name a type; did you mean 'all'?
   11 | const ll hina = (int)1e9 + 7;
      |       ^~
      |       all
a.cc: In function 'int main()':
a.cc:7:20: error: request for member 'begin' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    7 | #define all(x) (x).begin(), (x).end()
      |                    ^~~~~
a.cc:20:8: note: in expansion of macro 'all'
   20 |   sort(all(a));
      |        ^~~
a.cc:7:33: error: request for member 'end' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    7 | #define all(x) (x).begin(), (x).end()
      |                                 ^~~
a.cc:20:8: note: in expansion of macro 'all'
   20 |   sort(all(a));
      |        ^~~
Language: C++

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

#define rep(i, n) for(ll i = 0; i < (ll)(n); i++)
#define memi cout << endl
#define kono(n) cout << fixed << setprecision(n)
#define all(x) (x).begin(), (x).end()
#define pb push_back
#define mei cout << ' '
#pragma GCC
const hina = (int)1e9 + 7;
typedef long long ll;

int main(){
  ll n, k, g;
  cin >> n >> k;
  ll a[n];
  rep(i, n)
    cin >> a[i];
  sort(all(a));
  g = n;
  while(true){
    if(a[n - g] < k)
      g--;
    else{
      cout << g;
      memi;
      return 0;
    }
    if(g == 0){
      cout << 0;
      memi;
      return 0;
    }
  }
}

Compiler output:
a.cc:11:7: error: 'hina' does not name a type
   11 | const hina = (int)1e9 + 7;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:7:20: error: request for member 'begin' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    7 | #define all(x) (x).begin(), (x).end()
      |                    ^~~~~
a.cc:20:8: note: in expansion of macro 'all'
   20 |   sort(all(a));
      |        ^~~
a.cc:7:33: error: request for member 'end' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    7 | #define all(x) (x).begin(), (x).end()
      |                                 ^~~
a.cc:20:8: note: in expansion of macro 'all'
   20 |   sort(all(a));
      |        ^~~
Language: C++

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

#define rep(i, n) for(ll i = 0; i < (ll)(n); i++)
#define memi cout << endl
#define kono(n) cout << fixed << setprecision(n)
#define all(x) (x).begin(), (x).end()
#define pb push_back
#define hina cout << ' '
#pragma GCC
const (ll)mei = (int)1e9 + 7;
typedef long long ll;

int main(){
  ll n, k, g;
  cin >> n >> k;
  ll a[n];
  rep(i, n)
    cin >> a[i];
  sort(all(a));
  g = n;
  while(true){
    if(a[n - g] < k)
      g--;
    else{
      cout << g;
      memi;
      return 0;
    }
    if(g == 0){
      cout << 0;
      memi;
      return 0;
    }
  }
}

Compiler output:
a.cc:11:11: error: expected initializer before 'mei'
   11 | const (ll)mei = (int)1e9 + 7;
      |           ^~~
a.cc: In function 'int main()':
a.cc:7:20: error: request for member 'begin' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    7 | #define all(x) (x).begin(), (x).end()
      |                    ^~~~~
a.cc:20:8: note: in expansion of macro 'all'
   20 |   sort(all(a));
      |        ^~~
a.cc:7:33: error: request for member 'end' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    7 | #define all(x) (x).begin(), (x).end()
      |                                 ^~~
a.cc:20:8: note: in expansion of macro 'all'
   20 |   sort(all(a));
      |        ^~~
Language: C++

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

#define rep(i, n) for(ll i = 0; i < (ll)(n); i++)
#define memi cout << endl
#define kono(n) cout << fixed << setprecision(n)
#define all(x) (x).begin(), (x).end()
#define pb push_back
#define hina cout << ' '
#pragma GCC
const ll mei = (int)1e9 + 7;
typedef long long ll;

int main(){
  ll n, k, g;
  cin >> n >> k;
  ll a[n];
  rep(i, n)
    cin >> a[i];
  sort(all(a));
  g = n;
  while(true){
    if(a[n - g] < k)
      g--;
    else{
      cout << g;
      memi;
      return 0;
    }
    if(g == 0){
      cout << 0;
      memi;
      return 0;
    }
  }
}

Compiler output:
a.cc:11:7: error: 'll' does not name a type; did you mean 'all'?
   11 | const ll mei = (int)1e9 + 7;
      |       ^~
      |       all
a.cc: In function 'int main()':
a.cc:7:20: error: request for member 'begin' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    7 | #define all(x) (x).begin(), (x).end()
      |                    ^~~~~
a.cc:20:8: note: in expansion of macro 'all'
   20 |   sort(all(a));
      |        ^~~
a.cc:7:33: error: request for member 'end' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    7 | #define all(x) (x).begin(), (x).end()
      |                                 ^~~
a.cc:20:8: note: in expansion of macro 'all'
   20 |   sort(all(a));
      |        ^~~
Language: C++

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

#define rep(i, n) for(ll i = 0; i < (ll)(n); i++)
#define memi cout << endl
#define kono(n) cout << fixed << setprecision(n)
#define all(x) (x).begin(), (x).end()
#define pb push_back
#pragma GCC
const mei = (int)1e9 + 7;
typedef long long ll;

int main(){
  ll n, k, g;
  cin >> n >> k;
  ll a[n];
  rep(i, n)
    cin >> a[i];
  sort(all(a));
  g = n;
  while(true){
    if(a[n - g] < k)
      g--;
    else{
      cout << g;
      memi;
      return 0;
    }
    if(g == 0){
      cout << 0;
      memi;
      return 0;
    }
  }
}

Compiler output:
a.cc:10:7: error: 'mei' does not name a type; did you mean 'memi'?
   10 | const mei = (int)1e9 + 7;
      |       ^~~
      |       memi
a.cc: In function 'int main()':
a.cc:7:20: error: request for member 'begin' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    7 | #define all(x) (x).begin(), (x).end()
      |                    ^~~~~
a.cc:19:8: note: in expansion of macro 'all'
   19 |   sort(all(a));
      |        ^~~
a.cc:7:33: error: request for member 'end' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    7 | #define all(x) (x).begin(), (x).end()
      |                                 ^~~
a.cc:19:8: note: in expansion of macro 'all'
   19 |   sort(all(a));
      |        ^~~
Language: C++

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

#define rep(i, n) for(ll i = 0; i < (ll)(n); i++)
#define memi cout << endl
#define kono(n) cout << fixed << setprecision(n)
#define all(x) (x).begin(), (x).end()
#define pb push_back
const mei = (int)1e9 + 7;
typedef long long ll;

int main(){
  ll n, k, g;
  cin >> n >> k;
  ll a[n];
  rep(i, n)
    cin >> a[i];
  sort(all(a));
  g = n;
  while(true){
    if(a[n - g] < k)
      g--;
    else{
      cout << g;
      memi;
      return 0;
    }
    if(g == 0){
      cout << 0;
      memi;
      return 0;
    }
  }
}

Compiler output:
a.cc:9:7: error: 'mei' does not name a type; did you mean 'memi'?
    9 | const mei = (int)1e9 + 7;
      |       ^~~
      |       memi
a.cc: In function 'int main()':
a.cc:7:20: error: request for member 'begin' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    7 | #define all(x) (x).begin(), (x).end()
      |                    ^~~~~
a.cc:18:8: note: in expansion of macro 'all'
   18 |   sort(all(a));
      |        ^~~
a.cc:7:33: error: request for member 'end' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    7 | #define all(x) (x).begin(), (x).end()
      |                                 ^~~
a.cc:18:8: note: in expansion of macro 'all'
   18 |   sort(all(a));
      |        ^~~
Language: C++

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

#define rep(i, n) for(ll i = 0; i < (ll)(n); i++);
#define memi cout << endl;
#define kono(n) cout << fixed << setprecision(n);
#define all(x) (x).begin(), (x).end();
#define pb push_back;
const mei = (int)1e9 + 7;
typedef long long ll;

int main(){
  ll n, k, g;
  cin >> n >> k;
  ll a[n];
  rep(i, n)
    cin >> a[i];
  sort(all(a));
  g = n;
  while(true){
    if(a[n - g] < k)
      g--;
    else{
      cout << g;
      memi;
      return 0;
    }
    if(g == 0){
      cout << 0;
      memi;
      return 0;
    }
  }
}

Compiler output:
a.cc:9:7: error: 'mei' does not name a type; did you mean 'memi'?
    9 | const mei = (int)1e9 + 7;
      |       ^~~
      |       memi
a.cc: In function 'int main()':
a.cc:17:14: error: 'i' was not declared in this scope
   17 |     cin >> a[i];
      |              ^
a.cc:7:20: error: request for member 'begin' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    7 | #define all(x) (x).begin(), (x).end();
      |                    ^~~~~
a.cc:18:8: note: in expansion of macro 'all'
   18 |   sort(all(a));
      |        ^~~
a.cc:7:33: error: request for member 'end' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    7 | #define all(x) (x).begin(), (x).end();
      |                                 ^~~
a.cc:18:8: note: in expansion of macro 'all'
   18 |   sort(all(a));
      |        ^~~
a.cc:18:14: error: expected primary-expression before ')' token
   18 |   sort(all(a));
      |              ^
Language: C++

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

#define rep(i, n) for(ll i = 0; i < (ll)(n); i++);
#define memi cout << endl;
#define kono(n) cout << fixed << setprecision(n);
#define all(obj) (obj).begin(), (obj).end();
#define pb push_back;
const mei = (int)1e9 + 7;
typedef long long ll;

int main(){
  ll n, k, h;
  cin >> n >> k;
  ll a[n];
  rep(i, n)
    cin >> a[i];
  sort(all(a));
  g = n;
  while(true){
    if(a[n - g] < k)
      g--;
    else{
      cout << g;
      memi;
      return 0;
    }
    if(g == 0){
      cout << 0;
      memi;
      return 0;
    }
  }
}

Compiler output:
a.cc:9:7: error: 'mei' does not name a type; did you mean 'memi'?
    9 | const mei = (int)1e9 + 7;
      |       ^~~
      |       memi
a.cc: In function 'int main()':
a.cc:17:14: error: 'i' was not declared in this scope
   17 |     cin >> a[i];
      |              ^
a.cc:7:24: error: request for member 'begin' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    7 | #define all(obj) (obj).begin(), (obj).end();
      |                        ^~~~~
a.cc:18:8: note: in expansion of macro 'all'
   18 |   sort(all(a));
      |        ^~~
a.cc:7:39: error: request for member 'end' in 'a', which is of non-class type 'll [n]' {aka 'long long int [n]'}
    7 | #define all(obj) (obj).begin(), (obj).end();
      |                                       ^~~
a.cc:18:8: note: in expansion of macro 'all'
   18 |   sort(all(a));
      |        ^~~
a.cc:18:14: error: expected primary-expression before ')' token
   18 |   sort(all(a));
      |              ^
a.cc:19:3: error: 'g' was not declared in this scope
   19 |   g = n;
      |   ^
Language: C++

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

#define rep(i, n) for(long long i = 0; i < (ll)(n); i++);
#define memi cout << endl;
#define hina(n) cout << fixed << setprecision(n);
#define mei((vector)a) sort(a.begin(), a.end());

int main(){
int n, k, h;
  cin >> n >> k;
  int a[n];
  rep(i, n)
    cin >> a[i];
  mei(a);
  h = n;
  while(true){
    if(a[n - g] < k])
      g--;
    else{
      cout << g;
      memi;
      return 0;
    }
    if(g == 0){
      cout << 0;
      memi;
      return 0;
    }
  }
}

Compiler output:
a.cc:7:13: error: expected parameter name, found "("
    7 | #define mei((vector)a) sort(a.begin(), a.end());
      |             ^
a.cc: In function 'int main()':
a.cc:4:45: error: 'll' was not declared in this scope
    4 | #define rep(i, n) for(long long i = 0; i < (ll)(n); i++);
      |                                             ^~
a.cc:13:3: note: in expansion of macro 'rep'
   13 |   rep(i, n)
      |   ^~~
a.cc:14:14: error: 'i' was not declared in this scope
   14 |     cin >> a[i];
      |              ^
a.cc:15:3: error: 'mei' was not declared in this scope; did you mean 'memi'?
   15 |   mei(a);
      |   ^~~
      |   memi
a.cc:18:14: error: 'g' was not declared in this scope
   18 |     if(a[n - g] < k])
      |              ^
a.cc:18:20: error: expected ')' before ']' token
   18 |     if(a[n - g] < k])
      |       ~            ^
      |                    )
a.cc:18:20: error: expected primary-expression before ']' token
a.cc:25:8: error: 'g' was not declared in this scope
   25 |     if(g == 0){
      |        ^
Language: C++

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

#define ll long long;
#define rep(i, n) for(int i = 0; i < n; i++);
#define in(n) cin >> n;
#define ou(n) cout << n;
#define oe(n) cout << n << endl;
#define mod(n, k) n % k;
#define ous(n) cout << fixed << setprecision(n);

int main(){
  int n, k, g;
  in(n);
  in(k);
  vector<int> a(n);
  rep(i, n){
    in(a[i]);
  }
  sort(a.begin(), a.end());
  g = n;
  while(true){
    if(a[n - g] < k)
      g--;
    else{
      oe(g);
      return 0;
    }
    if(g == 0)
      oe(0);
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:10: error: 'i' was not declared in this scope
   18 |     in(a[i]);
      |          ^
a.cc:6:22: note: in definition of macro 'in'
    6 | #define in(n) cin >> n;
      |                      ^
Language: C++

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

#define ll long long;
#define rep(i, n) for(int i = 0; i < n; i++);
#define in(n) cin >> n;
#define ou(n) cout << n;
#define oe(n) cout << n << endl;
#define mod(n, k) n % k;
#define ous(n) cout << fixed << setprecision(n);

int main(){
  int n, k, g;
  in(n);
  in(k);
  int a[n];
  rep(i, n)
    in(a[i]);
  sort(a.begin(), a.end());
  g = n;
  while(true){
    if(a[n - g] < k)
      g--;
    else{
      oe(g);
      return 0;
    }
    if(g == 0)
      oe(0);
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:10: error: 'i' was not declared in this scope
   18 |     in(a[i]);
      |          ^
a.cc:6:22: note: in definition of macro 'in'
    6 | #define in(n) cin >> n;
      |                      ^
a.cc:19:10: error: request for member 'begin' in 'a', which is of non-class type 'int [n]'
   19 |   sort(a.begin(), a.end());
      |          ^~~~~
a.cc:19:21: error: request for member 'end' in 'a', which is of non-class type 'int [n]'
   19 |   sort(a.begin(), a.end());
      |                     ^~~
Language: C++

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

int main() {
  int N;
  int K;
  cin>>N>>K;
  int ans = 0; 
  for(int i=0; i<N; i++){
    int h;
    cin>>h;
    if(h>=K){
      ans+=1
    }
  }
  cout<<ans<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: expected ';' before '}' token
   13 |       ans+=1
      |             ^
      |             ;
   14 |     }
      |     ~
Language: C++

    #include<iostream>
    #include<stdio.h>
    //#include <bits/stdc++.h>
    #include<vector>
    #include<float.h>
    #include<iomanip>
    #include<algorithm>
    #include<string>
    #include<cstring>
    #include<math.h>
    #include<cmath>
    #include<sstream>
    #include<set>
    #include<map>
    #include<queue>
    #include <cassert>
    #include <cmath>
    #include<cstdint>

    #define INF 1e7
    #define rep(i,n)for(int i=0;(i)<(int)(n);i++)
    #define REP(i,a,b)for(int i=(int)(a);(i)<=(int)(b);i++)
    #define VEC(type, c, n) std::vector<type> c(n);for(auto& i:c)std::cin>>i;
    #define vec(type,n) vector<type>(n)
    #define vvec(m,n) vector<vector<int>> (int(m),vector<int>(n))

    using namespace std;
    using ll = long long;
    using Graph = vector<vector<int>>;
    using P = pair<int,int>;

    int main(){
       int n,k;cin>>n>>K;
       int res = 0;
       rep(i,n){
           int h;cin>>h;
           if(h>=k)res++;
       }
       cout<<res;
    }
    


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

#include <stdio.h>

int main()
{
  int n,k;
  int s=0;
  scanf("%d %d",&n,&k);

  int h[n];
  for(int i=0;i<n;i++){
    scanf("%d",&h[i]);
  }

  for(int j=0;j<n;j++){
    if(h[j]>=k){
      s+=1;
  }
  printf("%d",s);

  return 0;
  
}


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

#include<stdio.h>

int main(){
  int n,k;
  scanf("%d%d",&n,&k);
  
  int h[n];
  for(int i=0;i<n;i++){
    scanf("%d",&h[i]);
  }
  
  int count=0
  for(int i=0;i<n;i++){
    if(h[i]>=k){
      count++;
    }
  }
  
  printf("%d",count);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:13:3: error: expected ',' or ';' before 'for'
   13 |   for(int i=0;i<n;i++){
      |   ^~~
main.c:13:15: error: 'i' undeclared (first use in this function)
   13 |   for(int i=0;i<n;i++){
      |               ^
main.c:13:15: note: each undeclared identifier is reported only once for each function it appears in
main.c:13:22: error: expected ';' before ')' token
   13 |   for(int i=0;i<n;i++){
      |                      ^
      |                      ;
main.c:13:22: error: expected statement before ')' token
Language: C++

#include <iostream>

int n, k, p;
int res = 0;
int main() {
  std::cin >> n >> k;
  for (int i = 0; i < n; i++) {
    int u;
    std::cin >> u;
    if (u >= k) res++;
    std::cout << res << std::endl;
  }

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

#include <iostream>

int main(){
  int n, k;
  std::cin >> n >> k;
  int cnt = 0;
  int temp;
  while(cin >> temp)
    if(temp >= k)
      ++cnt;
  std::cout << cnt << std::endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:9: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   while(cin >> temp)
      |         ^~~
      |         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
      |                  ^~~
Language: C++

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

const int MOD = 1000000007;

//long long
using ll = long long;

//出力系
#define print(x) cout << x << endl
#define yes cout << "Yes" << endl
#define YES cout << "YES" << endl
#define no cout << "No" << endl
#define NO cout << "NO" << endl
 
// begin() end()
#define all(x) (x).begin(),(x).end()

//for
#define REP(i,n) for(int i=0, i##_len=(n); i<i##_len; ++i)

//最大公約数 
unsigned gcd(unsigned a, unsigned b) {
  if(a < b) return gcd(b, a);
  unsigned r;
  while ((r=a%b)) {
    a = b;
    b = r;
  }
  return b;
}

// 最小公倍数
unsigned lcm(unsigned a, unsigned b){
    return a / gcd(a, b) * b; 
}

int main(){
int N, K;
cin >> N >> K;
int cnt = 0;
REP(i, N) {
    int h;
    cin >> h;
    if(K <= h)  cnt++
}
 print(cnt);
}



Compiler output:
a.cc: In function 'int main()':
a.cc:45:22: error: expected ';' before '}' token
   45 |     if(K <= h)  cnt++
      |                      ^
      |                      ;
   46 | }
      | ~
Language: C++

n, k = input().split()
h = [n for n in input().split()]

f = 0

for i in range (0, int(n)):
    if h[i] >= k:
        f+=1

print(f)

Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n, k = input().split()
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<n;i++)
int main(){
  int n,k,count,h; int>>n>>k; count=0;
  vector<int> v(n);
  rep(i,n){ cin>>h; if(h>=k) count++;}
  cout<<count<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:23: error: expected unqualified-id before '>>' token
    5 |   int n,k,count,h; int>>n>>k; count=0;
      |                       ^~
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <cmath>
#include <iomanip> 
typedef long long ll;

using namespace std;

int main()
{
	int n, k;
	int h[100001];

	cin>>n>>k;
  int ans = 0;
  for (size_t i = 0; i < n; i++) {
    cin >> h[i];
  }
	sort(h.begin(), h.end());
	ans = lower_bound(h.begin(), h.end(), k);

	cout << n - ans;

	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:16: error: request for member 'begin' in 'h', which is of non-class type 'int [100001]'
   21 |         sort(h.begin(), h.end());
      |                ^~~~~
a.cc:21:27: error: request for member 'end' in 'h', which is of non-class type 'int [100001]'
   21 |         sort(h.begin(), h.end());
      |                           ^~~
a.cc:22:29: error: request for member 'begin' in 'h', which is of non-class type 'int [100001]'
   22 |         ans = lower_bound(h.begin(), h.end(), k);
      |                             ^~~~~
a.cc:22:40: error: request for member 'end' in 'h', which is of non-class type 'int [100001]'
   22 |         ans = lower_bound(h.begin(), h.end(), k);
      |                                        ^~~
Language: C++

#include <iostream>
using namespace std;

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

  int cnt=0;
  for(int i=0; i<n; i++){
    int h;
    cin >> h;
    inf(h>=k) cnt++;
  }

  cout<<cnt<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'inf' was not declared in this scope; did you mean 'int'?
   12 |     inf(h>=k) cnt++;
      |     ^~~
      |     int
Language: C++

#include <iostream>
using namespace std;

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

  int cnt=0;
  for(int i=0; i<N; i++){
    int h;
    cin >> h;
    inf(h>=k) cnt++;
  }

  cout<<cnt<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: 'N' was not declared in this scope
    9 |   for(int i=0; i<N; i++){
      |                  ^
a.cc:12:5: error: 'inf' was not declared in this scope; did you mean 'int'?
   12 |     inf(h>=k) cnt++;
      |     ^~~
      |     int
Language: C

#include<stdio.h>
int main(){
int N,K,i,c=0;
scanf("%d%d",&N,&K);
int H[N];
for(i=0;i<N;i++){
  scanf("%d",&H[i]);
  if(N[i]>=K)c++;
    }
printf("%d",c);
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:8:7: error: subscripted value is neither array nor pointer nor vector
    8 |   if(N[i]>=K)c++;
      |       ^
Language: C

#include<stdio.h>
int main(){
int N,K,i,c=0;
scanf("%d%d",&N,&K);
int H[N];
for(i=0;i<N;i++){
  scanf("%d",&N[i]);
  if(N[i]>=K)c++;
    }
printf("%d",c);
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:7:16: error: subscripted value is neither array nor pointer nor vector
    7 |   scanf("%d",&N[i]);
      |                ^
main.c:8:7: error: subscripted value is neither array nor pointer nor vector
    8 |   if(N[i]>=K)c++;
      |       ^
Language: C

#include<stdio.h>
int main(){
int N,K,i,c=0;
scanf("%d%d",&N,&K);
int H[N];
for(i=0;i<n;i++){
  scanf("%d",&N[i]);
  if(N[i]>=K)c++;
    }
printf("%d",c);
return 0;
}

Compiler output:
main.c: In function 'main':
main.c:6:11: error: 'n' undeclared (first use in this function)
    6 | for(i=0;i<n;i++){
      |           ^
main.c:6:11: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:16: error: subscripted value is neither array nor pointer nor vector
    7 |   scanf("%d",&N[i]);
      |                ^
main.c:8:7: error: subscripted value is neither array nor pointer nor vector
    8 |   if(N[i]>=K)c++;
      |       ^
Language: C

#include<stdio.h>
int N,K,i,c=0;
scanf("%d%d",&N,&K);
int H[N];
for(i=0;i<n;i++){
  scanf("%d",&N[i]);
  if(N[i]>=K)c++;
    }
printf("%d",c);
return 0;

Compiler output:
main.c:3:7: error: expected declaration specifiers or '...' before string constant
    3 | scanf("%d%d",&N,&K);
      |       ^~~~~~
main.c:3:14: error: expected declaration specifiers or '...' before '&' token
    3 | scanf("%d%d",&N,&K);
      |              ^
main.c:3:17: error: expected declaration specifiers or '...' before '&' token
    3 | scanf("%d%d",&N,&K);
      |                 ^
main.c:4:5: error: variably modified 'H' at file scope
    4 | int H[N];
      |     ^
main.c:5:1: error: expected identifier or '(' before 'for'
    5 | for(i=0;i<n;i++){
      | ^~~
main.c:5:10: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    5 | for(i=0;i<n;i++){
      |          ^
main.c:5:14: error: expected '=', ',', ';', 'asm' or '__attribute__' before '++' token
    5 | for(i=0;i<n;i++){
      |              ^~
main.c:9:8: error: expected declaration specifiers or '...' before string constant
    9 | printf("%d",c);
      |        ^~~~
main.c:9:13: error: expected declaration specifiers or '...' before 'c'
    9 | printf("%d",c);
      |             ^
main.c:10:1: error: expected identifier or '(' before 'return'
   10 | return 0;
      | ^~~~~~
Language: C++

#include <iostream>
#include <string>
using namespace std;
int main()
{
  int N;
  int K;
  int h[100000];
  int S;
  
  cin >> N;
  cin >> K;
  for(i=0;i<N;i++){
    cin >> h[i];
  }
  for(i=0;i<N;i++){
    if(h[i];>=K){
      S+=1;
    }
  }
  cout << S;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:7: error: 'i' was not declared in this scope
   13 |   for(i=0;i<N;i++){
      |       ^
a.cc:16:7: error: 'i' was not declared in this scope
   16 |   for(i=0;i<N;i++){
      |       ^
a.cc:17:13: error: expected primary-expression before '>=' token
   17 |     if(h[i];>=K){
      |             ^~
Language: C

#includ <stdio.h>
int main(void)
{
  int a,b,c;
  int i;
  int count;
  
  scanf("%d",&a);
  scanf("%d",&b);
  printf("\n");
  for(i=0;i<a;i++){
    scanf("%d",&c);
    if(c>=b){
      count+=1;
    }
  }
    printf("%d\n",count);
   
  return 0;
}

Compiler output:
main.c:1:2: error: invalid preprocessing directive #includ; did you mean #include?
    1 | #includ <stdio.h>
      |  ^~~~~~
      |  include
main.c: In function 'main':
main.c:8:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    8 |   scanf("%d",&a);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | #includ <stdio.h>
main.c:8:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    8 |   scanf("%d",&a);
      |   ^~~~~
main.c:8:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:10:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   10 |   printf("\n");
      |   ^~~~~~
main.c:10:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:10:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:10:3: note: include '<stdio.h>' or provide a declaration of 'printf'