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

#include <bits/stdc++.h>
using namespace std;
#define ALL(A) (A).begin(),(A).end()
#define ll long long
const ll mod = 1e9+7;
const ll INF = 2*1e18;
const int inf = 1e9+7;

int main(void){
	cin.tie(0);
	ios::sync_with_stdio(false);
	int N,K;
  cin >> N >> K;
  int ans = 0;
  for(int i=0;i<N;i++){
cin >> a;
    if(a>=K)ans++;
  }
  cout << ans << endl;
}

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

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

main(){

    std::ios::sync_with_stdio(0);
    std::cin.tie(0);

    int n, a, k, counter = 0;
    cin >> n >> k;
    for(int i = 0; i < n; ++i){
        cin >> a;
        if(k >= a[i])counter++;
    }
    cout << counter << '\n';
}


Compiler output:
a.cc:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:14:18: error: invalid types 'int[int]' for array subscript
   14 |         if(k >= a[i])counter++;
      |                  ^
Language: C++

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

main(){

    std::ios::sync_with_stdio(0);
    std::cin.tie(0);

    int n, a, k, counter = 0;
    cin >> n >> k;
    for(int i = 0; i < n; ++i){
        cin >> a[i];
        if(k >= a[i])counter++;
    }
    cout << counter << '\n';
}


Compiler output:
a.cc:5:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    5 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:13:17: error: invalid types 'int[int]' for array subscript
   13 |         cin >> a[i];
      |                 ^
a.cc:14:18: error: invalid types 'int[int]' for array subscript
   14 |         if(k >= a[i])counter++;
      |                  ^
Language: C++

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

int main()
{
  int n,k;
  cin>>n>>k;
  int a[n],c;
  int i;
  for(i=0;i<n;i++)
    cin>>a[i];
  c=0;
  for(i=0;i<n;i++)
  {
    if(a[i]>=k)
      c++;
  }
  
  cout<<c<<endl;
  return 0;
}

Compiler output:
a.cc:1:1: error: '$include' does not name a type
    1 | $include<bits/stdc++.h>
      | ^~~~~~~~
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope
    7 |   cin>>n>>k;
      |   ^~~
a.cc:19:3: error: 'cout' was not declared in this scope
   19 |   cout<<c<<endl;
      |   ^~~~
a.cc:19:12: error: 'endl' was not declared in this scope
   19 |   cout<<c<<endl;
      |            ^~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;
#define ll long long 
#define lf long double
typedef vector <ll> vi;
int main() 
{
	ll n,k;
	cin>>n>>k;
	//cut<<fixed<<setprecision(7);
	ll ans;
	for(Ll i=0;i<n;i++)
	{
		ll x;
		cin>>x;
		if(x>=k)
			ans++;
	}
	cout<<ans<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: 'Ll' was not declared in this scope; did you mean 'll'?
   13 |         for(Ll i=0;i<n;i++)
      |             ^~
      |             ll
a.cc:13:20: error: 'i' was not declared in this scope
   13 |         for(Ll i=0;i<n;i++)
      |                    ^
Language: C++

#include<stdio.h>
int main(){
  int n,t;
  int a;
  int i;
  scanf("%d%d",&n,&t);
  int ans=0;
  for(i=0;i<n;i++){
    scnaf("%d",&a);
    ans+=a>=t;
  }
  
  printf("%d\n",ans);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'scnaf' was not declared in this scope; did you mean 'scanf'?
    9 |     scnaf("%d",&a);
      |     ^~~~~
      |     scanf
Language: C++

#include<stdio.h>
int main(){
  int n,t;
  int a;
  int i;
  scanf("%d%d",&n,&t);
  int ans=0;
  for(i=0;i<n;i++){
    scnaf("%d",&a);
    ans+=(a>=t);
  }
  
  printf("%d\n",ans);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:5: error: 'scnaf' was not declared in this scope; did you mean 'scanf'?
    9 |     scnaf("%d",&a);
      |     ^~~~~
      |     scanf
Language: C++

#include<bits/stdc++.h>
#define ll long 
 
using namespace std;
 
main(){
    int n,m=0,c=0;
    cin>>n>>m;
    for(int i=1;i<=n;i++){
        cin>>a[i];
        if(a[i]>=m) c++;
    }
    cout<<c;
    return 0;
}

Compiler output:
a.cc:6:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
    6 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:10:14: error: 'a' was not declared in this scope
   10 |         cin>>a[i];
      |              ^
Language: C++

#include <iostream>

using namespace std;

int main()
{
  int n,h;
  cin >> n;
  cin >> h;
  
  int out = 0;
  for(int i=0;i<n;i++)
  {
    cin >> hi;
    
    if(hi >= h)
      out++;
  }
  
  cout << out;
  return 0;
}

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

#include <iostream>

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

        std::cin >> n >> k;

        for (int i = 0; i < n; i++) {
                int h;
                std::cin >> h;
                if (k <= h[i]) {
                        count++;
                }
        }

        std::cout << count << std::endl;

        return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:27: error: invalid types 'int[int]' for array subscript
   12 |                 if (k <= h[i]) {
      |                           ^
Language: C++

#inlcude<iostream>
using namespace std;
int main() {
  int n,x,k,cnt = 0;
  cin>>n>>k;
  for(int i=0 ; i < n ; i++){
  	cin>>x;
    if(x>=k) cnt++;
  }
  cout<<cnt;
return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #inlcude; did you mean #include?
    1 | #inlcude<iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   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 | #inlcude<iostream>
a.cc:10:3: error: 'cout' was not declared in this scope
   10 |   cout<<cnt;
      |   ^~~~
a.cc:10:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
Language: C++

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

int main() {
  int h, k;
  scanf("%d %d", &n, &k);
  int ans = 0;
  for (int i = 0; i < n; i++) {
    int a;
    scanf("%d", &a);
    ans += a <= k;
  }
  printf("%d\n", ans);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:19: error: 'n' was not declared in this scope
    6 |   scanf("%d %d", &n, &k);
      |                   ^
Language: C++

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

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

    vector<int> mao(n);
    for(int i=0; i<n; i++) cin>>mao.at(i);

    int z = 0;
    for(int i=0; i<n; i++) {
        if(mao.at(i)>=k) z++;
    }

    cout<<z<<endl;
}

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

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n,k,count=0;
    cin>>n>>k;
  int ar[n];
  for(int i=0;i<n;i++)
  {
    cin>>ar[i];
  }
  int ma=ar[0]
    for(int i=0;i<n;i++)
    {
      if(ar[i]>ma)
      {
        ma=ar[i];
      }
    }
  for(int i=0;i<n;i++)
  {
    if(ar[i]>=ma)
      count++;
  }
  cout<<count;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: expected ',' or ';' before 'for'
   13 |     for(int i=0;i<n;i++)
      |     ^~~
a.cc:13:17: error: 'i' was not declared in this scope
   13 |     for(int i=0;i<n;i++)
      |                 ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n,k,count=0;
    cin>>n>>k;
  int ar[n];
  for(int i=0;i<n;i++)
  {
    cin>>ar[i];
  }
  int ma=ar[0]
    for(int i=0;i<n;i++)
    {
      if(ar[i]>ma)
      {
        ma=ar[i];
      }
    }
  for(int i=0;i<n;i++)
  {
    if(a[i]>=ma)
      count++;
  }
  cout<<count;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:5: error: expected ',' or ';' before 'for'
   13 |     for(int i=0;i<n;i++)
      |     ^~~
a.cc:13:17: error: 'i' was not declared in this scope
   13 |     for(int i=0;i<n;i++)
      |                 ^
a.cc:22:8: error: 'a' was not declared in this scope
   22 |     if(a[i]>=ma)
      |        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n,k,count=0;'
    cin>>n>>k;
  int ar[n];
  for(int i=0;i<n;i++)
  {
    cin>>ar[i];
  }
  int ma=ar[0]
    for(int i=0;i<n;i++)
    {
      if(ar[i]>ma)
      {
        ma=ar[i];
      }
    }
  for(int i=0;i<n;i++)
  {
    if(a[i]>=ma)
      count++;
  }
  cout<<count;
  return 0;
}

Compiler output:
a.cc:5:19: warning: missing terminating ' character
    5 |   int n,k,count=0;'
      |                   ^
a.cc:5:19: error: missing terminating ' character
a.cc: In function 'int main()':
a.cc:13:5: error: expected ',' or ';' before 'for'
   13 |     for(int i=0;i<n;i++)
      |     ^~~
a.cc:13:17: error: 'i' was not declared in this scope
   13 |     for(int i=0;i<n;i++)
      |                 ^
a.cc:22:8: error: 'a' was not declared in this scope
   22 |     if(a[i]>=ma)
      |        ^
Language: C++

#include<iostream>

using namespace std;
long long n,k,h[100000],i,s;
int main()
{
	cin >> n >> k;
	for(i=1;i<=n;++i)
	{
		cin >> h[i];
		if(h[i]>=k)
			s++;	
	}
	cout << s;

Compiler output:
a.cc: In function 'int main()':
a.cc:14:19: error: expected '}' at end of input
   14 |         cout << s;
      |                   ^
a.cc:6:1: note: to match this '{'
    6 | {
      | ^
Language: C++

#include<iostream>
#include<vector>
using namespace std;
int main(){
  int N=0,K=0;
  int ans=0;
  vector<int> h(N);
  cin >> N >> K;
  for(int i=0, i<N, i++){
    cin >> h[i];
    if(h[i]>K) ans++;
  }
  cout << ans << endl;
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:17: error: expected ';' before '<' token
    9 |   for(int i=0, i<N, i++){
      |                 ^
      |                 ;
a.cc:9:17: error: expected primary-expression before '<' token
a.cc:9:24: error: expected ';' before ')' token
    9 |   for(int i=0, i<N, i++){
      |                        ^
      |                        ;
Language: C++

#include<iostream>
using namespace std
int main() {
  int n, x;
  int ans = 0;
  cin >> n >> x;
  for (int i = 0; i < n; ++i) {
    int val;
    cin >> val;
    ans += (val >= x);
  }
  cout << ans << endl;
}

Compiler output:
a.cc:2:20: error: expected ';' before 'int'
    2 | using namespace std
      |                    ^
      |                    ;
    3 | int main() {
      | ~~~
Language: C++

/* sortあります */
#include <bits/stdc++.h>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:13: error: 'h' was not declared in this scope
   10 |     curr >> h.at(i);
      |             ^
Language: C++

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

int main() 
{
	int n,k; cin>>n>>k;
	int cnt=0;
	for(int i=0;i<n;i++)
	{
		cin>>a[i];
		if(a[i]>=k){cnt++;}
	}
	cout<<cnt;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:22: error: 'a' was not declared in this scope
   10 |                 cin>>a[i];
      |                      ^
Language: C++

#include <iostream>
using namespace std;
int main() {
  int N,K;
  cin >> N >> K;
  int* p = (int*)malloc((sizeof(int)*N);
  cin >> *p;
  int count=0;
  for(int i=0; i<N;i++)
  {
    if(*(p+ (sizeof(int))*i)>=K)
    {
      count++;
    }
  }
  return count;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:40: error: expected ')' before ';' token
    6 |   int* p = (int*)malloc((sizeof(int)*N);
      |                        ~               ^
      |                                        )
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:14: error: variable-sized object may not be initialized except with an empty initializer
    6 |   int h[N] = 0;
      |              ^
Language: C++

#include <iostream>
using namespace std;
int main() {
  int N,K;
  cin >> N >> K;
  int* p = (int*)malloc((sizeof(int)*N);
  cin >> *p;
  int count=0;
  for(int i=0; i<N;i++)
  {
    if(*(p+ (sizeof(int))*i>=K)
    {
      count++;
    }
  }
  return count;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:40: error: expected ')' before ';' token
    6 |   int* p = (int*)malloc((sizeof(int)*N);
      |                        ~               ^
      |                                        )
a.cc:11:28: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   11 |     if(*(p+ (sizeof(int))*i>=K)
      |          ~~~~~~~~~~~~~~~~~~^~~
a.cc:11:8: error: invalid type argument of unary '*' (have 'bool')
   11 |     if(*(p+ (sizeof(int))*i>=K)
      |        ^~~~~~~~~~~~~~~~~~~~~~~~
a.cc:11:32: error: expected ')' before '{' token
   11 |     if(*(p+ (sizeof(int))*i>=K)
      |       ~                        ^
      |                                )
   12 |     {
      |     ~                           
a.cc:15:3: error: expected primary-expression before '}' token
   15 |   }
      |   ^
Language: C++

#include <iostream>
using namespace std;
int main() {
  int N,K;
  cin >> N >> K;
  int* p = (int*)malloc((sizeof(int)*N);
  cin >> *p;
  int count=0;
  for(int i=0; i<N;i++)
  {
    if(*p[i]>=K)
    {
      count++;
    }
  }
  return count;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:40: error: expected ')' before ';' token
    6 |   int* p = (int*)malloc((sizeof(int)*N);
      |                        ~               ^
      |                                        )
a.cc:11:8: error: invalid type argument of unary '*' (have 'int')
   11 |     if(*p[i]>=K)
      |        ^~~~~
Language: C++

#include <iostream>
using namespace std;
int main() {
  int N,K;
  cin >> N >> K;
  char* p = (char*)malloc(N);
  cin >> *p;
  int count=0;
  for(int i=0; i<N;i++)
  {
    if(*p[i]>=K)
    {
      count++;
    }
  }
  return count;
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:8: error: invalid type argument of unary '*' (have 'char')
   11 |     if(*p[i]>=K)
      |        ^~~~~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:15: error: variable-sized object may not be initialized except with an empty initializer
    6 |   int* s[N] = 0;
      |               ^
main.c:10:13: warning: comparison between pointer and integer
   10 |     if(s[i] >= K){
      |             ^~
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:14: error: variable-sized object may not be initialized except with an empty initializer
    6 |   int s[N] = 0;
      |              ^
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:6:15: error: variable-sized object may not be initialized except with an empty initializer
    6 |   char s[N] = 0;
      |               ^
Language: C

#include<stdio.h>
int main(){
  int n,k,h,count=0;
  scanf("%d %d".&n,&k);
  
  
  for(int i = 0 ; i<n ; i++){
    scanf("%d",&h);
    if(h >= k){
      count = count + 1;
    }
  }
  printf("%d",count);
}

Compiler output:
main.c: In function 'main':
main.c:4:17: error: expected identifier before '&' token
    4 |   scanf("%d %d".&n,&k);
      |                 ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
//#define int long long
#define fo(a,b) for(int a=0;a<b;a++)
#define Sort(a) sort(a.begin(),a.end())
#define rev(a) reverse(a.begin(),a.end())

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


Compiler output:
a.cc: In function 'int main()':
a.cc:14:10: error: 'n' cannot be used as a function
   14 |      if(n(i)>=k) u++;
      |         ~^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
//#define int long long
#define fo(a,b) for(int a=0;a<b;a++)
#define Sort(a) sort(a.begin(),a.end())
#define rev(a) reverse(a.begin(),a.end())

 int main ()
 {
   int n,k;
   cin>>n>>k;
   int u=0;
   for(int i=0; i<n; i++){
     if(n.at(i)>=k) u++;
   }
   cout<<u<<endl;
 }
   
 


Compiler output:
a.cc: In function 'int main()':
a.cc:14:11: error: request for member 'at' in 'n', which is of non-class type 'int'
   14 |      if(n.at(i)>=k) u++;
      |           ^~
Language: C

#include<stdio.h>

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

Compiler output:
main.c: In function 'main':
main.c:18:3: error: expected declaration or statement at end of input
   18 |   return 0;
      |   ^~~~~~
Language: C++

#include <iostream>

int main()
{

	int n, y;
	scanf_s("%d %d", &n, &y);
	int count = 0;
	int* x = (int*)malloc(sizeof(int)*n);
	for (int m = 0; m < n; m++) {
		scanf("%d", x + m);

		if (*(x + m) >= y) { count++; }
	}
	printf("%d",count);
	free(x);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'scanf_s' was not declared in this scope; did you mean 'scanf'?
    7 |         scanf_s("%d %d", &n, &y);
      |         ^~~~~~~
      |         scanf
Language: C++

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

Compiler output:
a.cc:17:1: error: extended character ¥ is not valid in an identifier
   17 | ¥
      | ^
a.cc: In function 'int main()':
a.cc:10:32: error: '\U0000ffe5' was not declared in this scope
   10 |                 if (h[i] >= k) ￥
      |                                ^~
a.cc: At global scope:
a.cc:14:15: error: expected constructor, destructor, or type conversion before '(' token
   14 |         printf("%d\n", count);
      |               ^
a.cc:15:9: error: expected unqualified-id before 'return'
   15 |         return 0;
      |         ^~~~~~
a.cc:16:1: error: expected declaration before '}' token
   16 | }
      | ^
a.cc:17:1: error: '\U000000a5' does not name a type
   17 | ¥
      | ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:4:9: error: 'cin' was not declared in this scope
    4 |         cin >> n >> k;
      |         ^~~
a.cc:9:9: error: 'cout' was not declared in this scope
    9 |         cout << num<<endl;
      |         ^~~~
a.cc:9:22: error: 'endl' was not declared in this scope
    9 |         cout << num<<endl;
      |                      ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
//#define int long long
#define fo(a,b) for(int a=0;a<b;a++)
#define Sort(a) sort(a.begin(),a.end())
#define rev(a) reverse(a.begin(),a.end())

 int main ()
 {
 int n,k,h;
 cin>>n>>k;
 for(int i=0; i<n; ++i){
   cin>>h[i]; int counter=0; rep (h[i]>=k)++counter; cout<<counter<<endl;}
 }


   
 

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: invalid types 'int[int]' for array subscript
   13 |    cin>>h[i]; int counter=0; rep (h[i]>=k)++counter; cout<<counter<<endl;}
      |          ^
a.cc:13:36: error: invalid types 'int[int]' for array subscript
   13 |    cin>>h[i]; int counter=0; rep (h[i]>=k)++counter; cout<<counter<<endl;}
      |                                    ^
a.cc:13:30: error: 'rep' was not declared in this scope; did you mean 'rev'?
   13 |    cin>>h[i]; int counter=0; rep (h[i]>=k)++counter; cout<<counter<<endl;}
      |                              ^~~
      |                              rev
Language: C++

#include<stdio.h>
int main(){
int N,k,i;
  scanf("%d%d",&N,&k);
  int h[N],a1,a2;
  a1=0;
 for(i=1;i<=N;++i){
   scanf("%d"h[i])
     if(h[i]>=k)(
       a2=a1+1;
       a1=a2;
       }
       }
       printf("%d\n",a1);
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: unable to find string literal operator 'operator""h' with 'const char [3]', 'long unsigned int' arguments
    8 |    scanf("%d"h[i])
      |          ^~~~~
a.cc: At global scope:
a.cc:14:14: error: expected constructor, destructor, or type conversion before '(' token
   14 |        printf("%d\n",a1);
      |              ^
a.cc:15:1: error: expected declaration before '}' token
   15 | }
      | ^
Language: C

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

}

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

#include<iostream>
using namespace std;

int main(){
  int a,b,i;
  int count=0;
  cin>>a,b;
  
  int retsu[a];
  for(i=0;i<=a;i++){
    cin>>a[i];
    if(a[i]>=b){
      count++;
    }
  }
  cout<<count<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:11: error: invalid types 'int[int]' for array subscript
   11 |     cin>>a[i];
      |           ^
a.cc:12:9: error: invalid types 'int[int]' for array subscript
   12 |     if(a[i]>=b){
      |         ^
Language: C

include<stdio.h>
int h[500];
int main()
{
  int K,i,j;
  int N;
  scanf("%d %d",&N,&K);
  for(i=1;i<=N;i++){
    scanf("%d",&h[i]);
  }

for(i=1;i<=N;i++){

    if(h[i]>=K){
      j++;
    }
 }

  printf("%d\n",j);
  return 0;
}


Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^
main.c: In function 'main':
main.c:7:3: error: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
    7 |   scanf("%d %d",&N,&K);
      |   ^~~~~
main.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | include<stdio.h>
main.c:7:3: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
    7 |   scanf("%d %d",&N,&K);
      |   ^~~~~
main.c:7:3: note: include '<stdio.h>' or provide a declaration of 'scanf'
main.c:9:17: error: 'h' undeclared (first use in this function)
    9 |     scanf("%d",&h[i]);
      |                 ^
main.c:9:17: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:3: error: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   19 |   printf("%d\n",j);
      |   ^~~~~~
main.c:19:3: note: include '<stdio.h>' or provide a declaration of 'printf'
main.c:19:3: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
main.c:19:3: note: include '<stdio.h>' or provide a declaration of 'printf'
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main (){
  int N,K,x,y,z;
  y=0;
  z=0;
  cin>>N>>K;
  while(1){
    cin>>x;
    if(y==N+1)break;
    if(x=>K){
      z=z+1;
    }else{
      z=z+0;
    }
    y=y+1;
  }
  cout<<z;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: expected primary-expression before '>' token
   12 |     if(x=>K){
      |          ^
a.cc: At global scope:
a.cc:21:3: error: expected unqualified-id before 'return'
   21 |   return 0;
      |   ^~~~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main (){
  int N,K,x,y,z;
  y=0;
  z=0;
  cin>>N>>K;
  while(1){
    cin>>x;
    if(y==N+1)break;
    if(x=>K){
      z=z+1;
    }else{
      z=z+0;
    }
    y=y+1;
  }
  cout<<z;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: expected primary-expression before '>' token
   12 |     if(x=>K){
      |          ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
//#define int long long
#define fo(a,b) for(int a=0;a<b;a++)
#define Sort(a) sort(a.begin(),a.end())
#define rev(a) reverse(a.begin(),a.end())

 int main ()
 {
   int n,k;
   cin>>n>>k;
   vector<int> h(n);
   for(int i=0; i<n; ++i){
     cin>>h[i];
     int counter=0;
     while(h[i]<=k){
       ++counter
     }
     cout<<counter<<endl;
   }
 }
     


Compiler output:
a.cc: In function 'int main()':
a.cc:17:17: error: expected ';' before '}' token
   17 |        ++counter
      |                 ^
      |                 ;
   18 |      }
      |      ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
 
int main (){
  int N,K,x,y,z;
  y=0;
  z=0;
  cin>>N>>K;
  while(1){
    cin>>x;
    if(y==N+1)break;
    if(x=>K){
      z=z+1;
    }else{
      z=z+0;
    }
    y=y+1;
  }
  cout<<z;
}
return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: expected primary-expression before '>' token
   12 |     if(x=>K){
      |          ^
a.cc: At global scope:
a.cc:21:1: error: expected unqualified-id before 'return'
   21 | return 0;
      | ^~~~~~
a.cc:22:1: error: expected declaration before '}' token
   22 | }
      | ^
Language: C++

#include <bits/stdc++.h>
uisng namespace std;
int main() {
  int n,k,dem=0,a[10000];
  cin>>n>>k;
  for(int i=0;i<n;i++) {
    cin>>a[i];
    if(a[i]>=k) dem++;
  }cout<<dem;
}

Compiler output:
a.cc:2:1: error: 'uisng' does not name a type
    2 | uisng namespace std;
      | ^~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>n>>k;
      |   ^~~
      |   std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 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:9:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
    9 |   }cout<<dem;
      |    ^~~~
      |    std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:3: error: 'cin' was not declared in this scope
    6 |   cin >> N,K;
      |   ^~~
a.cc:14:3: error: 'cout' was not declared in this scope; did you mean 'count'?
   14 |   cout << count << endl;
      |   ^~~~
      |   count
a.cc:14:20: error: 'endl' was not declared in this scope
   14 |   cout << count << endl;
      |                    ^~~~
Language: C++

#include<iostream>
using namespace std;

int main(){
 int N;
 int K;
 int height[100001];
 cin >> N;
 cin >> K;
 for(int i=0; i<N+; ++i){
      cin >> height[i]; 
 }
 int cnt  = 0;
 for(int i = 0; i < N; ++i){
   if(height[i] >= K) cnt++; 
 }
 cout << cnt << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:19: error: expected primary-expression before ';' token
   10 |  for(int i=0; i<N+; ++i){
      |                   ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(void){
  int N,K = 0;
  int Hi;
  int cnt=0;
  cin >> N >> K;
  for (int i=0;i<N;i++){
    cin >> Hi
    cnt+=int(K<=Hi);
  }
  cout << cnt;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: expected ';' before 'cnt'
   10 |     cin >> Hi
      |              ^
      |              ;
   11 |     cnt+=int(K<=Hi);
      |     ~~~
Language: C++

#include <iostream>

int main(void)
{
  int N, K;
  int count = 0;
  cin >> N;
  cin >> K;
  int* hight;
  if(0 == N)return -1;
  hight = new int[N];
  for(int i=0; i<N; i++)
  {
    cin >> hight[i];
    if(hight[i] > K)count++;
  }
  return count;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    7 |   cin >> N;
      |   ^~~
      |   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 <iostream>
using namespace std;
 
int main(){
	unsigned int N, K;
  	cin >> N >> K;
	unsigned int h[N];
    for(int i=0; i < N; i++){
    	cin >> h[i];
    }
  
    unsigned int counter=0;
    for(int i=0; i < N; i++){
      if (h[i] >= K){
        counter += 1;
      }
      
    cout << counter << endl;
    return 0;
    }

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

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

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

#include<bits/stdc++.h>
using namespace std;
//#define int long long
#define fo(a,b) for(int a=0;a<b;a++)
#define Sort(a) sort(a.begin(),a.end())
#define rev(a) reverse(a.begin(),a.end())

 int main ()
 {
   int n,k;
   cin>>n>>k;
   vector<int> h(n);
   for(int i=0; i<n; ++i){
   int counter=0;
   if(h[i]>=k) ++counter;
   }
   cout<<counter<<endl;
 }


Compiler output:
a.cc: In function 'int main()':
a.cc:17:10: error: 'counter' was not declared in this scope
   17 |    cout<<counter<<endl;
      |          ^~~~~~~
Language: C

#include <stdio.h>

const int MAXN=1e5+5;
int n,k,cnt;
int a[MAXN];

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

Compiler output:
main.c:5:5: error: variably modified 'a' at file scope
    5 | int a[MAXN];
      |     ^
Language: C++

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

int main(){

  int n,k,ans=0;
  cin >> n >> k;
  
  vector<int> h(n);
  
  for(int i = 0; i < N; i++){

    cin >> h.at(i);
  if(h.at(i) >= k)
    ans++;
  
  }
  
  cout << ans;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:22: error: 'N' was not declared in this scope
   11 |   for(int i = 0; i < N; i++){
      |                      ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
//#define int long long
#define fo(a,b) for(int a=0;a<b;a++)
#define Sort(a) sort(a.begin(),a.end())
#define rev(a) reverse(a.begin(),a.end())

 int main ()
 {
   int n,k;
   cin>>n>>k;
   vector<int> h(n);
   for(int i=0; i<n; ++i)
     cin>>h[i];
   int counter=0;
   if(h[i]>=k) ++counter;
   cout<<counter<<endl;
 }

Compiler output:
a.cc: In function 'int main()':
a.cc:16:9: error: 'i' was not declared in this scope
   16 |    if(h[i]>=k) ++counter;
      |         ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N,K;
  cin >> N >> K;
  vecor<int> vec(N);
  for (int i=0; i<N; ++i) {
    cin >> vec.at(i);
  }
  int a = 0;
  for (int j=0; j<N; ++j) {
    if (vec.at(j) >= K) {
      ++a;
    }
  }
  cout << a << endl;
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vecor' was not declared in this scope
    7 |   vecor<int> vec(N);
      |   ^~~~~
a.cc:7:9: error: expected primary-expression before 'int'
    7 |   vecor<int> vec(N);
      |         ^~~
a.cc:9:12: error: 'vec' was not declared in this scope
    9 |     cin >> vec.at(i);
      |            ^~~
a.cc:13:9: error: 'vec' was not declared in this scope
   13 |     if (vec.at(j) >= K) {
      |         ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vecor' was not declared in this scope
    7 |   vecor<int> vec(N);
      |   ^~~~~
a.cc:7:9: error: expected primary-expression before 'int'
    7 |   vecor<int> vec(N);
      |         ^~~
a.cc:9:18: error: missing template arguments before '.' token
    9 |     cin >> vector.at(i);
      |                  ^
a.cc:13:9: error: 'vec' was not declared in this scope
   13 |     if (vec.at(j) >= K) {
      |         ^~~
Language: C++

#include <iostream>
using namespace std;

int main() {
	int n,k,count++;
  	cin>>n>>k;
  	
  	int arr[n];
  	for(int i=0;i<n;i++)
    {
      cin>>arr[i];
      if(arr[i]>=k)
        count++;
    }
  
  	cout<<count<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:22: error: expected initializer before '++' token
    5 |         int n,k,count++;
      |                      ^~
a.cc:13:9: error: 'count' was not declared in this scope
   13 |         count++;
      |         ^~~~~
a.cc:16:15: error: 'count' was not declared in this scope
   16 |         cout<<count<<endl;
      |               ^~~~~
Language: Java

package test;

public class Main{

	public static void main (String[] args) {

		Scanner sc = new Scanner (System.in);

		int N = sc.nextInt();
		int K = sc.nextInt();
		int count = 0;

		for (int index=0; index<N; index++) {
			if (sc.nextInt()>=K) {
				count++;
			}
		}

		System.out.println(count);
	}
}

Compiler output:
Main.java:7: error: cannot find symbol
		Scanner sc = new Scanner (System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:7: error: cannot find symbol
		Scanner sc = new Scanner (System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
2 errors
Language: C++

#include <bits/stdc++.h>

using namespace std;

int main()
{
    long long n,k,i,ans=0;
    cin>>n>>k;
    int a[n];
    for(i=0;i<n;i++)
    {
       cin>>a[i];
    }
    sort(a,a+n);
    for(i=0;i<n;i++);
   {
     if(a[i]>=k)
     {
       ans=n-i+1;
       break;
     }
   }
   cout<<ans;
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:8: error: break statement not within loop or switch
   20 |        break;
      |        ^~~~~
Language: C++

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

int main(){
    int n,k,ans=0;
    cin >> n >> k;
    for(int i = 0 ; i < n ; i += 1){
        cin >> a;
        if(a >= k){
            ans += 1;
        }
    }
    cout << ans;
}

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

#include <iostream>
#include <algorithm>
#include <string>
#include <cmath>
#include <queue>
#include <cstdio>
#include <iomanip>
using namespace std;
typedef long long ll;

int gcd(int a,int b){
    int t;
    while(b>0){
        t=b;
        b=a%b;
        a=t;
    }
    return a;
}

int lcm(int a,int b){
    return a*b/gcd(a,b);
}

int main(){
    ll n,a,b,c,d,e,k,l,m,o=0,p,q,r,x,y,z,max1=0,ans=0;
    string s,t,u;
    cin>>n>>k;
    ll h[n];
    for(ll i=0;i<n;i++){
        cin>>h[i]; 
        if(k[i]>=k)o++;
    }
    cout<<o<<endl;
}






Compiler output:
a.cc: In function 'int main()':
a.cc:32:13: error: invalid types 'll {aka long long int}[ll {aka long long int}]' for array subscript
   32 |         if(k[i]>=k)o++;
      |             ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:14: error: expected ';' before '}' token
   10 |       count++
      |              ^
      |              ;
   11 |   }
      |   ~
Language: C++

#include<bit/stdc++.h>

int main(){
	int n,k,x,ct=0;
  	scanf("%d%d",&n,&k);
  	while(n--){
    	scanf("%d",&x);
      	if(x>=k) ct++;
    }
  printf("%d",ct);
  
}


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

#include <stdio.h>
#include<string.h>
#include<stdlib.h>
#include<math.h>
long long cmpfunc (const void * a, const void * b) {
   return ( *(long long*)a - *(long long*)b );
}



int main(void){
   
long long int test,i,j,n,count,flag=0,o1=0,o2=0,b1,x,m,l,max,sum2,min,f,c,r,o,sum1,sum=0,y,a,b,count1=0,a2,b2, k;
scanf("%lld%lld",&n,&k);
count=0
for(i=0;i<n;i++){
    scanf("%lld",&a);
    if(a>=k){
        count++;
    }
}
printf("%lld",count);
return 0;
}


Compiler output:
main.c: In function 'main':
main.c:15:8: error: expected ';' before 'for'
   15 | count=0
      |        ^
      |        ;
   16 | for(i=0;i<n;i++){
      | ~~~
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
typedef long long ll;
using namespace std;

int main(){
    int  N,K,ans = 0;
  cin >> N >> K;
  int X[N];
    for(int i=0;i<N;i++){
    cin >> X[i];
    if(X[i]>= K)ans++
    }

    cout << ans << endl;

  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:22: error: expected ';' before '}' token
   13 |     if(X[i]>= K)ans++
      |                      ^
      |                      ;
   14 |     }
      |     ~
Language: C++

#include <set>
#include <map>
#include <list>
#include <stack>
#include <cmath>
#include <ctime>
#include <cstdio>
#include <vector>
#include <string>
#include <bitset>
#include <cctype>
#include <cstdlib>
#include <cstring>
#include <utility>
#include <numeric>
#include <complex>
#include <sstream>
#include <fstream>
#include <iomanip>
#include <cassert>
#include <iostream>
#include <iterator>
#include <algorithm>
using namespace std;
typedef long long ll;
const double EPS = 1e-9;
#define rep(i, n) REP(i, 0, n)
#define ALL(v) v.begin(), v.end()
#define MSG(a) cout << #a << " " << a << endl;
#define REP(i, x, n) for(int i = x; i < n; i++)

int main(){
  int n, h, a, c=0;
  cin >> n >> h;
  rep(n) {
    cin >> a;
    if(a >= h) c++;
  }
  ciout << c << endl;
  
  cout << a << endl;
}

Compiler output:
a.cc:35:8: error: macro "rep" requires 2 arguments, but only 1 given
   35 |   rep(n) {
      |        ^
a.cc:27:9: note: macro "rep" defined here
   27 | #define rep(i, n) REP(i, 0, n)
      |         ^~~
a.cc: In function 'int main()':
a.cc:35:3: error: 'rep' was not declared in this scope
   35 |   rep(n) {
      |   ^~~
a.cc:39:3: error: 'ciout' was not declared in this scope
   39 |   ciout << c << endl;
      |   ^~~~~
Language: Java

import java.io.PrintStream;
import java.util.Scanner;

public class Main {
	static final PrintStream out = System.out;
	static final Scanner sc = new Scanner(System.in);
	static final long Mod = 1000_000_007L;
	public static void main(String[] args) {
		Main main = new Main();
		main.solve();
		System.exit(0);
	}

	void solve() {
		int N = nextInt(); // N人
		int K = nextInt(); // Kcm
		int[] h = nextIntArray(N);

		int sum = 0;
		for(int a: h) {
			if(a>=K)sum++;
		}
		out.println(sum);
	}

	public int nextInt() {
		return Integer.parseInt(next());
	}
	public long nextLong() {
		return Long.parseLong(next());
	}
	public String next() {
		return sc.next();
	}

}

Compiler output:
Main.java:17: error: cannot find symbol
		int[] h = nextIntArray(N);
		          ^
  symbol:   method nextIntArray(int)
  location: class Main
1 error
Language: C++

import java.util.*;

public class Main {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int n = sc.nextInt(), k = sc.nextInt();
		int h[] = new int[n];
		for(int i = 0; i < n; ++i)
		h[i] = sc.nextInt();
		sc.close();
		int ans = 0;
		for(int i = 0; i < n; ++i){
			if(h[i] >= k)++ans;
		}
		System.out.println(ans);
	}
}


Compiler output:
a.cc:1:1: error: 'import' does not name a type
    1 | import java.util.*;
      | ^~~~~~
a.cc:1:1: note: C++20 'import' only available with '-fmodules-ts'
a.cc:3:1: error: expected unqualified-id before 'public'
    3 | public class Main {
      | ^~~~~~
Language: C++

#include <bits/stdc++.h>

using namespace std;
int f[100050];
int main()
{
    int n,k,cnt=0;
    scanf("%d%d",&n,&k);
    for(int i=0;i<n;i++){
        scanf("%d",&f[i]);
        if(f[i]>=k)
            cnt++;
    }
    cout << cnt《《endl;
    return 0;
}


Compiler output:
a.cc:14:13: error: extended character 《 is not valid in an identifier
   14 |     cout << cnt《《endl;
      |             ^
a.cc:14:13: error: extended character 《 is not valid in an identifier
a.cc: In function 'int main()':
a.cc:14:13: error: 'cnt\U0000300a\U0000300aendl' was not declared in this scope
   14 |     cout << cnt《《endl;
      |             ^~~~~~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n;
    cin>>n>>h; int cnt = 0;
    for(int i=1; i<=n; i++)
    {
        int x;
        cin>>x;
        if(x>=h) cnt++;
    }
    cout<<cnt<<endl;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:6:13: error: 'h' was not declared in this scope
    6 |     cin>>n>>h; int cnt = 0;
      |             ^
Language: C++

#include<bits/stdc++.h>
#define rep(i,N) for(ll i=0; i<N; i++)
using namespace std;
using ll = long long;
const ll MOD = 1000000007;

int main(){
    ll n, k; cin >> n >> k;
    ll h[n]; rep(i,n) cin >> h[i];

    ll ans = 0;
    rep(i,n){
        if(h[i] >= k) ans++
    }

    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:28: error: expected ';' before '}' token
   13 |         if(h[i] >= k) ans++
      |                            ^
      |                            ;
   14 |     }
      |     ~
Language: C++

#include <stdio.h>
#include <algorithm>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <queue>
#include <set>
#include <map>

#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define for_p(i, a, b) for(int i = a; i < b; i++)
#define for_m(i, a, b) for(int i = a - 1; i >= b; i--)

//a = s1.size();
//vector<string> s1;
//string s2 = accumulate( s1.begin(), s1.end(), string() );

using namespace std;

int main()
{
  int a = 0 , b = 0, c = 0, d = 0, e = 0, f = 0;
  double g = 0, h = 0;
    int i = 0, j = 0;
  double d1 = 0, d2 = 0, d3 = 0, d4 = 0, d5 = 0, d6 = 0;
  int a1[10000], a2[512], a3[1024];
  char s1[200000], s2[200000], s3[200000];
  
  cin >> a >> b;
  
  for(i = 0; i < a; i++){
    cin >> a1[i];
  }
  
  for(i = 0; i < a; i++){
    if(a1[i] >= b){
      c++;
    }
  }
  
  cout << c << endl;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:30:3: error: 'cin' was not declared in this scope
   30 |   cin >> a >> b;
      |   ^~~
a.cc:9:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    8 | #include <map>
  +++ |+#include <iostream>
    9 | 
a.cc:42:3: error: 'cout' was not declared in this scope
   42 |   cout << c << endl;
      |   ^~~~
a.cc:42:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:42:16: error: 'endl' was not declared in this scope
   42 |   cout << c << endl;
      |                ^~~~
a.cc:9:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    8 | #include <map>
  +++ |+#include <ostream>
    9 |
Language: C++

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

//C++14 (GCC 5.4.1)

#define LLINF (1LL<<60)
typedef long long ll;
#define mod 1000000007

#define repd(i,a,b) for (int i=(a);i<(b);i++)
#define rep(i,n) repd(i,0,n)
#define rrepd(i,a,b) for(int i=(a);i>=(b);i--)

template<typename T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<typename T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }

template<typename T> inline T divrup(T a, T b) { if (a % b) return a/b+1; else return a/b;}
template < typename T > inline string toString( const T &a ) { ostringstream oss; oss << a; return oss.str(); }

#define dbg_v1(i,V) do{cout<<"-v1----\n";rep(i,V.size())cout<<" "<<i<<"\t:"<<V[i]<<endl;cout<<endl;}while(0)
#define dbg_v2(i,k,V) do{cout<<"-v2----\n";rep(i,V.size()){rep(k,V[0].size())cout<<" "<<V[i][k];cout<<endl;}}while(0)

int main() {
    ios::sync_with_stdio(false);//stdoutとcoutの同期解除
    cin.tie(nullptr);//cinとcoutの同期解除
    
    int N,K;
    cin >>N>>K;

    vector<int> h(N);
    rep(i,N) cin >> h[i];
    //-----------------------------------
    int ans=0;
    rep(i,N) if(h[i]>=K)ans++;


    cout << ans <<endl;
    cout << ((is) ? "Yes" : "No") <<endl;
    return (0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:38:15: error: 'is' was not declared in this scope
   38 |     cout << ((is) ? "Yes" : "No") <<endl;
      |               ^~
Language: C++

n, k = [int(i) for i in input().split()]
h = [int(i) for i in input().split()]
nc = len([i for i in h if i >= k])
print(nc)

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

#include <stdio.h>
#include <algorithm>
#include <cstring>
#include <cstdlib>
#include <cmath>
#include <queue>
#include <set>
#include <map>

#define MIN(a, b) ((a) < (b) ? (a) : (b))
#define MAX(a, b) ((a) > (b) ? (a) : (b))
#define for_p(i, a, b) for(int i = a; i < b; i++)
#define for_m(i, a, b) for(int i = a - 1; i >= b; i--)

//a = s1.size();
//vector<string> s1;
//string s2 = accumulate( s1.begin(), s1.end(), string() );

using namespace std;

int main()
{
  int a = 0 , b = 0, c = 0, d = 0, e = 0, f = 0;
  double g = 0; h = 0;
    int i = 0, j = 0;
  double d1 = 0, d2 = 0, d3 = 0, d4 = 0, d5 = 0, d6 = 0;
  int a1[10000], a2[512], a3[1024];
  char s1[200000], s2[200000], s3[200000];
  
  cin >> a >> b;
  
  for(i = 0; i < a; i++){
    cin >> a1[i];
  }
  
  for(i = 0; i < a; i++){
    if(a1[i] >= b){
      c++;
    }
  }
  
  cout << c << endl;
}
  


Compiler output:
a.cc: In function 'int main()':
a.cc:24:17: error: 'h' was not declared in this scope
   24 |   double g = 0; h = 0;
      |                 ^
a.cc:30:3: error: 'cin' was not declared in this scope
   30 |   cin >> a >> b;
      |   ^~~
a.cc:9:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    8 | #include <map>
  +++ |+#include <iostream>
    9 | 
a.cc:42:3: error: 'cout' was not declared in this scope
   42 |   cout << c << endl;
      |   ^~~~
a.cc:42:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:42:16: error: 'endl' was not declared in this scope
   42 |   cout << c << endl;
      |                ^~~~
a.cc:9:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    8 | #include <map>
  +++ |+#include <ostream>
    9 |