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

public class Main {

	public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		List<Integer> AArr = new ArrayList<Integer>();

		int N = sc.nextInt();

		int K = sc.nextInt();

		int Q = sc.nextInt();

		for(int i = 0;i<Q;i++)
		{
			int A = sc.nextInt();
			AArr.add(A - 1);
		}

		List<Integer> nArr = new ArrayList<Integer>();

		for(int i = 0;i<N;i++)
		{
			nArr.add(K);
		}

		for(int i = 0;i<Q;i++)
		{
			int tmp = AArr.get(i);

			for(int j = 0 ; j < nArr.size();j++)
			{
				if(j != tmp) {
					nArr.set(j, nArr.get(j) - 1);
				}

			}

		}

		for(int i = 0;i<N;i++)
		{
			if(nArr.get(i) <= 0) {
				System.out.println("No");
			}
			else
			{
				System.out.println("Yes");
			}

		}

	}
}

Compiler output:
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		^
  symbol:   class Scanner
  location: class Main
Main.java:5: error: cannot find symbol
		Scanner sc = new Scanner(System.in);
		                 ^
  symbol:   class Scanner
  location: class Main
Main.java:6: error: cannot find symbol
		List<Integer> AArr = new ArrayList<Integer>();
		^
  symbol:   class List
  location: class Main
Main.java:6: error: cannot find symbol
		List<Integer> AArr = new ArrayList<Integer>();
		                         ^
  symbol:   class ArrayList
  location: class Main
Main.java:20: error: cannot find symbol
		List<Integer> nArr = new ArrayList<Integer>();
		^
  symbol:   class List
  location: class Main
Main.java:20: error: cannot find symbol
		List<Integer> nArr = new ArrayList<Integer>();
		                         ^
  symbol:   class ArrayList
  location: class Main
6 errors
Language: Java

public static void main(String[] args)
	{
		Scanner sc = new Scanner(System.in);
		List<Integer> AArr = new ArrayList<Integer>();

		int N = sc.nextInt();

		int K = sc.nextInt();

		int Q = sc.nextInt();

		for(int i = 0;i<Q;i++)
		{
			int A = sc.nextInt();
			AArr.add(A - 1);
		}

		List<Integer> nArr = new ArrayList<Integer>();

		for(int i = 0;i<N;i++)
		{
			nArr.add(K);
		}

		for(int i = 0;i<Q;i++)
		{
			int tmp = AArr.get(i);

			for(int j = 0 ; j < nArr.size();j++)
			{
				if(j != tmp) {
					nArr.set(j, nArr.get(j) - 1);
				}

			}
		}

		for(int i = 0;i<N;i++)
		{
			if(nArr.get(i) <= 0) {
				System.out.println("No");
			}
			else
			{
				System.out.println("Yes");
			}

		}

	}

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

#include<bits/stdc++.h>
using namespace std;
#define N 200000
int a[N], n, k, q;

int main() {
    //freopen("sample.in", "r", stdin);
    cin >> n >> k >> q;
    for(int i = 1; i <= q; i++) {
        int tmp; scanf("%d", &tmp);
        a[tmp]++;
    }
    for(int i = 1; i <= n; i++)
        if (k + a[tmp] <= q) cout << "No" << endl;
        else cout << "Yes" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:19: error: 'tmp' was not declared in this scope; did you mean 'tm'?
   14 |         if (k + a[tmp] <= q) cout << "No" << endl;
      |                   ^~~
      |                   tm
Language: C++

#include <iostream>
using std::cin ;
using std::cout;

int main(){
  std::ios_base::sync_with_studio(false);
  cin.tie(0);cout.tie(0);
  int N,K,Q; cin>>N>>K>>Q;
  int* member = new int[N];
  for (int i=0;i<Q;++i){
    int tmp; cin>>tmp;
    ++member[tmp-1];
  }
  for(int i=0;i<N;++i){
    if((member[i]+K)>Q){
      cout << "Yes";
    }else{
      cout << "No";
    }
    cout << std::endl;
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:18: error: 'sync_with_studio' is not a member of 'std::ios_base'
    6 |   std::ios_base::sync_with_studio(false);
      |                  ^~~~~~~~~~~~~~~~
Language: C++

#include<iosream>

using namespace std;

int main() {
  int N, Q,i,t;
  int a[100000];
  long K;
  
  cin >> N >> K >> Q;
  for ( i= 0; i<Q; i++){
    cin >> t;
    a[t-1] += 1;
  }
  
  for(i=0;i<Q;i++){
    if(a[i] > K - Q){
      cout << "Yes" << endl;
    }
    else{
      cout << "No" << endl;
    }
  }
  
  return 0;
}

Compiler output:
a.cc:1:9: fatal error: iosream: No such file or directory
    1 | #include<iosream>
      |         ^~~~~~~~~
compilation terminated.
Language: Java

import java.util.ArrayList;
import java.util.Scanner;

public class AttackSurvival {

	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
		int Q = sc.nextInt();
		int arr[] = new int[N];
		for(int i = 0;i<N;i++)arr[i]=K;
		if (Q < K) {
			while (N-- > 0) {
				System.out.println("YES");
			}
		} else {
			for(int i = 0;i<Q;i++) {
				int temp = sc.nextInt();
				arr[temp-1]++;
			}
			for(int i = 0;i<N;i++) {
				//System.out.println(arr[i]);
				System.out.println(arr[i]>Q?"YES":"NO");
			}
			
		}
	}

}


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

#include <bits/stdc++.h>

using namespace std;
const int MAX  =  1e5+7;
int a[MAX];

int main(){
    int n, k, q;

    cin>>n>>k>>q;
    int cnt = 0;

    for(int i = 1;i< = n;i++)
        a[i] = k;

    for(int i = 1;i< = q;i++) {
        cin>>k;
        a[k]++;
    }

    for(int i = 1;i< = n;i++) {
        if(a[i] <= q)
            puts("No");
        else
            puts("Yes");
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:22: error: expected primary-expression before '=' token
   13 |     for(int i = 1;i< = n;i++)
      |                      ^
a.cc:16:22: error: expected primary-expression before '=' token
   16 |     for(int i = 1;i< = q;i++) {
      |                      ^
a.cc:21:22: error: expected primary-expression before '=' token
   21 |     for(int i = 1;i< = n;i++) {
      |                      ^
Language: C++

#include<iostream>
#include<vector>
using namespace std;
int main(){
  int n,k,q;
  cin>>n>>k>>q;
  vector<int> s(n);
  for(int i=0;i<n;i++){
    s[i]=k;
  }
  vector<int> a(q);
  for(int i=0;i<q;i++){
    cin>>a[i];
    for(int j=0;j<n;j++){
      if(a[i]!=j){
        s[i]--;
      }
    }
  }
  for(int i=0;i<n:i++){
    if(s[i]<=0){
      cout<<'No'<<endl;
    }else{
      cout<<'Yes'<<endl;
    }
  }
  return 0;
}

  
  


Compiler output:
a.cc:22:13: warning: multi-character character constant [-Wmultichar]
   22 |       cout<<'No'<<endl;
      |             ^~~~
a.cc:24:13: warning: multi-character character constant [-Wmultichar]
   24 |       cout<<'Yes'<<endl;
      |             ^~~~~
a.cc: In function 'int main()':
a.cc:20:15: warning: range-based 'for' loops with initializer only available with '-std=c++20' or '-std=gnu++20' [-Wc++20-extensions]
   20 |   for(int i=0;i<n:i++){
      |               ^
a.cc:20:18: error: found ':' in nested-name-specifier, expected '::'
   20 |   for(int i=0;i<n:i++){
      |                  ^
      |                  ::
a.cc:20:17: error: 'n' is not a class, namespace, or enumeration
   20 |   for(int i=0;i<n:i++){
      |                 ^
a.cc:27:3: error: expected primary-expression before 'return'
   27 |   return 0;
      |   ^~~~~~
a.cc:26:4: error: expected ';' before 'return'
   26 |   }
      |    ^
      |    ;
   27 |   return 0;
      |   ~~~~~~
a.cc:27:3: error: expected primary-expression before 'return'
   27 |   return 0;
      |   ^~~~~~
a.cc:26:4: error: expected ')' before 'return'
   26 |   }
      |    ^
      |    )
   27 |   return 0;
      |   ~~~~~~
a.cc:20:6: note: to match this '('
   20 |   for(int i=0;i<n:i++){
      |      ^
Language: C++

#include<iostream>
#include<vector>
using namespace std;
int main(){
  int n,k,q;
  cin>>n>>k>>q;
  vector<int> s(n);
  for(int i=0;i<n;i++){
    s[i]=k;
  }
  vector<int> a(q);
  for(int i=0;i<q;i++){
    cin>>a[i];
    for(int j=0;j<n;j++){
      if(a[i]!=j){
        s[i]--;
      }
    }
  }
  for(int i=0;i<n:i++){
    if(s[i]<=0){
      cout<<'No'<<endl;
    }else{
      cout<<'Yes'endl;
    }
  }
  return 0;
}

  }
  
  

Compiler output:
a.cc:22:13: warning: multi-character character constant [-Wmultichar]
   22 |       cout<<'No'<<endl;
      |             ^~~~
a.cc:24:13: warning: multi-character character constant [-Wmultichar]
   24 |       cout<<'Yes'endl;
      |             ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:20:15: warning: range-based 'for' loops with initializer only available with '-std=c++20' or '-std=gnu++20' [-Wc++20-extensions]
   20 |   for(int i=0;i<n:i++){
      |               ^
a.cc:20:18: error: found ':' in nested-name-specifier, expected '::'
   20 |   for(int i=0;i<n:i++){
      |                  ^
      |                  ::
a.cc:20:17: error: 'n' is not a class, namespace, or enumeration
   20 |   for(int i=0;i<n:i++){
      |                 ^
a.cc:27:3: error: expected primary-expression before 'return'
   27 |   return 0;
      |   ^~~~~~
a.cc:26:4: error: expected ';' before 'return'
   26 |   }
      |    ^
      |    ;
   27 |   return 0;
      |   ~~~~~~
a.cc:27:3: error: expected primary-expression before 'return'
   27 |   return 0;
      |   ^~~~~~
a.cc:26:4: error: expected ')' before 'return'
   26 |   }
      |    ^
      |    )
   27 |   return 0;
      |   ~~~~~~
a.cc:20:6: note: to match this '('
   20 |   for(int i=0;i<n:i++){
      |      ^
a.cc: At global scope:
a.cc:30:3: error: expected declaration before '}' token
   30 |   }
      |   ^
Language: C++

#!/usr/bin/env python3

N, K, Q = map(int, input().split())
c = [0 for _ in range(N+1)]
for i in range(Q):
    x = int(input())
    c[x] += 1
for i in range(1,N+1):
    if Q - c[i] < K:
        print('Yes')
    else:
        print('No')


Compiler output:
a.cc:1:2: error: invalid preprocessing directive #!
    1 | #!/usr/bin/env python3
      |  ^
a.cc:10:15: warning: multi-character character constant [-Wmultichar]
   10 |         print('Yes')
      |               ^~~~~
a.cc:12:15: warning: multi-character character constant [-Wmultichar]
   12 |         print('No')
      |               ^~~~
a.cc:3:1: error: 'N' does not name a type
    3 | N, K, Q = map(int, input().split())
      | ^
Language: C

#include <stdio.h>
#include <malloc>

int main()
{
	int n, k, q;
	scanf("%d %d %d",&n,&k,&q);
	int *a = (int)malloc(sizeof(int) * q + 1);
	int *b = (int)malloc(sizeof(int) * n + 1);
	for (int i = 1; i <= q; i++)
	{
		scanf("%d",&a[i]);
	}
	for (int i = 1; i <= n; i++)
	{
		b[i] = k;
	}
	for (int i = 1; i <= q; i++)
	{
		for (int j = 1; j <= n; j++)
		{
			if (j == a[i])continue;
			b[j] = b[j] - 1;
		}
	}
	for (int i = 1; i <= n; i++)
	{
		if (b[i] <= 0)printf("No\n");
		else
			printf("Yes\n");
	}
	return 0;
}

Compiler output:
main.c:2:10: fatal error: malloc: No such file or directory
    2 | #include <malloc>
      |          ^~~~~~~~
compilation terminated.
Language: C

#include <stdio.h>
#include <malloc>

int main()
{
	int n, k, q;
	scanf("%d %d %d",&n,&k,&q);
	int *a = (int)malloc(sizeof(int) * q + 1);
	int *b = (int)malloc(sizeof(int) * n + 1);
	for (int i = 1; i < q+1; i++)
	{
		scanf("%d",&a[i]);
		b[i] = k;
	}
	for (int i = 1; i < q + 1; i++)
	{
		for (int j = 1; j < n + 1; j++)
		{
			if (j == a[i])continue;
			b[j] = b[j] - 1;
		}
	}
	for (int i = 1; i < n+1; i++)
	{
		if (b[i] <= 0)printf("No\n");
		else
			printf("Yes\n");
	}
	return 0;
}

Compiler output:
main.c:2:10: fatal error: malloc: No such file or directory
    2 | #include <malloc>
      |          ^~~~~~~~
compilation terminated.
Language: C++

#include<iostream>
using namespace std;cin>>
int main(){
  int n,k,q;
  cin>>n>>k>>q;
  int m[n]={0};
  for(int i=0;i<q;i++){
    int x;
    cin>>x;
    m[x-1]++;
  }
  for(int i=0;i<n;i++){
  	if(k-(q-m[i])>0)
    cout<<"YES"<<"\n";
    else
    cout<<"NO"<<"\n";
  }
  return 0;
}
    


Compiler output:
a.cc:2:21: error: 'cin' does not name a type
    2 | using namespace std;cin>>
      |                     ^~~
Language: C++

#include <iostream>
#include <algorithm>
#include <vector>
#include <map>
#include <unordered_map>
#include <queue>
#include <utility>
#include <tuple>
#include <cmath>
using namespace std;
using ll = long long;
using ull = unsigned long long;
using vi = vector<int>;
using vb = vector<bool>;
using vvb = vector<vb>;
using vvi = vector<vi>;
using vs = vector<string>;
using vl = vector<ll>;
using vvl = vector<vl>;
using P = pair<int, int>;
using T = tuple<int, int, int>;
using vp = vector<P>;
struct initon
{
    initon()
    {
        cin.tie(0);
        ios::sync_with_stdio(false);
    };
};
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define FOR(i, m, n) for (i64 i = m; i < n; i++)
#define SORT(x) sort(x.begin(), x.end())
#define RS(x) rsort(x.begin(),x,end()))
#define REVE(x) reverse(x.begin(), x.end())
#define all(x) (x).begin(), (x).end()
#define fst first
#define mp make_pair
#define pb push_back
#define eb emplace_back
#define pob pop_back
#define sw swap
#define UP(x) transform(x.begin(), x.end(), x.begin(), ::toupper);
#define LOW(x) transform(x.begin(), x.end(), x.begin(), ::tolower);
#define na(a, n) rep(i, n) cin >> a[i];
template <class T>
inline bool chmax(T &a, T b)
{
    if (a < b)
    {
        a = b;
        return 1;
    }
    return 0;
}
template <class T>
inline bool chmin(T &a, T b)
{
    if (a > b)
    {
        a = b;
        return 1;
    }
    return 0;
}
vb d(10);
int ans(int x)
{
    while (x)
    {
        if (d[x % 10])
            return 0;
        x /= 10;
    }
    return 1;
}
//ここからメイン
int main()
{   int n,k,q,ans;
    cin >> n>>k>>q;
    vector<ll> a(n);
    rep(i,n){
     a[i]+=k;
     a[i]-=q;
    }
    rep(i,q){
        cin >> ans;
        a[ans-1]+=1;
    }
    rep(i,n){
        if(a[i]>=1){
            cout << "Yes"<<"\n";
        }else{
            cout << "No"<<"\n";
        }

Compiler output:
a.cc: In function 'int main()':
a.cc:95:10: error: expected '}' at end of input
   95 |         }
      |          ^
a.cc:90:13: note: to match this '{'
   90 |     rep(i,n){
      |             ^
a.cc:95:10: error: expected '}' at end of input
   95 |         }
      |          ^
a.cc:79:1: note: to match this '{'
   79 | {   int n,k,q,ans;
      | ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
int main(){
  ll N, K, Q;
  cin >> N >> K >> Q;
  vector<ll> A;
  for(ll i=0; i<Q; ++i){
    ll a;
    cin >> a;
    A[a-1]++;
  }
  for(i=0; i<N; ++i){
    if(K-(Q-A[i])>0){
      printf("Yes\n");
    }else{
      printf("No\n");
    }
  }
  return  0;
}

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){
      |       ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N, K, Q;
  cin >> N >> K >> Q;
  vector<int> A(N);
  vector<int> S(N) = {N};
  for(int i = 0; i < Q; i++){
    cin >> A[i];
    for(int n =0;n < N; n++){
      if(n != A[i]) S[n]--;
    }
  }
  for(int j =0; j < N; j++){
    if(S[n] <= 0) cout << "No" << endl;
    else cout << "Yes" << endl;
  }
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected ',' or ';' before '=' token
    7 |   vector<int> S(N) = {N};
      |                    ^
a.cc:15:10: error: 'n' was not declared in this scope
   15 |     if(S[n] <= 0) cout << "No" << endl;
      |          ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n,b;
  long long k;
  cin>>n>>m>>b;
  long long arr[n];
 
  for(int i=0;i<n;i++){
    arr[i]=m;
    
  }
  for(int i=0;i<b;i++){
    int x ;
    cin>>x;
    for(int j=0;j<x-1;j++){
      --arr[j];
    }
    for(int j=x;j<n;j++){
      --arr[j];
    }
  }
  for(int i=0;i<n;i++){
    if(arr[i]>0){
      cout<<"Yes\n";
    }else{
      cout<<"No\n";
    }
  }
  return 0;
}
    

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

#include <bits/stdc++.h>
using namespace std;
int main(){
  int N,K,Q;
  cin >> N >> K >> Q;
  vector<int> score(N,0);
  int A;
  
  for(int i=0;i<Q;i++){
    cin >> A;
    score.at(A-1)++
  }
  for(int i=0;i<N;i++){
    if(K-Q+score.at(i) > 0)
      cout<<"Yes"<<endl;
    else
      cout<<"No"<<endl;
  }
}
  

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected ';' before '}' token
   11 |     score.at(A-1)++
      |                    ^
      |                    ;
   12 |   }
      |   ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
const int N = 1e5 + 10;
int a[N];
int mian(void){
	ios::sync_with_stdio(0);
	cin.tie(0),cout.tie(0);
	int n,k,q,w;
	cin >> n >> k >> q;
	fill(a+1,a+1+n,k);
	while(q--){
		cin >> w;
		int i;
		for(i=1;i<w;i++) a[i] -= 1;
		for(i=w+1;i<=n;i++) a[i] -= 1; 
	}
	for(int i=1;i<n;i++){
		if(a[i] <= 0) cout << "NO\n";
		else cout << "YES\n";
	}
	return 0;
} 

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<iostream>
using namespace std;
const int N = 1e5 + 10;
int a[N],b[N];
void change(int s,int e,int t){
	b[s] += t;
	b[e+1] -= t;
}
int mian(void){
	ios::sync_with_stdio(0);
	cin.tie(0),cout.tie(0);
	int n,k,q,a;
	cin >> n >> k >> q;
	change(1,N,k);//初始化 
	while(q--){
		cin >> a;
		change(1,a-1,-1);
		change(a+1,n,-1);
	}
	for(int i=1;i<n;i++){
		b[i] += b[i-1];
		if(b[i] <= 0) cout << "NO\n";
		else cout << "YES\n";
	}
	return 0;
} 

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;
#define int long long int
#define ld long double
#define pb 	push_back
#define endl '\n'
#define all(x) (x).begin(),(x).end()
#define F first
#define S second
#define fuck() cout<<"--------"<<endl
#define see(x) cout<<#x<<" = "<<x<<endl
const int maxn=1e5+5;
int a[maxn];
int32_t main()
{
	ios_base::sync_with_stdio(0); cin.tie(0);cout.tie(0);
	int n,k,q;
	cin>>n>>k>>q;
	for(int i=1;i<=n;i++)
		a[i]=k;
	while(q--)
	{
		int x;
		cin>>x;
		a[x]++;
		d++;
	}
	for(int i=1;i<=n;i++)
		a[i]-=d;
	for(int i=1;i<=n;i++)
		if(a[i]<=0)cout<<"No\n";
		else cout<<"Yes\n";
}

Compiler output:
a.cc: In function 'int32_t main()':
a.cc:26:17: error: 'd' was not declared in this scope
   26 |                 d++;
      |                 ^
a.cc:29:23: error: 'd' was not declared in this scope
   29 |                 a[i]-=d;
      |                       ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long lont int 
int main(){
	ll n,k,q,temp;
  cin>>n>>k>>q;
  ll a[n];
  for(ll i=0;i<n;i++)
    a[i]=k;
  while(q--){
    cin>>temp;
    for(ll i=0;i<n;i++){
      if(i!=(temp-1))
        a[i]--;
    }
  }
  for(ll i=0;i<n;i++){
    if(a[i]>0)
      cout<<"Yes"<<endl;
    else
      cout<<"No"<<endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:22: error: expected initializer before 'int'
    3 | #define ll long lont int
      |                      ^~~
a.cc:5:9: note: in expansion of macro 'll'
    5 |         ll n,k,q,temp;
      |         ^~
a.cc:6:8: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |   cin>>n>>k>>q;
      |        ^
      |        yn
a.cc:6:11: error: 'k' was not declared in this scope
    6 |   cin>>n>>k>>q;
      |           ^
a.cc:6:14: error: 'q' was not declared in this scope
    6 |   cin>>n>>k>>q;
      |              ^
a.cc:3:22: error: expected initializer before 'int'
    3 | #define ll long lont int
      |                      ^~~
a.cc:7:3: note: in expansion of macro 'll'
    7 |   ll a[n];
      |   ^~
a.cc:3:22: error: expected ';' before 'int'
    3 | #define ll long lont int
      |                      ^~~
a.cc:8:7: note: in expansion of macro 'll'
    8 |   for(ll i=0;i<n;i++)
      |       ^~
a.cc:8:17: error: expected ')' before ';' token
    8 |   for(ll i=0;i<n;i++)
      |      ~          ^
      |                 )
a.cc:8:18: error: 'i' was not declared in this scope
    8 |   for(ll i=0;i<n;i++)
      |                  ^
a.cc:11:10: error: 'temp' was not declared in this scope; did you mean 'tm'?
   11 |     cin>>temp;
      |          ^~~~
      |          tm
a.cc:3:22: error: expected ';' before 'int'
    3 | #define ll long lont int
      |                      ^~~
a.cc:12:9: note: in expansion of macro 'll'
   12 |     for(ll i=0;i<n;i++){
      |         ^~
a.cc:12:19: error: expected ')' before ';' token
   12 |     for(ll i=0;i<n;i++){
      |        ~          ^
      |                   )
a.cc:3:22: error: expected ';' before 'int'
    3 | #define ll long lont int
      |                      ^~~
a.cc:17:7: note: in expansion of macro 'll'
   17 |   for(ll i=0;i<n;i++){
      |       ^~
a.cc:17:17: error: expected ')' before ';' token
   17 |   for(ll i=0;i<n;i++){
      |      ~          ^
      |                 )
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n,k,q,b,a,x;
  cin >> n >> k >> q;
  int a[x];
  x=1000000000000;
  for(int i=0;i<n;i++){
    a[i]=k;
  }
  for(int i=0;i<q;i++){
    cin >> b;
    a[b-1]++;
  }
  for(int i=0;i<n;i++){
    if(a[i]<=k){
      cout << "no" << endl;
    }
    else{
      cout << "yes" << endl;
    }
  }
  return 0;
}






Compiler output:
a.cc: In function 'int main()':
a.cc:6:7: error: conflicting declaration 'int a [x]'
    6 |   int a[x];
      |       ^
a.cc:4:15: note: previous declaration as 'int a'
    4 |   int n,k,q,b,a,x;
      |               ^
a.cc:7:5: warning: overflow in conversion from 'long int' to 'int' changes value from '1000000000000' to '-727379968' [-Woverflow]
    7 |   x=1000000000000;
      |     ^~~~~~~~~~~~~
a.cc:9:6: error: invalid types 'int[int]' for array subscript
    9 |     a[i]=k;
      |      ^
a.cc:13:6: error: invalid types 'int[int]' for array subscript
   13 |     a[b-1]++;
      |      ^
a.cc:16:9: error: invalid types 'int[int]' for array subscript
   16 |     if(a[i]<=k){
      |         ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n,k,q,b,a;
  cin >> n >> k >> q;
  int a[x];
  x=1000000000000;
  for(int i=0;i<n;i++){
    a[i]=k;
  }
  for(int i=0;i<q;i++){
    cin >> b;
    a[b-1]++;
  }
  for(int i=0;i<n;i++){
    if(a[i]<=k){
      cout << "no" << endl;
    }
    else{
      cout << "yes" << endl;
    }
  }
  return 0;
}





Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'x' was not declared in this scope
    6 |   int a[x];
      |         ^
a.cc:9:6: error: invalid types 'int[int]' for array subscript
    9 |     a[i]=k;
      |      ^
a.cc:13:6: error: invalid types 'int[int]' for array subscript
   13 |     a[b-1]++;
      |      ^
a.cc:16:9: error: invalid types 'int[int]' for array subscript
   16 |     if(a[i]<=k){
      |         ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n,k,q,b;
  cin >> n >> k >> q;
  for(int i=0;i<n;i++){
    a[i]=k;
  }
  for(int i=0;i<q;i++){
    cin >> b;
    a[b-1]++;
  }
  for(int i=0;i<n;i++){
    if(a[i]<=k){
      cout << "no" << endl;
    }
    else{
      cout << "yes" << endl;
    }
  }
  return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'a' was not declared in this scope
    7 |     a[i]=k;
      |     ^
a.cc:11:5: error: 'a' was not declared in this scope
   11 |     a[b-1]++;
      |     ^
a.cc:14:8: error: 'a' was not declared in this scope
   14 |     if(a[i]<=k){
      |        ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n,k,q,a;
  cin >> n >> k >> q;
  for(int i=0;i<n;i++){
    a[i]=k;
  }
  for(int i=0;i<q;i++){
    cin >> a;
    a[a-1]++;
  }
  for(int i=0;i<n;i++){
    if(a[i]<=k){
      cout << "no" << endl;
    }
    else{
      cout << "yes" << endl;
    }
  }
  return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: invalid types 'int[int]' for array subscript
    7 |     a[i]=k;
      |      ^
a.cc:11:6: error: invalid types 'int[int]' for array subscript
   11 |     a[a-1]++;
      |      ^
a.cc:14:9: error: invalid types 'int[int]' for array subscript
   14 |     if(a[i]<=k){
      |         ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n,k,q,a;
  cin >> n >> k >> q;
  for(int i=0;i<n;i++){
   int a[i]=k;
  }
  for(int i=0;i<q;i++){
    cin >> a;
    int a[a-1]!--;
  }
  for(int i=0;i<n;i++){
    if(a[i]<=0){
      cout << "no" << endl;
    }
    else{
      cout << "yes" << endl;
    }
  }
  return 0;
}




Compiler output:
a.cc: In function 'int main()':
a.cc:7:13: error: array must be initialized with a brace-enclosed initializer
    7 |    int a[i]=k;
      |             ^
a.cc:11:15: error: expected initializer before '!' token
   11 |     int a[a-1]!--;
      |               ^
a.cc:14:9: error: invalid types 'int[int]' for array subscript
   14 |     if(a[i]<=0){
      |         ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n,k,q,a;
  cin >> n >> k >> q;
  for(int i=0;i<n;i++){
    a[i]=k;
  }
  for(int i=0;i<q;i++){
    cin >> a;
    a[a-1]!--;
  }
  for(int i=0;i<n;i++){
    if(a[i]<=0){
      cout << "no" << endl;
    }
    else{
      cout << "yes" << endl;
    }
  }
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: invalid types 'int[int]' for array subscript
    7 |     a[i]=k;
      |      ^
a.cc:11:6: error: invalid types 'int[int]' for array subscript
   11 |     a[a-1]!--;
      |      ^
a.cc:14:9: error: invalid types 'int[int]' for array subscript
   14 |     if(a[i]<=0){
      |         ^
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n,k,q,a;
  cin >> n >> k >> q;
  for(int i=0;i<n;i++){
    a[i]=k;
  }
  for(int i=0;i<q;i++){
    cin >> a;
    a[a-1]!-1;
  }
  for(int i=0;i<n;i++){
    if(a[i]<=0){
      cout << "no" << endl;
    }
    else{
      cout << "yes" << endl;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: invalid types 'int[int]' for array subscript
    7 |     a[i]=k;
      |      ^
a.cc:11:6: error: invalid types 'int[int]' for array subscript
   11 |     a[a-1]!-1;
      |      ^
a.cc:14:9: error: invalid types 'int[int]' for array subscript
   14 |     if(a[i]<=0){
      |         ^
Language: C++

#include <iostream>
using namespace std;
int main(void){
    int n, k, q;
    cin >> n >> k >> q;
    vector<int> a;
    a.resize(q);
    for (int i = 0; i < q; i++) {
        cin >> a[i];
    }
    vector<int> point;
    point.resize(n);
    for (int i = 0; i < n; i++) {
        point[i] = k - q;
    }
    for (int i = 0; i < q; i++) {
        point[a[i]] += 1;
    }
    for (int i = 0; i < n; i++) {
        if (point[i] <= 0) {
            cout << "No" << endl;
        } else {
            cout << "Yes" << endl;
        }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'vector' was not declared in this scope
    6 |     vector<int> a;
      |     ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:6:12: error: expected primary-expression before 'int'
    6 |     vector<int> a;
      |            ^~~
a.cc:7:5: error: 'a' was not declared in this scope
    7 |     a.resize(q);
      |     ^
a.cc:11:12: error: expected primary-expression before 'int'
   11 |     vector<int> point;
      |            ^~~
a.cc:12:5: error: 'point' was not declared in this scope
   12 |     point.resize(n);
      |     ^~~~~
Language: C++

#include <iostream>
using namespace std;
int main(void){
    int n, k, q;
    cin >> n >> k >> q;
    vector<int> a;
    for (int i = 0; i < q; i++) {
        cin >> a[i];
    }
    vector<int> point;
    point.resize(n);
    for (int i = 0; i < n; i++) {
        point[i] = k - q;
    }
    for (int i = 0; i < q; i++) {
        point[a[i]] += 1;
    }
    for (int i = 0; i < n; i++) {
        if (point[i] <= 0) {
            cout << "No" << endl;
        } else {
            cout << "Yes" << endl;
        }
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:5: error: 'vector' was not declared in this scope
    6 |     vector<int> a;
      |     ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:6:12: error: expected primary-expression before 'int'
    6 |     vector<int> a;
      |            ^~~
a.cc:8:16: error: 'a' was not declared in this scope
    8 |         cin >> a[i];
      |                ^
a.cc:10:12: error: expected primary-expression before 'int'
   10 |     vector<int> point;
      |            ^~~
a.cc:11:5: error: 'point' was not declared in this scope
   11 |     point.resize(n);
      |     ^~~~~
a.cc:16:15: error: 'a' was not declared in this scope
   16 |         point[a[i]] += 1;
      |               ^
Language: C++

#include<iostream>
#include<cmath>
#include<algorithm>
using namespace std;
int a[100001] = {0};
int main()
{
	int x,q, k, n;
	scanf_s("%d%d%d",&n,&k,&q);
	for (int i = 0; i < q; i++)
	{
		scanf_s("%d",&x);
		a[x]++;
	}
	for (int i = 1; i <= n; i++)
	{
		if (a[i] + k - q > 0)
			printf("Yes\n");
		else
			printf("No\n");
	}
	return 0;
}

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

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,k,q;
  cin>>n>>k>>q;
  int player[n];
  for(int i=0;i<n;i++)
    player[i] = k-q;
  for(int i=0,i<q;i++){
    int who;
    cin>>who;
    player[who-1]++;
  }
  
  for(int i=0;i<n;i++){
    if(player[i]>0)
      cout<<"Yes";
    else
      cout<<"No";
  }
}

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

#include <iostream>
#include<string>
using namespace std;
int op[100001] = {0};
int main()
{
	int n, k, q;
	cin >> n >> k >> q;
	int pop;
	for (int i = 0; i < q; i++) {
		scanf_s("%d", &pop);
		op[pop]++;
	}
	if (k >= q)
		for (int i = 0; i < n; i++)
			cout << "Yes" << endl;
	else {
		for (int i = 1; i <= n; i++)
		{
			if (q - op[i] < k)
				cout << "Yes" << endl;
			else
				cout << "No" << endl;
		}
	}
	return 0;
}


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

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

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

    int a_point[100001];
    //int a[100001];
    //string A[100001];
    for(int i = 0; i < n; i++) {
        a_point[i] = k-q;
    }


    for(int i = 0; i < q; i++) {
        int win;
        cin >> win;
        a[win-1]++;
    }

    for(int i = 0; i < n; i++) {
        if(a_point[i] > 0) cout << "Yes" << endl;
        else cout << "No" << endl;
    }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:9: error: 'a' was not declared in this scope
   19 |         a[win-1]++;
      |         ^
Language: C++

#include<iostream>
#include<string>
#include<vector>
using namespace std;
 
int main() {
    int N, K, Q;
    cin >> N >> K >> Q;
 
    vector<int> points(N, K);
 
    for (int i = 0; i != Q; i++) {
        int answer;
        cin >> answer;
 
        for (int j = 0; j < N; j++) {
            if (j+1 == answer) {
                continue;
            }
            points[j] -= 1;
        }
    }
 
    for (int i = 0; i != N; i++) {
        if (points[i] > 0) {
            cout << "Yes"s;
        } else {
            cout << "No"s;
        }
        if (i == N-1)
            break;
        cout << "\n"s;
    }
}
#include<iostream>
#include<string>
#include<vector>
using namespace std;

int main() {
    int N, K, Q;
    cin >> N >> K >> Q;

    vector<int> points(N, K - Q);

    for (int i = 0; i != Q; i++) {
        int answer;
        cin >> answer;

        points[answer-1] += 1;
    }

    for (int i = 0; i != N; i++) {
        if (points[i] > 0) {
            cout << "Yes"s;
        } else {
            cout << "No"s;
        }
        if (i == N-1)
            break;
        cout << "\n"s;
    }
}
提出情報

Compiler output:
a.cc:40:5: error: redefinition of 'int main()'
   40 | int main() {
      |     ^~~~
a.cc:6:5: note: 'int main()' previously defined here
    6 | int main() {
      |     ^~~~
a.cc:64:1: error: '\U000063d0\U000051fa\U000060c5\U00005831' does not name a type
   64 | 提出情報
      | ^~~~~~~~
Language: C++

#include<iostring>
#include<string>
#include<vector>
using namespace std;

int main() {
    int N, K, Q;
    cin >> N >> K >> Q;

    vector<int> points(N, K);

    for (int i = 0; i != Q; i++) {
        int answer;
        cin >> answer;

        for (int j = 0; j < N; j++) {
            if (j+1 == answer) {
                continue;
            }
            points[j] -= 1;
        }
    }

    for (int i = 0; i != N; i++) {
        if (points[i] > 0) {
            cout << "Yes"s;
        } else {
            cout << "No"s;
        }
        if (i == N-1)
            break;
        cout << "\n"s;
    }
}

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

#include <iostream>
#include <iomanip>
#include <string>
#include <vector>
#include <map>
#include <set>
#include <stack>
#include <queue>
#include <algorithm>
#include <cmath>
#include <climits>
#include <math.h>
#include <bitset>

#define P pair
#define X first
#define Y second
#define VSORT(v) sort(v.begin(), v.end())
#define VREV(v) reverse(v.begin(), v.end())
#define VMAX_P(v) max_element(v.begin(), v.end())
#define VMIN_P(v) min_element(v.begin(), v.end())
#define VMAX_IDX(v) distance(v.begin(), VMAX_P(v))
#define VMIN_IDX(v) distance(v.begin(), VMIN_P(v))
#define VCOPY(src, dst) copy(src.begin(), src.end(), back_inserter(dst))
#define SUPPER(src, dst) transform(src.begin(), src.end(), dst.begin(), toupper);
#define SLOWER(src, dst) transform(src.begin(), src.end(), dst.begin(), tolower);

using namespace std;
using ll = long long;

int main(int argc, const char *argv[])
{
    ll n, k, q, x;
    vector<ll> r(n) = {};
    cin >> n >> k >> q;
    for (ll i = 0; i < q; i++)
    {
        cin >> x;
        r[x - 1]++;
    }

    for (ll i = 0; i < n; i++)
    {
        if (k - (q - r[i]) > 0)
        {
            cout << "Yes" << endl;
        }
        else
        {
            cout << "No" << endl;
        }
    }
}


Compiler output:
a.cc: In function 'int main(int, const char**)':
a.cc:34:21: error: expected ',' or ';' before '=' token
   34 |     vector<ll> r(n) = {};
      |                     ^
Language: C++

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

int main()
{
   long long int i,j,k,l,m,n,p,q,e;
      cin>>n>>k;
      long long int A[n+1];
       for(i=0;i<=n;i++)
       {
         A[i]=k;
       }
     cin>>q;
  e=q;
  while(q--)
  {
    cin>>x;
    A[x]++;
  }
  for(i=1;i<=n;i++)
  {
    A[i]=A[i]-e;
  }
  for(i=1;i<=n;i++)
  {
    if(A[i]>0)
      cout<<"Yes\n";
    else
      cout<<"No\n";
  }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:10: error: 'x' was not declared in this scope
   17 |     cin>>x;
      |          ^
Language: Java


import java.util.LinkedHashMap;
import java.util.Scanner;

public class MAin {

    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        Integer n = Integer.valueOf(scan.next());
        Integer k = Integer.valueOf(scan.next());
        Integer q = Integer.valueOf(scan.next());

        LinkedHashMap<Integer, Integer> score = new LinkedHashMap<>();
        for (int i = 1; i <= n; i++) {
            score.put(i, k);
        }

        int i = 0;
        for (; i < q; i++) {
            Integer winner = Integer.valueOf(scan.next());
            score.put(winner,score.get(winner)+1);
            //System.out.println(score);
        }

        for(int now : score.values()){
            System.out.println(now<=i?"No":"Yes");
        }

    }

}


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


import java.util.LinkedHashMap;
import java.util.Scanner;

public class ABC141C {

    public static void main(String args[]) {
        Scanner scan = new Scanner(System.in);
        Integer n = Integer.valueOf(scan.next());
        Integer k = Integer.valueOf(scan.next());
        Integer q = Integer.valueOf(scan.next());

        LinkedHashMap<Integer, Integer> score = new LinkedHashMap<>();
        for (int i = 1; i <= n; i++) {
            score.put(i, k);
        }

        Integer ikiti = 0;

        for (int i = 0; i < q; i++) {
            Integer winner = Integer.valueOf(scan.next());
            score.put(winner,score.get(winner)+1);
            ikiti++;
            //System.out.println(score);
        }

        String result = "";
        for(int now : score.values()){
            result+=(now<=ikiti?"No":"Yes")+"\n";
        }

        System.out.println(result);
    }

}


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

N,K,Q=map(int,input().split())
a=[]
A=[]

for _ in range(Q):
    a.append(int(input()))

for _ in range(N):
    A.append(int(K))

for n in range(Q):
    A[a[n]-1]+=1

for _ in range(Q):
    for m in range(N):
        A[m]-=1
    
for s in range(N):
    if A[s]<1:
        print("No")
    else:
        print("Yes")

Compiler output:
a.cc:1:1: error: 'N' does not name a type
    1 | N,K,Q=map(int,input().split())
      | ^
Language: Java

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

public class notYet {


	
	public static void main(String[] args)throws IOException
	{
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		PrintWriter out = new PrintWriter(System.out);
		
		StringTokenizer st1 = new StringTokenizer(br.readLine());
		
		int n = Integer.parseInt(st1.nextToken());
		int k = Integer.parseInt(st1.nextToken());
		int q = Integer.parseInt(st1.nextToken());
		
		int arr[] = new int[n];
		
		for(int i = 0 ; i < q ; i++)
		{
			arr[Integer.parseInt(br.readLine())-1]++;
		}
		
		for(int i = 0 ; i < n ; i++)
		{
			if(k-(q-arr[i]) > 0)
			{
				out.println("Yes");
			}
			else
			{
				out.println("No");
			}
		}
		
		
		out.flush();
		out.close();
	}
	
	
	


}


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

#include <bits/stdc++.h>
using namespace std;
int main() {
  int n,k,q;
  cin>> n >> k >> q ;
  vector<int> a.(q);
  for(int i=0;i<q;i++){
  cin>>a.at(i);
  }
  vector<int> s.(n,k-q);
  for(int i=0;i<q;i++){
    for(int j=0;j<n;j++){
  if (a.at(i)==j){
    s.at(j)++;}
  }
  }
  for(int j=0;j<n;j++){
    if(s.at(j)<=0)
    {cout<<"No";}
    else{
      cout<<"Yes";
    }
  }
  
  
}
    
    





Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: expected initializer before '.' token
    6 |   vector<int> a.(q);
      |                ^
a.cc:8:8: error: 'a' was not declared in this scope
    8 |   cin>>a.at(i);
      |        ^
a.cc:10:16: error: expected initializer before '.' token
   10 |   vector<int> s.(n,k-q);
      |                ^
a.cc:13:7: error: 'a' was not declared in this scope
   13 |   if (a.at(i)==j){
      |       ^
a.cc:14:5: error: 's' was not declared in this scope
   14 |     s.at(j)++;}
      |     ^
a.cc:18:8: error: 's' was not declared in this scope
   18 |     if(s.at(j)<=0)
      |        ^
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main(){
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  
  int n, k, q;
  cin >> n >> k >> q;
  
  vector<int> player(n + 1, 0);
  
  for(int i = 0; i < q; i++){
    int ki;
    cin >> ki;
    player[ki]++;
  }
  
  for(int i = 1; i < player.size(); i++){
    if(k - q + player[ki] > 0) cout << "Yes";
    else	cout << "No";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:23: error: 'ki' was not declared in this scope; did you mean 'i'?
   22 |     if(k - q + player[ki] > 0) cout << "Yes";
      |                       ^~
      |                       i
Language: C++

#include <iostream>

using namespace std;

int main(){
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  
  int n, k, q;
  cin >> n >> k >> q;
  
  vector<int> player(n + 1, 0);
  
  for(int i = 0; i < q; i++){
    int ki;
    cin >> ki;
    player[ki]++;
  }
  
  for(int i = 1; i < player.size(); i++){
    if(k - q + player[ki] > 0) cout << "Yes";
    else	cout << "No";
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:3: error: 'vector' was not declared in this scope
   12 |   vector<int> player(n + 1, 0);
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | 
a.cc:12:10: error: expected primary-expression before 'int'
   12 |   vector<int> player(n + 1, 0);
      |          ^~~
a.cc:17:5: error: 'player' was not declared in this scope
   17 |     player[ki]++;
      |     ^~~~~~
a.cc:20:22: error: 'player' was not declared in this scope
   20 |   for(int i = 1; i < player.size(); i++){
      |                      ^~~~~~
a.cc:21:23: error: 'ki' was not declared in this scope; did you mean 'i'?
   21 |     if(k - q + player[ki] > 0) cout << "Yes";
      |                       ^~
      |                       i
Language: C++

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

const int maxn = 1e5+5;

int main()
{
  int n, k,q;
  while(cin>>n>>k>>q){
	memset(a, 0, sizeof(a));
    for(int i=0;i<q;i++){
      cin>>temp;
      a[temp]++;
    }
    for(int i=0;i<n;i++){
      a[i] += k-q;
      if(a[i] > 0)
        puts("Yes");
      else
        puts("No");
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:16: error: 'a' was not declared in this scope
   10 |         memset(a, 0, sizeof(a));
      |                ^
a.cc:12:12: error: 'temp' was not declared in this scope; did you mean 'tm'?
   12 |       cin>>temp;
      |            ^~~~
      |            tm
Language: C

#include<stdio.h>

int main(){
  int n,q,i,m;
  long k,p[100000];
  scanf("%d",&n);
  scanf("%l",&k);
  scanf("%d",&q);
  for(i=0;i<n;i++){
    p[i]=0;
  }
  for(i=0;i<q;i++){
    scanf("%l",%m);
    p[m]++;
  }
  m=0;
  k-=q;
  for(i=0;i<q;i++){
    if(p[i]>k){
      m++;
    }
  }
  printf("%d",m);
  return(0);
}

Compiler output:
main.c: In function 'main':
main.c:13:16: error: expected expression before '%' token
   13 |     scanf("%l",%m);
      |                ^
Language: C

#include<stdio.h>

int main(){
  int n,q,i,m;
  long k,p[100000];
  scanf("%d",&n);
  scanf("%l",%k);
  scanf("%d",%q);
  for(i=0;i<n;i++){
    p[i]=0;
  }
  for(i=0;i<q;i++){
    scanf("%l",%m);
    p[m]++;
  }
  m=0;
  k-=q;
  for(i=0;i<q;i++){
    if(p[i]>k){
      m++;
    }
  }
  printf("%d",m);
  return(0);
}

Compiler output:
main.c: In function 'main':
main.c:7:14: error: expected expression before '%' token
    7 |   scanf("%l",%k);
      |              ^
main.c:8:14: error: expected expression before '%' token
    8 |   scanf("%d",%q);
      |              ^
main.c:13:16: error: expected expression before '%' token
   13 |     scanf("%l",%m);
      |                ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
int main(){
  int N,K,Q;
  cin>>N>>K>>Q;
  vector<int> A(Q)
  rep(i,Q){
    cin>>A.at(i);
}
  vector<int> B(N);
  rep(i,Q){
    rep(j,Q){
      if(B.at(j)!=B.at(A.at(i))){
        B.at(j)--;
      }
    }
  }
  rep(i,N){
    if(B.at(i)<=0)
      cout<<"No"<<endl;
    else
      cout<<"Yes"<<endl;
  }
}

    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:3:18: error: expected ',' or ';' before 'for'
    3 | #define rep(i,n) for(int i=0;i<(int)(n);i++)
      |                  ^~~
a.cc:8:3: note: in expansion of macro 'rep'
    8 |   rep(i,Q){
      |   ^~~
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   rep(i,Q){
      |       ^
a.cc:3:30: note: in definition of macro 'rep'
    3 | #define rep(i,n) for(int i=0;i<(int)(n);i++)
      |                              ^
Language: Java

import java.util.*;

class Main{
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int k = sc.nextInt();
        int q = sc.nextInt();
        int[] point = new int[n];

        for(int i = 0;i < q;i++){
            int ans = sc.nextInt()-1;
            point[ans]++;
        }
        
        for(int i = 0;i < n;i++){
            int jdg = k-q+poin[i];
            if(jdg > 0){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }
        }
    }
}

Compiler output:
Main.java:17: error: cannot find symbol
            int jdg = k-q+poin[i];
                          ^
  symbol:   variable poin
  location: class Main
1 error
Language: C++

#include<iostream>
#include<bits/stdc++.h>
using namespace std;
int main()
{
long long int c,n,k,q,i,a[200001],h[100002]={0};
cin>>n>>k>>q;
c=(q-k);
for(i=0;i<q;i++)
cin>>a[i];
if(k>q)
{
	for(i=0;i<n;i++)
cout<<"Yes"<<endl;
}
else
{
	for(i=0;i<q;i++)
  h[a[i]]++;
  for(i=0;i<n;i++)
  cout<<h[i]<<"  ";
  for(i=1;i<=n;i++)
  {
  	if(c<h[i])
  	cout<<"Yes"<<endl;
  	else
  	cout<<"No"<<endl;
  	}
 	
return 0;


Compiler output:
a.cc: In function 'int main()':
a.cc:30:10: error: expected '}' at end of input
   30 | return 0;
      |          ^
a.cc:17:1: note: to match this '{'
   17 | {
      | ^
a.cc:30:10: error: expected '}' at end of input
   30 | return 0;
      |          ^
a.cc:5:1: note: to match this '{'
    5 | {
      | ^
Language: C++

N,K,Q = map(int, raw_input().split())
A = [] #tokuten
B = [] #seikai
N_raund = []
for i in range(0,N):
  N_raund.append(K)

for i in range(0,Q):
  A.append(int(raw_input()))	

B = A
for i in range(0,len(N_raund)):
  for j in range(0,Q):
    N_raund[i] = N_raund[i]-1

for j in A:
  N_raund[j-1] = N_raund[j-1] + 1

for i in N_raund:
  if i > 0:
    print "YES"
  elif i <= 0:
    print "NO"

Compiler output:
a.cc:2:8: error: stray '#' in program
    2 | A = [] #tokuten
      |        ^
a.cc:3:8: error: stray '#' in program
    3 | B = [] #seikai
      |        ^
a.cc:1:1: error: 'N' does not name a type
    1 | N,K,Q = map(int, raw_input().split())
      | ^