Language: C++

#include <bits/stdc++.h>
#define loop(n) for (int ngtkana_is_genius = 0; ngtkana_is_genius < int(n); ngtkana_is_genius++)
#define rep(i, begin, end) for(int i = int(begin); i < int(end); i++)
#define all(v) v.begin(), v.end()
#define rand(l, r) std::uniform_int_distribution<>(l, r)(mt)
#define lint long long
auto cmn = [](auto& a, auto b){if (a > b) {a = b; return true;} return false;};
auto cmx = [](auto& a, auto b){if (a < b) {a = b; return true;} return false;};
void debug_impl() { std::cerr << std::endl; }
template <typename Head, typename... Tail>
void debug_impl(Head head, Tail... tail){
  std::cerr << " " << head;
  debug_impl(tail...);
}
#ifndef STOPIT
#define debug(...)\
  std::cerr << std::boolalpha << "[" << #__VA_ARGS__ << "]:";\
  debug_impl(__VA_ARGS__);\
  std::cerr << std::noboolalpha;
#else
#define debug 0;
#endif

int main() {
  std::cin.tie(0); std::cin.sync_with_stdio(false);
  int n, k; std::cin >> n >> k;
  auto ret = 0;
  loop(n) {
    int x; std::cin >> x;
    ret += (x >= k);
  }
  std::cout << ret << std::endl;
  return 0;
}
#include <bits/stdc++.h>
#define loop(n) for (int ngtkana_is_genius = 0; ngtkana_is_genius < int(n); ngtkana_is_genius++)
#define rep(i, begin, end) for(int i = int(begin); i < int(end); i++)
#define all(v) v.begin(), v.end()
#define rand(l, r) std::uniform_int_distribution<>(l, r)(mt)
#define lint long long
auto cmn = [](auto& a, auto b){if (a > b) {a = b; return true;} return false;};
auto cmx = [](auto& a, auto b){if (a < b) {a = b; return true;} return false;};
void debug_impl() { std::cerr << std::endl; }
template <typename Head, typename... Tail>
void debug_impl(Head head, Tail... tail){
  std::cerr << " " << head;
  debug_impl(tail...);
}
#ifndef STOPIT
#define debug(...)\
  std::cerr << std::boolalpha << "[" << #__VA_ARGS__ << "]:";\
  debug_impl(__VA_ARGS__);\
  std::cerr << std::noboolalpha;
#else
#define debug 0;
#endif

int main() {
  std::cin.tie(0); std::cin.sync_with_stdio(false);
  int n, k; std::cin >> n >> k;
  auto ret = 0;
  loop(n) {
    int x; std::cin >> x;
    ret += (x >= k);
  }
  std::cout << ret << std::endl;
  return 0;
}


Compiler output:
a.cc:41:6: error: conflicting declaration 'auto cmn'
   41 | auto cmn = [](auto& a, auto b){if (a > b) {a = b; return true;} return false;};
      |      ^~~
a.cc:7:6: note: previous declaration as '<lambda(auto:28&, auto:29)> cmn'
    7 | auto cmn = [](auto& a, auto b){if (a > b) {a = b; return true;} return false;};
      |      ^~~
a.cc:42:6: error: conflicting declaration 'auto cmx'
   42 | auto cmx = [](auto& a, auto b){if (a < b) {a = b; return true;} return false;};
      |      ^~~
a.cc:8:6: note: previous declaration as '<lambda(auto:30&, auto:31)> cmx'
    8 | auto cmx = [](auto& a, auto b){if (a < b) {a = b; return true;} return false;};
      |      ^~~
a.cc:43:6: error: redefinition of 'void debug_impl()'
   43 | void debug_impl() { std::cerr << std::endl; }
      |      ^~~~~~~~~~
a.cc:9:6: note: 'void debug_impl()' previously defined here
    9 | void debug_impl() { std::cerr << std::endl; }
      |      ^~~~~~~~~~
a.cc:45:6: error: redefinition of 'template<class Head, class ... Tail> void debug_impl(Head, Tail ...)'
   45 | void debug_impl(Head head, Tail... tail){
      |      ^~~~~~~~~~
a.cc:11:6: note: 'template<class Head, class ... Tail> void debug_impl(Head, Tail ...)' previously declared here
   11 | void debug_impl(Head head, Tail... tail){
      |      ^~~~~~~~~~
a.cc:58:5: error: redefinition of 'int main()'
   58 | int main() {
      |     ^~~~
a.cc:24:5: note: 'int main()' previously defined here
   24 | int main() {
      |     ^~~~