Language: C++

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

#define ll long long;
#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:10:7: error: 'mei' does not name a type; did you mean 'memi'?
   10 | const mei = (int)1e9 + 7;
      |       ^~~
      |       memi
a.cc:4:12: error: 'long long long' is too long for GCC
    4 | #define ll long long;
      |            ^~~~
a.cc:11:19: note: in expansion of macro 'll'
   11 | typedef long long ll;
      |                   ^~
a.cc:4:17: error: 'long long long' is too long for GCC
    4 | #define ll long long;
      |                 ^~~~
a.cc:11:19: note: in expansion of macro 'll'
   11 | typedef long long ll;
      |                   ^~
a.cc:4:17: error: declaration does not declare anything [-fpermissive]
    4 | #define ll long long;
      |                 ^~~~
a.cc:11:19: note: in expansion of macro 'll'
   11 | typedef long long ll;
      |                   ^~
a.cc: In function 'int main()':
a.cc:4:17: error: declaration does not declare anything [-fpermissive]
    4 | #define ll long long;
      |                 ^~~~
a.cc:14:3: note: in expansion of macro 'll'
   14 |   ll n, k, h;
      |   ^~
a.cc:14:6: error: 'n' was not declared in this scope; did you mean 'yn'?
   14 |   ll n, k, h;
      |      ^
      |      yn
a.cc:14:9: error: 'k' was not declared in this scope
   14 |   ll n, k, h;
      |         ^
a.cc:14:12: error: 'h' was not declared in this scope
   14 |   ll n, k, h;
      |            ^
a.cc:4:17: error: declaration does not declare anything [-fpermissive]
    4 | #define ll long long;
      |                 ^~~~
a.cc:16:3: note: in expansion of macro 'll'
   16 |   ll a[n];
      |   ^~
a.cc:16:6: error: 'a' was not declared in this scope
   16 |   ll a[n];
      |      ^
a.cc:4:17: error: declaration does not declare anything [-fpermissive]
    4 | #define ll long long;
      |                 ^~~~
a.cc:5:23: note: in expansion of macro 'll'
    5 | #define rep(i, n) for(ll i = 0; i < (ll)(n); i++);
      |                       ^~
a.cc:17:3: note: in expansion of macro 'rep'
   17 |   rep(i, n)
      |   ^~~
a.cc:17:7: error: 'i' was not declared in this scope
   17 |   rep(i, n)
      |       ^
a.cc:5:26: note: in definition of macro 'rep'
    5 | #define rep(i, n) for(ll i = 0; i < (ll)(n); i++);
      |                          ^
a.cc:4:12: error: expected primary-expression before 'long'
    4 | #define ll long long;
      |            ^~~~
a.cc:5:38: note: in expansion of macro 'll'
    5 | #define rep(i, n) for(ll i = 0; i < (ll)(n); i++);
      |                                      ^~
a.cc:17:3: note: in expansion of macro 'rep'
   17 |   rep(i, n)
      |   ^~~
a.cc:4:12: error: expected ')' before 'long'
    4 | #define ll long long;
      |            ^~~~
a.cc:5:38: note: in expansion of macro 'll'
    5 | #define rep(i, n) for(ll i = 0; i < (ll)(n); i++);
      |                                      ^~
a.cc:17:3: note: in expansion of macro 'rep'
   17 |   rep(i, n)
      |   ^~~
a.cc:5:37: note: to match this '('
    5 | #define rep(i, n) for(ll i = 0; i < (ll)(n); i++);
      |                                     ^
a.cc:17:3: note: in expansion of macro 'rep'
   17 |   rep(i, n)
      |   ^~~
a.cc:4:21: error: expected ')' before ';' token
    4 | #define ll long long;
      |                     ^
a.cc:5:38: note: in expansion of macro 'll'
    5 | #define rep(i, n) for(ll i = 0; i < (ll)(n); i++);
      |                                      ^~
a.cc:17:3: note: in expansion of macro 'rep'
   17 |   rep(i, n)
      |   ^~~
a.cc:5:22: note: to match this '('
    5 | #define rep(i, n) for(ll i = 0; i < (ll)(n); i++);
      |                      ^
a.cc:17:3: note: in expansion of macro 'rep'
   17 |   rep(i, n)
      |   ^~~
a.cc:5:40: error: expected primary-expression before ')' token
    5 | #define rep(i, n) for(ll i = 0; i < (ll)(n); i++);
      |                                        ^
a.cc:17:3: note: in expansion of macro 'rep'
   17 |   rep(i, n)
      |   ^~~
a.cc:17:7: error: 'i' was not declared in this scope
   17 |   rep(i, n)
      |       ^
a.cc:5:46: note: in definition of macro 'rep'
    5 | #define rep(i, n) for(ll i = 0; i < (ll)(n); i++);
      |                                              ^
a.cc:19:14: error: expected primary-expression before ')' token
   19 |   sort(all(a));
      |              ^
a.cc:20:3: error: 'g' was not declared in this scope
   20 |   g = n;
      |   ^