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

int n, k, q;
cin >> n >> k >> q;
  int C[n];
  for(int i = 0; i < n; i++){
    C[i] = k - q;
  }
  
for(int i = 0; i < q; i++){
int s;
cin >> s;
  C[s-1]++;
}
  for(int i = 0; i < n; i++){
    if(C[i] <= 0){
      cout << "No" << endl;
    }else{
      cout << "Yes" << endl;
    }
    
  }
}

Compiler output:
a.cc:2:1: error: 'cin' does not name a type
    2 | cin >> n >> k >> q;
      | ^~~
a.cc:3:9: error: size of array 'C' is not an integral constant-expression
    3 |   int C[n];
      |         ^
a.cc:4:3: error: expected unqualified-id before 'for'
    4 |   for(int i = 0; i < n; i++){
      |   ^~~
a.cc:4:18: error: 'i' does not name a type
    4 |   for(int i = 0; i < n; i++){
      |                  ^
a.cc:4:25: error: 'i' does not name a type
    4 |   for(int i = 0; i < n; i++){
      |                         ^
a.cc:8:1: error: expected unqualified-id before 'for'
    8 | for(int i = 0; i < q; i++){
      | ^~~
a.cc:8:16: error: 'i' does not name a type
    8 | for(int i = 0; i < q; i++){
      |                ^
a.cc:8:23: error: 'i' does not name a type
    8 | for(int i = 0; i < q; i++){
      |                       ^
a.cc:13:3: error: expected unqualified-id before 'for'
   13 |   for(int i = 0; i < n; i++){
      |   ^~~
a.cc:13:18: error: 'i' does not name a type
   13 |   for(int i = 0; i < n; i++){
      |                  ^
a.cc:13:25: error: 'i' does not name a type
   13 |   for(int i = 0; i < n; i++){
      |                         ^
a.cc:21:1: error: expected declaration before '}' token
   21 | }
      | ^
Language: C++

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

#define ll long long

int main()
{
 	unordered_map<int,int> m;
	ll i,n,q,k,temp;
	cin>>n;
	cin>>k;
	cin>>q;
	for( i = 1 ; i <= n ; i++)
	m[i] = k-q;
	ll i;
	for( i = 0 ; i < q ; i++)
	{
		cin>>temp;
		m[temp]++;
	}
	for( i = 1 ; i <= n ; i++)
	{
		if(m[i] > 0)
		cout<<"Yes"<<endl;
		else
		cout<<"No"<<endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:12: error: redeclaration of 'long long int i'
   15 |         ll i;
      |            ^
a.cc:9:12: note: 'long long int i' previously declared here
    9 |         ll i,n,q,k,temp;
      |            ^
Language: C++

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

#define ll long long

int main()
{
 	unordered_map<int,int> m;
	ll n,q,k,temp;
	cin>>n;
	cin>>k;
	cin>>q;
	for( i = 1 ; i <= n ; i++)
	m[i] = k-q;
	ll i;
	for( i = 0 ; i < q ; i++)
	{
		cin>>temp;
		m[temp]++;
	}
	for( i = 1 ; i <= n ; i++)
	{
		if(m[i] > 0)
		cout<<"Yes"<<endl;
		else
		cout<<"No"<<endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: 'i' was not declared in this scope
   13 |         for( 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> p(no_of_players + 1, k - q);
    for(int i = 1; i <= q; i++)
    {
        int element;
        cin >> element;

        p[element]++;
    }

    for(int i = 1; i <= n; i++)
    {
        cout << (p[i] > 0 ? "Yes\n" : "No\n");
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: 'no_of_players' was not declared in this scope
   10 |     vector <int> p(no_of_players + 1, k - q);
      |                    ^~~~~~~~~~~~~
Language: Java

import java.util.HashMap;
import java.util.Map;
import java.util.Scanner;

public class B {
    public static void main(String...args) {
        Scanner in = new Scanner(System.in);
        int n = in.nextInt();
        int k = in.nextInt();
        int q = in.nextInt();
        int[] poinst = new int[n];
        for (int i = 0; i < poinst.length; i++){
            poinst[i] = k - q;
        }
        for(int i = 0; i < q ; i++) {
            int a = in.nextInt();
            poinst[a - 1] = poinst[a - 1] + 1;
        }
        StringBuilder sb = new StringBuilder();
        for(int i = 0; i < poinst.length; i++) {
            if(poinst[i] > 0) {
                sb.append("Yes" + System.lineSeparator());
            } else {
                sb.append("No" + System.lineSeparator());
            }
        }
        System.out.print(sb.toString());
    }
}


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

#include<bits/stdc++.h>
#define rep(i,n)for(int i=0;i<n;++i)
#include<string>
using namespace std;

int main() {
	int n, k, q;
	cin >> n >> k >> q;
	vecor<int>p(n, k - q);
	rep(i, q) {
		int a;
		cin >> a;
		--a;
		p[a]++;
	}
	rep(i, n) {
		if (p[i] <= 0)puts("No");
		else puts("Yes");
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:9: error: 'vecor' was not declared in this scope
    9 |         vecor<int>p(n, k - q);
      |         ^~~~~
a.cc:9:15: error: expected primary-expression before 'int'
    9 |         vecor<int>p(n, k - q);
      |               ^~~
a.cc:14:17: error: 'p' was not declared in this scope
   14 |                 p[a]++;
      |                 ^
a.cc:17:21: error: 'p' was not declared in this scope
   17 |                 if (p[i] <= 0)puts("No");
      |                     ^
Language: C++

#include<bits/sdtc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define YES cout<<"YES"<<endl
#define NO cout<<"NO"<<endl
#define Yes cout<<"Yes"<<endl
#define No cout<<"No"<<endl
#define all(a) a.begin(),a.end()
#define SORT(a) sort(all(a))
#define int long long
#define FOR(i, m, n) for(int i = m;i < n;i++)
typedef vector<int> VI;
typedef vector<VI> VVI;
const int MOD=1000000007;
const long long INF = 1LL << 60;
//----------------------------------------------
signed main(){
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
    
    int n ,k ,q; cin >> n >> k >> q;
    VI ten(n,k-q);
    rep(i,q){
        int x; cin >> x;
        ten[x-1]++;
    }
    rep(i,n){
        if(ten[i] > 0) Yes;
        else No;
    }
    
    return 0;
}

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

#include<iostream>
using namespace std ;

int main()
{
  int N,Q,i ;  //N人,Q回の正解
  long int K ;  //K点の保有ポイント
  int A[Q] ;  //i番目に正解した人A[i]
  cin>>N>>K>>Q ;
  for(i=0;i<Q;i++) cin>>A[Q] ;
  
  for(i=0;i<N;i++){
    long int k=K ;
    for(int j=0;j<Q;j++) if(i!=A[j]) k-- ;
    if(k<=0) cout<<"No"<<<endl ;
    else cout<<"Yes"<<endl ;
  }
  
  return 0 ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:26: error: expected primary-expression before '<' token
   15 |     if(k<=0) cout<<"No"<<<endl ;
      |                          ^
Language: C++

#include<iostream>
using namespace std ;

int main()
{
  int N,K,Q,i ;  //N人、Kポイント、Q回の正解
  int A[Q] ;  //i番目に正解した人A[i]
  cin>>N>>K>>Q ;
  for(i=0;i<Q;i++) cin>>A[Q] ;
  
  for(i=0;i<N;i++){
    int k=K ;
    for(int j=0;j<Q;j++) if(i!=A[j]) k- ;
    
    if(k=0) cout<<"No"<<endl ;
    else cout<<"Yes"<<endl ;
  }
  
  return 0 ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:41: error: expected primary-expression before ';' token
   13 |     for(int j=0;j<Q;j++) if(i!=A[j]) k- ;
      |                                         ^
Language: C++

#include<iostream>
using namespace std ;

int main()
{
  int N,K,Q,i ;  //N人、Kポイント、Q回の正解
  int A[Q] ;  //i番目に正解した人A[i]
  cin>>N>>K>>Q ;
  for(i=0;i<Q;i++) cin>>A[Q] ;
  
  for(i=0;i<N;i++){
    int k=K ;
    for(j=0;j<Q;j++) if(i!=A[j]) k- ;
    
    if(k=0) cout<<"No"<<endl ;
    else cout<<"Yes"<<endl ;
  }
  
  return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'j' was not declared in this scope
   13 |     for(j=0;j<Q;j++) if(i!=A[j]) k- ;
      |         ^
a.cc:13:37: error: expected primary-expression before ';' token
   13 |     for(j=0;j<Q;j++) if(i!=A[j]) k- ;
      |                                     ^
Language: C++

#include <iostream>      // cout, endl, cin
#include <string>        // string, to_string, stoi
#include <vector>        // vector
#include <algorithm>     // min, max, swap, sort, reverse, lower_bound, upper_bound
#include <utility>       // pair, make_pair
#include <tuple>         // tuple, make_tuple
#include <cstdint>       // int64_t, int*_t
#include <cstdio>        // printf
#include <map>           // map
#include <queue>         // queue, priority_queue
#include <set>           // set
#include <stack>         // stack
#include <deque>         // deque
#include <unordered_map> // unordered_map
#include <unordered_set> // unordered_set
#include <bitset>        // bitset
#include <cmath>		
#include <stdio.h>
typedef long long ll;
using namespace std;
#define rep(i, n) for (int (i) = 0; (i) < int(n); i++)
#define mod 1000000007
#define fst first
#define pb push_back

int main()
{
	int N, K, Q;
	cin >> N >> K >> Q;
	vector<int> p(N);
	for (int i = 0; i < Q; i++) {
		int A;
		cin >> A;
		p[A - 1] += 1;
	}
	for (int i = 0; i < N; i++) {
		if (K - (Q - p[i]) <= 0)) cout << "No" << endl;
		else cout << "Yes" << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:37:41: error: expected primary-expression before ')' token
   37 |                 if (K - (Q - p[i]) <= 0)) cout << "No" << endl;
      |                                         ^
Language: C++

n, k, q = map(int, input().split())
 
C = [0] * n
 
for a in range(q) :
    C[int(input())-1] += 1

sum_c = sum(C)

for i in range(n) :
    minus = sum_c - C[i]
    if minus < k :
        print('Yes')
    else :
        print('No')

Compiler output:
a.cc:13:15: warning: multi-character character constant [-Wmultichar]
   13 |         print('Yes')
      |               ^~~~~
a.cc:15:15: warning: multi-character character constant [-Wmultichar]
   15 |         print('No')
      |               ^~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n, k, q = map(int, input().split())
      | ^
Language: C++

/******************************\
*  Everyone has a different way of thinking, so God Created us
   Hope You Respect My Way..,Thank You ):  *
*                            *
*   Created by : Mo_Murad   *
\******************************/
#include<bits\stdc++.h>
using namespace std;
#include<unordered_map>
#define pi 3.1415926536
#define forn(i,a,b)for(int i=a;i<b;i++)
#define LL long long
#define ULL unsigned long long
#define MP make_pair
#define SZ(c) int(c.size())
#define ff first
#define ss second
#define INF INT32_MAX
#define _INF INT32_MIN
#define PQ priority_queue
#define MM multimap
#define PB push_back
#define vii vector<int>
#define ipair pair<int,int>
#define lpair pair<LL,LL>
#define MAXN 100004
#define El3zba ios::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define modd 1000000007
#define sfll1(v) scanf("%I64d",&v);
#define sfll2(v1,v2) scanf("%I64d %I64d",&v1,&v2)
#define sfll3(v1,v2,v3) scanf("%I64d %I64d %I64d",&v1,&v2,&v3)
#define endl '\n'
//std::transform(s1.begin(), s1.end(), s1.begin(),::tolower);
char alphz[27] = { 'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z' };
LL MMIN(LL a, LL b)
{
	if (a <= b)
		return a;
	else
		return b;
}
LL MMAX(LL a, LL b) {
	if (a >= b)
		return a;
	else
		return b;
}
float Euclidean(LL x1, LL x2, LL y1, LL y2) {
	return sqrt(pow(x1 - x2, 2) + pow(y1 - y2, 2));
}
LL gcd(LL a,LL b) {
	LL c;
	while (a != 0) {
		c = a;
		a = b % a;
		b = c;
	}
	return b;
}
int LCM(int a, int b) {
	return (a*b) / gcd(a, b);
}
void PrimeFactor(LL n)
{
	while (n % 2 == 0) {
		printf("%d ", 2);
		n /= 2;
	}
	for (int i = 3; i <= sqrt(n); i += 2)
	{
		if (n%i == 0) {
			printf("%d ", i);
			n /= i;
		}
	}
	if (n > 2)printf("%d ", n);
}
bool is_square(LL x) {
	LL l = 0, r = x;
	while (l <= r) {
		LL mid = l + (r - l) / 2;
		if (mid*mid == x)return true;
		if (mid*mid > x)r = mid - 1;
		else l = mid + 1;
	}
	return false;
}
bool is_Prime(int x) {
	if (x == 2)return 1;
	else if (x % 2 == 0 || x < 2)return 0;
	for (int i = 3; i*i <= x; i += 2)
		if (x%i == 0)return 0;
	return 1;
}
void dijjkstra(int src, int n) {
	list<ipair>adj[1000005];
	vector<bool>visited(1000005, false);
	vector<int>dis(1000005, 1e9);
	PQ<ipair, vector<ipair>, greater<ipair>>pq;
	pq.push(MP(0, 1));
	dis[src] = 0;
	while (!pq.empty())
	{
		int u = pq.top().ss;
		visited[u] = true;
		pq.pop();
		list<ipair>::iterator i;
		for (i = adj[u].begin(); i != adj[u].end(); i++)
		{
			int v = i->ff;
			int we = i->ss;
			if (!visited[v] && dis[v] > dis[u] + we)
			{
				dis[v] = dis[u] + we;
				pq.push(MP(dis[v], v));
			}
		}
	}
}
int main()
{
	El3zba;
	/***  بسم الله الرحمن الرحيم   ***/
	int n, k, q;
	cin >> n >> k >> q;
	vector<int>a(n, k);
	for (int i = 0; i <q; i++)
	{
		int x;
		cin >> x;
		x--;
		a[x]++;
	}
	for (int i = 0; i < n; i++)
	{
		if (a[i] <= q)
			cout << "No\n";
		else cout << "Yes\n";
	}
	return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
int main()
{
    ios::sync_with_stdio(false);
	cin.tie(0);
 
    long long int n,k,q;
    
    cin>>n>>k>>q;
    
   vector<int> cnt(n,0);
     int nq=q;
     while(nq--)
     {
         int x;
         cin>>x;
         x--;
         
         cnt[x]++;
     }
        
     for(i=0;i<n;i++)
     {
        if((k-(q-cnt[i]))>0)
         cout<<"Yes"<<endl;
         else
         cout<<"No"<<endl;
     }
    
}

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

#include <bits/stdc++.h>
using namespace std;
int main()
{
    ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
 
    long long int n,k,q,i,j=0;
    
    cin>>n>>k>>q;
    
   vector<int> cnt(n,0);
     int nq=n;
     while(nq--)
     {
         int x;
         cin>>x;
         x--;
         
         cnt[x]++;
     }
        
     for(i=0;i<n;i++)
     {
        if((k-(q-cnt[i]))>0)
         cout<<"Yes"<<endl;
         else
         cout<<"No"<<endl;
     }
    
}
#include <bits/stdc++.h>
using namespace std;
int main()
{
    ios::sync_with_stdio(false);
	cin.tie(0);
	cout.tie(0);
 
    long long int n,k,q,i,j=0;
    

Compiler output:
a.cc:35:5: error: redefinition of 'int main()'
   35 | int main()
      |     ^~~~
a.cc:3:5: note: 'int main()' previously defined here
    3 | int main()
      |     ^~~~
a.cc: In function 'int main()':
a.cc:41:31: error: expected '}' at end of input
   41 |     long long int n,k,q,i,j=0;
      |                               ^
a.cc:36:1: note: to match this '{'
   36 | {
      | ^
Language: C

#include<stdio.h>

int main(void)
{
        int i;
        int n, k, q;
        int point;

        scanf("%d%d%d", &n, &k, &q);

        int join[n];

        // 配列全員分に-kポイントを与える。
        for(i = 0; i < n; i++){
                join[i] = 0;
        }

        for(i = 0; i < q; i++){
                scanf("%d", &point);
                join[point - 1]++;

        }

        for(i = 0; i < n; i++){
                if(k + join[i] <= q - join[i]){
                        printf("No\n");
                }else{
                        printf("Yes\n");
                }

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:29: error: expected ',' or ';' before '=' token
    6 |         vector<int> score(n)=k-q;
      |                             ^
Language: C++

#include <functional>
#include <algorithm>
#include <iostream>
#include <iomanip>
#include <cstring>
#include <string>
#include <vector>
#include <random>
#include <bitset>
#include <queue>
#include <cmath>
#include <stack>
#include <set>
#include <map>
typedef long long ll;
using namespace std;
const ll MOD = 1000000007LL;

int main() {
    cin.sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);

    int n, k, q, a;
    cin >> n >> k >> q;
    
    vector <int> count(n, k - q);
    while (q--) {
        cin >> a;
        count[--a]++;
    }

    while (n--) cout << (counr[i] ? "Yes" : "No") << "\n";
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:26: error: 'counr' was not declared in this scope; did you mean 'count'?
   33 |     while (n--) cout << (counr[i] ? "Yes" : "No") << "\n";
      |                          ^~~~~
      |                          count
a.cc:33:32: error: 'i' was not declared in this scope
   33 |     while (n--) cout << (counr[i] ? "Yes" : "No") << "\n";
      |                                ^
Language: C++

using System;
class Program
{
  static void Main(string[] args)
  {
    // 入力値を取得
    string[] input = Console.ReadLine().Split(' ');
    int n = int.Parse(input[0]);
    int k = int.Parse(input[1]);
    int q = int.Parse(input[2]);
    
    // ラウンド中のポイント設定
    int[] points = new int[n];
    for (int i = 0; i < q; i++) {
      int winner = int.Parse(Console.ReadLine()) - 1;
      for (int j = 0; j < n; j++) {
        if (winner != j) {
          points[j]--;
        }
      }
    }
    
    // 出力
    for (int m = 0; m < n; m++) {
      if (points[m]+k <= 0) {
        Console.WriteLine("No");
      } else {
        Console.WriteLine("Yes");
      }
    }
  }
}


Compiler output:
a.cc:1:7: error: expected nested-name-specifier before 'System'
    1 | using System;
      |       ^~~~~~
a.cc:4:20: error: 'string' has not been declared
    4 |   static void Main(string[] args)
      |                    ^~~~~~
a.cc:4:29: error: expected ',' or '...' before 'args'
    4 |   static void Main(string[] args)
      |                             ^~~~
a.cc:32:2: error: expected ';' after class definition
   32 | }
      |  ^
      |  ;
a.cc: In static member function 'static void Program::Main(int*)':
a.cc:7:5: error: 'string' was not declared in this scope
    7 |     string[] input = Console.ReadLine().Split(' ');
      |     ^~~~~~
a.cc:7:12: error: expected primary-expression before ']' token
    7 |     string[] input = Console.ReadLine().Split(' ');
      |            ^
a.cc:8:13: error: expected primary-expression before 'int'
    8 |     int n = int.Parse(input[0]);
      |             ^~~
a.cc:9:13: error: expected primary-expression before 'int'
    9 |     int k = int.Parse(input[1]);
      |             ^~~
a.cc:10:13: error: expected primary-expression before 'int'
   10 |     int q = int.Parse(input[2]);
      |             ^~~
a.cc:13:8: error: structured binding declaration cannot have type 'int'
   13 |     int[] points = new int[n];
      |        ^~
a.cc:13:8: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:13:8: error: empty structured binding declaration
a.cc:13:11: error: expected initializer before 'points'
   13 |     int[] points = new int[n];
      |           ^~~~~~
a.cc:15:20: error: expected primary-expression before 'int'
   15 |       int winner = int.Parse(Console.ReadLine()) - 1;
      |                    ^~~
a.cc:18:11: error: 'points' was not declared in this scope
   18 |           points[j]--;
      |           ^~~~~~
a.cc:25:11: error: 'points' was not declared in this scope
   25 |       if (points[m]+k <= 0) {
      |           ^~~~~~
a.cc:26:9: error: 'Console' was not declared in this scope
   26 |         Console.WriteLine("No");
      |         ^~~~~~~
a.cc:28:9: error: 'Console' was not declared in this scope
   28 |         Console.WriteLine("Yes");
      |         ^~~~~~~
Language: C++

#include <iostream>
#include <vector>

int main() {
    uint64_t K;
    uint32_t N, Q;
    std::cin >> N >> K >> Q;
    std::vector<uint64_t> point(N, K);
    std::vector<char> A(Q, 0x00);
    
    for(uint32_t i = 0; i < Q; i++){
        std::cin >> A[i];
    }
    //全体から1引いて正解者A_iさんには1点あげる 最後0点でない人は勝ち抜け
    for (uint32_t i = 0; i < Q; i++){
        for(uint_32t k = 0; k < N; k++){
            point[k]--;
        }
        point[i]++;
    }
    for(uintt32_t k = 0; k < N; k++){
        if(point[k] > 0){
            std::cout << "Yes" << std::endl;;
        }else if(point[k] <= 0){
            std::cout << "No" << std::endl;
        }
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'uint64_t' was not declared in this scope
    5 |     uint64_t K;
      |     ^~~~~~~~
a.cc:3:1: note: 'uint64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
    2 | #include <vector>
  +++ |+#include <cstdint>
    3 | 
a.cc:6:5: error: 'uint32_t' was not declared in this scope
    6 |     uint32_t N, Q;
      |     ^~~~~~~~
a.cc:6:5: note: 'uint32_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
a.cc:7:17: error: 'N' was not declared in this scope
    7 |     std::cin >> N >> K >> Q;
      |                 ^
a.cc:7:22: error: 'K' was not declared in this scope
    7 |     std::cin >> N >> K >> Q;
      |                      ^
a.cc:7:27: error: 'Q' was not declared in this scope
    7 |     std::cin >> N >> K >> Q;
      |                           ^
a.cc:8:25: error: template argument 2 is invalid
    8 |     std::vector<uint64_t> point(N, K);
      |                         ^
a.cc:8:37: error: expression list treated as compound expression in initializer [-fpermissive]
    8 |     std::vector<uint64_t> point(N, K);
      |                                     ^
a.cc:11:17: error: expected ';' before 'i'
   11 |     for(uint32_t i = 0; i < Q; i++){
      |                 ^~
      |                 ;
a.cc:11:25: error: 'i' was not declared in this scope
   11 |     for(uint32_t i = 0; i < Q; i++){
      |                         ^
a.cc:15:18: error: expected ';' before 'i'
   15 |     for (uint32_t i = 0; i < Q; i++){
      |                  ^~
      |                  ;
a.cc:15:26: error: 'i' was not declared in this scope
   15 |     for (uint32_t i = 0; i < Q; i++){
      |                          ^
a.cc:16:13: error: 'uint_32t' was not declared in this scope; did you mean 'wint_t'?
   16 |         for(uint_32t k = 0; k < N; k++){
      |             ^~~~~~~~
      |             wint_t
a.cc:16:29: error: 'k' was not declared in this scope
   16 |         for(uint_32t k = 0; k < N; k++){
      |                             ^
a.cc:21:9: error: 'uintt32_t' was not declared in this scope; did you mean 'u_int32_t'?
   21 |     for(uintt32_t k = 0; k < N; k++){
      |         ^~~~~~~~~
      |         u_int32_t
a.cc:21:26: error: 'k' was not declared in this scope
   21 |     for(uintt32_t k = 0; k < N; k++){
      |                          ^
Language: Java

import java.util.*;

class Main {
    public static void main(String[] args) {
        
        Scanner sc = new Scanner(System.in);
        
        //もろもろを定義する
        int NumAllParticipants = sc.nextInt();
        int StartPoint = sc.nextInt();
        int NumCollectAnswer = sc.nextInt();
        
        Integer collectAnswerPerson[] = new Integer[NumAllParticipants];
        for (int i = 0; i < NumAllParticipants - 1; i++) {
            collectAnswerPerson[i] = sc.nextInt();
        }
        
        
        Map<String, Integer> roundResultMap = new HashMap;

        for(Integer i : collectAnswerPerson) {
        roundResultMap.merge(i, 1, Integer::count++);
        
        //判定する。正解者となった回数<初期ポイントなら勝ち抜け
        //roundResultList.steam().collect(Collections.groupingBy(x -> x, Collectors.counting()));
        
        //if()
        
        
        //勝ち抜けた参加者の行にYesを、敗退した参加者の行にNoをラウンド結果列に格納する
        
        //ラウンド結果列を出力する
        System.out.println(roundResultMap);
        
        //間に合わなかったため途中で提出する
    }
}

Compiler output:
Main.java:19: error: '(' or '[' expected
        Map<String, Integer> roundResultMap = new HashMap;
                                                         ^
Main.java:37: error: reached end of file while parsing
}
 ^
2 errors
Language: C++

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

int main() {
int N;	
int K;
int Q;
int ansp;
cin>>N>>K>>Q;
vector<int> vec(N,K);
for(int i=0; i<Q; i++){
	cin>>ansp;
	ansp=ansp-1;
	vec[ansp]+=1;
}
vector<int> v(N,K);
v=vec.sort(vec.begin(), vec.end());
int a=v.end();
for(int i=0; i<vec.size(); i++){
	if(vec[i]-a>=0) cout<<"Yes"<<endl;
	else         cout<<"No"<<endl;
}

}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:7: error: 'class std::vector<int>' has no member named 'sort'
   18 | v=vec.sort(vec.begin(), vec.end());
      |       ^~~~
a.cc:19:12: error: cannot convert 'std::vector<int>::iterator' to 'int' in initialization
   19 | int a=v.end();
      |       ~~~~~^~
      |            |
      |            std::vector<int>::iterator
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:6: error: no match for call to '(std::vector<int>) (int&)'
    8 |     N(i)=k;
      |     ~^~~
a.cc:11:49: error: no match for call to '(std::vector<int>) (int&)'
   11 |     for(int i2=0;i2<N.size();i2++) if(i2 != a) N(i2)--;
      |                                                ~^~~~
a.cc:14:9: error: no match for call to '(std::vector<int>) (int&)'
   14 |     if(N(i)>0) cout << "Yes" << endl;
      |        ~^~~
Language: C++

#include<bits/stdc++.h>
int main(){
    long long long int n,k,q,i,a,j;
    scanf("%lld%lld%lld", &n,&k,&q);
    int arr[n+1];
    for(i=1;i<=n;i++)
        arr[i]=k;
    for(i=1;i<=q;i++){
        scanf("%lld",&a);
        for(j=1;i<=q;j++){
            if(j!=a) arr[j]--;
        }
    }
    for(i=1;i<=q;i++){
        if(arr[i]>0)
           printf("Yes\n");
        else
           printf("No\n");
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:15: error: 'long long long' is too long for GCC
    3 |     long long long int n,k,q,i,a,j;
      |               ^~~~
Language: C++

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

int main(){
  int N,Q ;
  double K ;
  int A[100001],kosu[100001],tensu[100001] ;

  int i,j,num ;

  cin >> N >> K >> Q ;

  for(i=0;i<100001;i++){
    kosu[i] = 0;
  }

  for(i=0;i<Q;i++){
    cin >> A[i] ;
    A[i] = A[i]-1 ;
  }

  sort(A,A+Q);

  i=0 ;
  num = 0 ;
  while(1){
    if(A[i]==num){
      kosu[num]++;
      i++ ;
    }
    else num++ ;
    if(i >= Q) break ;
  }

  for(i=0;i<N;i++){
    tensu[i] = K-(Q-kosu[i])
    if(tensu[i]<=0) cout << "No" << endl;
    else cout << "Yes" << endl;
  }


}


Compiler output:
a.cc: In function 'int main()':
a.cc:38:29: error: expected ';' before 'if'
   38 |     tensu[i] = K-(Q-kosu[i])
      |                             ^
      |                             ;
   39 |     if(tensu[i]<=0) cout << "No" << endl;
      |     ~~                       
a.cc:40:5: error: 'else' without a previous 'if'
   40 |     else cout << "Yes" << endl;
      |     ^~~~
Language: Java

import java.util.Scanner;

public class Wain{
	public static void main(String args[]){
		Scanner scan = new Scanner(System.in);
		int N = scan.nextInt();
		int K = scan.nextInt();
		int Q = scan.nextInt();
		int[] A = new int[N];
		for(int i=0;i<Q;i++){
			A[scan.nextInt()-1]++;
		}
		for(int i=0;i<N;i++){
			if(A[i]+K-Q>0){
				System.out.println("Yes");
			}else{
				System.out.println("No");
			}
		}
	}
}

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

#include<bits/stdc++.h>
using namespace std;
int a,b,c,d;
int main(){
  cin>>a>>b>>c;
  vector<int> e(a);
  for(int j=0;j<a;j++)e.at(j)=b-c;
  for(int i=0;i<c;i++){
    cin>>d;
    e.at(d-1)++;
  }
  for(int k=0;k<a;k++){
    int f=e.at(i);
    if(f>0)cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: 'i' was not declared in this scope
   13 |     int f=e.at(i);
      |                ^
Language: C++

#include "pch.h"
/////ここから下を提出///////////////////////////////////////////////////////////////
#include <iostream>
#include <vector>
#include <algorithm>
#include <fstream>
#include <string>
#include <math.h>
#include <cstdlib>
#include <istream>
#include <sstream>
#include <cctype>
using namespace std;
int main()
{
	long N, Q, K;
	vector<long> QQ;
	vector<long> NN(100000, 0);
	cin >> N >> K >> Q;

	for (long i = 0; i < Q; i++)
	{
		long t;
		cin >> t;
		QQ.push_back(t);
	}


	for (long i = 1; i < N+1; i++)
	{
		long KK = K;
		size_t n_count = count(QQ.begin(), QQ.end(), i);
		if (K - Q + n_count > 0)
		{
			for (long j = 1; j < Q + 1; j++)
			{
				if (QQ[j - 1] != i)
				{
					KK = KK - 1;
					if (KK == 0)
					{
						NN[i - 1] = 1;
						break;
					}
				}
			}
		}
		else { NN[i - 1] = 1; }		
	}
	for (long i = 0; i < N; i++)
	{
		if (NN[i] == 1)
		{
			cout << "No" << endl;
		}
		else
		{
			cout << "Yes" << endl;
		}
	}
}

Compiler output:
a.cc:1:10: fatal error: pch.h: No such file or directory
    1 | #include "pch.h"
      |          ^~~~~~~
compilation terminated.
Language: C++

#include <iostream>
#include <>
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);
    }

    for (int i=0; i<Q; i++){
        if (A.at(i) < i+1){
            cout << "Yes" << endl;
        }
        else{
            cout << "No" << endl;
        }
    }

    return 0;
}

Compiler output:
a.cc:2:10: error: empty filename in #include
    2 | #include <>
      |          ^~
a.cc: In function 'int main()':
a.cc:9:5: error: 'vector' was not declared in this scope
    9 |     vector<int> A(Q);
      |     ^~~~~~
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 | #include <>
a.cc:9:12: error: expected primary-expression before 'int'
    9 |     vector<int> A(Q);
      |            ^~~
a.cc:11:16: error: 'A' was not declared in this scope
   11 |         cin >> A.at(i);
      |                ^
a.cc:15:13: error: 'A' was not declared in this scope
   15 |         if (A.at(i) < i+1){
      |             ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:34: error: expected ';' before 'for'
    7 |   for(int j=0;j<a;j++)e.at(j)=b-c
      |                                  ^
      |                                  ;
    8 |   for(int i=0;i<c;i++){
      |   ~~~                             
a.cc:8:15: error: 'i' was not declared in this scope
    8 |   for(int i=0;i<c;i++){
      |               ^
Language: C++

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

int main(){
  long long int n, k, q, i;
  cin>>n>>k>>q;
  long long int arr[n+1] = {0};

  for(i=0; i<q; i++){
    cin>>p;
    arr[p] += 1;
  }
  
  for(i=1; i<=n+1; i++){
    if(k-q+arr[i]>0)
      cout<<"Yes\n";
    else
      cout<<"No\n"
  }

  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: 'p' was not declared in this scope
   10 |     cin>>p;
      |          ^
a.cc:18:19: error: expected ';' before '}' token
   18 |       cout<<"No\n"
      |                   ^
      |                   ;
   19 |   }
      |   ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int a,b,c,d;
int main(){
  cin>>a>>b>>c;
  vector<int> e(a);
  for(int j=0;j<a;j++)e[j]=b-c
  for(int i=0;i<c;i++){
    cin>>d;
    e[d-1]++;
  }
  for(int j=0;j<a;j++){
    if(e[i]>0)cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:31: error: expected ';' before 'for'
    7 |   for(int j=0;j<a;j++)e[j]=b-c
      |                               ^
      |                               ;
    8 |   for(int i=0;i<c;i++){
      |   ~~~                          
a.cc:8:15: error: 'i' was not declared in this scope
    8 |   for(int i=0;i<c;i++){
      |               ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,k,q,a[100050];
  cin >> n >> k >> q;
  for(int i=1;i<=n;i++){
    a[i]=k;
  }
  for(int i=0;i<q;i++){
    int a;
    cin >> a;
    for(int j=1;j<=n;j++){
      if(j!=a) a[j]--;
    }
  }
  for(int i=1;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:13:17: error: invalid types 'int[int]' for array subscript
   13 |       if(j!=a) a[j]--;
      |                 ^
Language: C++

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

main(){
  int n,k,q,i,p;
  int a[10000],point[10000];
  string s[10000];
  cin >> n >> k >> q;
  for(i=0;i<q;i++) cin >> a[i];
  
  for(i=0;i<q;i++){
    p = a[i]-1;
    point[p] += 1;
  }
  
  for(i=0;i<n;i++){
    if(k-q+point[i] <= 0){
      s[i] = "No";
    }else{
      s[i] = "Yes";
    }
  }
  
  for(i=0;i<n;i++) cout << s[i]　<<endl;
  
  
}

Compiler output:
a.cc:25:32: error: extended character 　 is not valid in an identifier
   25 |   for(i=0;i<n;i++) cout << s[i]　<<endl;
      |                                ^
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:25:32: error: expected ';' before '\U00003000'
   25 |   for(i=0;i<n;i++) cout << s[i]　<<endl;
      |                                ^~
      |                                ;
Language: C++

int main() {
  int N;
  cin >> N;
  vector<int> PT(N+1);
  int K;
  cin >> K;
  int Q;
  cin >> Q;
  for (int i=1; i<N+1; i++){
    PT.at(i) = K-Q;
  }
  vector<int> A(Q+1);
  for (int i=1; i<Q+1; i++){
    cin >> A.at(i);
  }
  for (int i=1; i<Q+1; i++){
    PT.at(A.at(i)) += 1;
  }
  for (int i=1; i<N; i++){
    if (PT.at(i)<1) {
      cout << "No" << endl;
    }
    else {
      cout << "Yes" << endl;
    }
  }
  if (PT.at(N)<1) {
      cout << "No";
    }
  else {
      cout << "Yes";
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:3: error: 'cin' was not declared in this scope
    3 |   cin >> N;
      |   ^~~
a.cc:4:3: error: 'vector' was not declared in this scope
    4 |   vector<int> PT(N+1);
      |   ^~~~~~
a.cc:4:10: error: expected primary-expression before 'int'
    4 |   vector<int> PT(N+1);
      |          ^~~
a.cc:10:5: error: 'PT' was not declared in this scope
   10 |     PT.at(i) = K-Q;
      |     ^~
a.cc:12:10: error: expected primary-expression before 'int'
   12 |   vector<int> A(Q+1);
      |          ^~~
a.cc:14:12: error: 'A' was not declared in this scope
   14 |     cin >> A.at(i);
      |            ^
a.cc:17:5: error: 'PT' was not declared in this scope
   17 |     PT.at(A.at(i)) += 1;
      |     ^~
a.cc:17:11: error: 'A' was not declared in this scope
   17 |     PT.at(A.at(i)) += 1;
      |           ^
a.cc:20:9: error: 'PT' was not declared in this scope
   20 |     if (PT.at(i)<1) {
      |         ^~
a.cc:21:7: error: 'cout' was not declared in this scope
   21 |       cout << "No" << endl;
      |       ^~~~
a.cc:21:23: error: 'endl' was not declared in this scope
   21 |       cout << "No" << endl;
      |                       ^~~~
a.cc:24:7: error: 'cout' was not declared in this scope
   24 |       cout << "Yes" << endl;
      |       ^~~~
a.cc:24:24: error: 'endl' was not declared in this scope
   24 |       cout << "Yes" << endl;
      |                        ^~~~
a.cc:27:7: error: 'PT' was not declared in this scope
   27 |   if (PT.at(N)<1) {
      |       ^~
a.cc:28:7: error: 'cout' was not declared in this scope
   28 |       cout << "No";
      |       ^~~~
a.cc:31:7: error: 'cout' was not declared in this scope
   31 |       cout << "Yes";
      |       ^~~~
Language: C++

#include<iostream>
using namespace std;
int main () {
  int can[100002];
  int N, K, Q;
  cin >> N >> K >> Q;
  for (int i = 1; i <= N; i ++) {
    can[i] = 0;
  }
  for (int i = 0; i < Q; i ++) {
    int a;
    cin >> a;
    can[a] ++;
  }
  for (int i = 1; i <= N; i ++) {
    if (can[a] > Q - K) cout << "Yes" << endl;
    else cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:13: error: 'a' was not declared in this scope
   16 |     if (can[a] > Q - K) cout << "Yes" << endl;
      |             ^
Language: C++

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

int main(){
  int n = 0;
  int k = 0;
  int q = 0;
  int c = 0;
  int i;
  int l;

  cin >> n >> k >> q;
  int a[q] = {};
  int b[n] = {};
  for (i = 0; i < q; i++){
    cin >> a[i];
    for (l = 1; l <= n; l++){
      if (a[i] == l) {
        b[l - 1] = b[l - 1] + 1;
        break;
      }
    }
  }

  c = k - q;
  if (c <= 0){
    c = c;
  }else{
    c = 1;
  }

  for (i = 0; i < n; i++){
    if ()
    if (b[i] + c > 0){
      cout << "Yes" << "\n";
    }else{
      cout << "No" <<"\n";
    }
  }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:35:9: error: expected primary-expression before ')' token
   35 |     if ()
      |         ^
Language: C

#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <math.h>
#define MAX(X, Y) (((X) > (Y))? (X) : (Y))
#define MIN(X, Y) (((X) < (Y))? (X) : (Y))
int compare_int(const void *a, const void *b){
  return *(long int*)b - *(long int*)a; // 大きい順
}
// 公約数
long int gcd(long int a, long int b){
  if(b == 0){
    return a;
  }else{
    return gcd(b, a % b);
  }
}
// 最小公倍数 = a * b / 最大公約数
// 公倍数
long int lcm(long int a, long int b){
  return a * b / gcd(a, b);
}


// min
int main(void){
  long int n;
  long long int k;
  long int q;
  long int a[100001];
  long long int point[100001] = {0};

  scanf("%ld%lld%ld", &n, &k, &q);


  /*
  // 初期化
  for(long int i = 0; i < n; i++){
    point[i] = k;
  }
  */

  //  一人ずつはしない。問題ずつそれぞれのポイントを考える
  for(long int i = 0; i < q; i++){
    scanf("%ld", &a[i]);
    for(long int j = 0; j < n; j++){
      if(a[i] != (j + 1) point[j] < k){
	point[j]++;
      }
      //      printf("i = %ld  point = %lld\n", i, point[j]);
    }
  }

  // 求め方を変えた
  for(long int i = 0; i < n; i++){
      if(k - point[i] > 0){
      printf("Yes\n");
    }else{
      printf("No\n");
    }
  }

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:47:25: error: expected ')' before 'point'
   47 |       if(a[i] != (j + 1) point[j] < k){
      |         ~               ^~~~~~
      |                         )
Language: C

#include <stdio.h>

int main(void){

  int n,k,q,i,j;
  scanf("%d  %d %d",&n,&k,&q );
  int s[n];
  int c;

  for(i=0;i<n;i++){
    s[i]=k;
  }
  for(i=0;i<q;i++){
    scanf("%d", &c);
    s[c-1]++;
    for(j=0;j<n;j++){
      s[j]--;
    }
  }a

  for(i=0;i<n;i++){
    if(s[i]>0){
      printf("Yes\n");
    }else{
      printf("No\n" );
    }
  }

  return 0;
}


Compiler output:
main.c: In function 'main':
main.c:19:4: error: 'a' undeclared (first use in this function)
   19 |   }a
      |    ^
main.c:19:4: note: each undeclared identifier is reported only once for each function it appears in
main.c:19:5: error: expected ';' before 'for'
   19 |   }a
      |     ^
      |     ;
   20 | 
   21 |   for(i=0;i<n;i++){
      |   ~~~
Language: C++

#include<iosstream>
using namespace std;
int a[100005];
int main()
{	int N,K,Q,m;
	cin>>N>>K>>Q;
	for(int i=0;i<Q;i++)
	{
		cin>>m;
		a[m]++;
	}
	for(int i=1;i<=N;i++)
	{
		if(Q-a[i]>=K)
		{
			cout<<"No"<<endl;
		}
			
		else
		{
			cout<<"Yes"<<endl;
		}
			
	}
}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: 't' was not declared in this scope
   12 |     if (q - a[t] >= k) cout << "No" << endl;
      |               ^
Language: C++

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


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

  cin>>n;
  cin>>k;
  cin>>q;
  
vector<int> vec(n);  
vector<int> ans(q);
  
for(int i=0; i<vec.size(); i++){
    vec.at(i)=k;

}
  
  
 for(int i=0; i<ans.size(); i++){
    cin>>ans.at(i);

} 
  
   
 for(int i=0; i<ans.size(); i++){
   t= ans.at(i);


 for(int i=0; i<vec.size(); i++){
    
   if(i==t)continue;
   else{
     int o=vac.at(i);
     o--;
     
     vac.at(i)=o;}
   

}
 
 
 
 } 
for(int i=0; i<vec.size(); i++){
   if( vec.at(i)>0)cout<<"Yse"<<endl;
	else{cout<<"No"<<endl;}
}  
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:12: error: 'vac' was not declared in this scope; did you mean 'vec'?
   36 |      int o=vac.at(i);
      |            ^~~
      |            vec
Language: C++

#include <iostream>
using namespace std;
 
int main() {
  int N, K, Q;
  cin >> N >> K >> Q;
  
  int A[N];
  for(int i=0; i<N; i++) cin >> A[i];
  
  int counters[N];
  for(int i=0; i<N; i++) counters[i] = 0;
  
  for(int i=0; i<N; i++){
    counters[A[i]] += 1;
  }
  
  for(int i=0; i<N; i++){
    damage = Q - counters[i];
    if (damage >= K){
      cout << "No" << endl;
    }else{
      cout << "Yes" << endl;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:5: error: 'damage' was not declared in this scope
   19 |     damage = Q - counters[i];
      |     ^~~~~~
Language: C++

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


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

  cin>>n;
  cin>>k;
  cin>>q;
  
vector<int> vec(n);  
vector<int> ans(q);
  
for(int i=0; i<vec.size(); i++){
    vec.at(i)=k;

}
  
  
 for(int i=0; i<ans.size(); i++){
    cin>>ans.at(i);

} 
  
   
 for(int i=0; i<ans.size(); i++){
   t= ans.at(i);


 for(int i=0; i<vec.size(); i++){
    
   if(i==t)continue;
   else{vac.at(i)=vac.at(i)-1;}
   

}
 
 
 
 } 
for(int i=0; i<vec.size(); i++){
   if( vec.at(i)>0)cout<<"Yse"<<endl;
	else{cout<<"No"<<endl;}
}  
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:35:9: error: 'vac' was not declared in this scope; did you mean 'vec'?
   35 |    else{vac.at(i)=vac.at(i)-1;}
      |         ^~~
      |         vec
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:13: error: 'i' was not declared in this scope
   13 |     if(A.at(i)>0)cout<<"Yes"<<endl;
      |             ^
Language: C++


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


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

  cin>>n;
  cin>>k;
  cin>>q;
  
vector<int> vec(n);  
vector<int> ans(q);
  
for(int i=0; i<vec.size(); i++){
    vec.at(i)=k;

}
  
  
 for(int i=0; i<ans.size(); i++){
    cin>>ans.at(i);

} 
  
   
 for(int i=0; i<ans.size(); i++){
   t= ans.at(i);


 for(int i=0; i<vec.size(); i++){
    
   if(i==t)continue;
   else{vac.at(i)++;}
   

}
 
 
 
 } 
for(int i=0; i<vec.size(); i++){
   if( vec.at(i)>0)cout<<"Yse"<<endl;
	else{cout<<"No"<<endl;}
}  
  
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:36:9: error: 'vac' was not declared in this scope; did you mean 'vec'?
   36 |    else{vac.at(i)++;}
      |         ^~~
      |         vec
Language: C++

#include <iostream>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:19:5: error: 'damage' was not declared in this scope
   19 |     damage = Q - counters[i];
      |     ^~~~~~
Language: C++



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


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

  cin>>n;
  cin>>k;
  cin>>q;
  
vector<int> vec(n);  
vector<int> ans(q);
  
for(int i=0; i<vec.size(); i++){
    vec.at(i)=k;

}
  
  
 for(int i=0; i<ans.size(); i++){
    cin>>ans.at(i)

} 
  
   
 for(int i=0; i<ans.size(); i++){
   t= ans.at(i)


 for(int i=0; i<vec.size(); i++){
    
   if(i==t)continue;
   else{vac.at(i)++;}
   

}
 
 
 
 } 
for(int i=0; i<vec.size(); i++){
   if( vec.at(i)>0)cout<<"Yse"<<endl;
	else{cout<<"No"<<endl;}
}  
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:19: error: expected ';' before '}' token
   25 |     cin>>ans.at(i)
      |                   ^
      |                   ;
   26 | 
   27 | }
      | ~                  
a.cc:31:16: error: expected ';' before 'for'
   31 |    t= ans.at(i)
      |                ^
      |                ;
......
   34 |  for(int i=0; i<vec.size(); i++){
      |  ~~~            
a.cc:34:32: error: expected ';' before ')' token
   34 |  for(int i=0; i<vec.size(); i++){
      |                                ^
      |                                ;
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:10: error: 'i' was not declared in this scope
   13 |     if(A[i]>0)cout<<"Yes"<<endl;
      |          ^
Language: C++

#include<iostream>
#include<bits/stdc++.h>
#include<string>
using namespace std;
int main()
{
  int n, k, q ;
  cin >> n >> k >> q ;
  vector<int> a(q) ;
  for(int i=0;i<a.size();i++){
    cin >> a.at(i) ;
  }

  vector<int> score(n,k) ;
  
  for(int i=0;i<a.size();i++){
  
    int ss = a.at(i) ;
    for(int j=0;j<n){
     if(j==ss){
      continue ;
     }else{
      score.at(a.at(j))-1 ;     
     }
    }
  }

   for(int i=0;i<a.size();i++){
     if(score.at(i)<=0)
    cout << "No" << endl;
       else
    cout << "Yes" << endl;
   }
     
    return 0 ;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:20: error: expected ';' before ')' token
   19 |     for(int j=0;j<n){
      |                    ^
      |                    ;