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

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

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

  


Compiler output:
a.cc: In function 'int main()':
a.cc:9:14: error: expected identifier before numeric constant
    9 |     ll a[n]=[0};
      |              ^
a.cc:9:15: error: expected ']' before '}' token
    9 |     ll a[n]=[0};
      |               ^
      |               ]
a.cc: In lambda function:
a.cc:9:15: error: expected '{' before '}' token
a.cc: In function 'int main()':
a.cc:9:13: error: array must be initialized with a brace-enclosed initializer
    9 |     ll a[n]=[0};
      |             ^~
a.cc: At global scope:
a.cc:2:18: error: expected unqualified-id before 'for'
    2 | #define rep(i,n) for (int (i) = 0; (i) < (n); i++)
      |                  ^~~
a.cc:10:5: note: in expansion of macro 'rep'
   10 |     rep(i,q){
      |     ^~~
a.cc:2:40: error: expected constructor, destructor, or type conversion before '<' token
    2 | #define rep(i,n) for (int (i) = 0; (i) < (n); i++)
      |                                        ^
a.cc:10:5: note: in expansion of macro 'rep'
   10 |     rep(i,q){
      |     ^~~
a.cc:10:9: error: 'i' does not name a type
   10 |     rep(i,q){
      |         ^
a.cc:2:47: note: in definition of macro 'rep'
    2 | #define rep(i,n) for (int (i) = 0; (i) < (n); i++)
      |                                               ^
a.cc:2:18: error: expected unqualified-id before 'for'
    2 | #define rep(i,n) for (int (i) = 0; (i) < (n); i++)
      |                  ^~~
a.cc:16:5: note: in expansion of macro 'rep'
   16 |     rep(i,n){
      |     ^~~
a.cc:2:40: error: expected constructor, destructor, or type conversion before '<' token
    2 | #define rep(i,n) for (int (i) = 0; (i) < (n); i++)
      |                                        ^
a.cc:16:5: note: in expansion of macro 'rep'
   16 |     rep(i,n){
      |     ^~~
a.cc:16:9: error: 'i' does not name a type
   16 |     rep(i,n){
      |         ^
a.cc:2:47: note: in definition of macro 'rep'
    2 | #define rep(i,n) for (int (i) = 0; (i) < (n); i++)
      |                                               ^
a.cc:23:1: error: expected declaration before '}' token
   23 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++)
#define VL vector<ll>
#define VS vector<string>
#define VB vector<bool>
#define VP vector<pair<ll,ll>>
#define VVL vector<vector<ll>>
#define VVP vector<vector<pair<ll,ll>>>
#define PL pair<ll,ll>
#define ALL(v) (v).begin(), (v).end()


int main() {
    ll N,K,Q;
    cin>>N>>K>>Q;
    VL B(N,K);
    ll A(Q);
    rep(i,0,Q)cin>>A[i];
    rep(i,0,Q){
        B[(int)(A[i]-1)]--;
    }
    rep(i,0,N){
        if(B[i]>0)cout<<"Yes"<<endl;
        else cout<"No"<<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:21: error: invalid types 'll {aka long long int}[long long int]' for array subscript
   20 |     rep(i,0,Q)cin>>A[i];
      |                     ^
a.cc:22:18: error: invalid types 'll {aka long long int}[long long int]' for array subscript
   22 |         B[(int)(A[i]-1)]--;
      |                  ^
a.cc:26:23: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   26 |         else cout<"No"<<endl;
      |                   ~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++)
#define VL vector<ll>
#define VS vector<string>
#define VB vector<bool>
#define VP vector<pair<ll,ll>>
#define VVL vector<vector<ll>>
#define VVP vector<vector<pair<ll,ll>>>
#define PL pair<ll,ll>
#define ALL(v) (v).begin(), (v).end()


int main() {
    ll N,K,Q;
    cin>>N>>K>>Q;
    VL B(N,K);
    int A(Q);
    rep(i,0,Q)cin>>A[i];
    rep(i,0,Q){
        B[A[i]-1]--;
    }
    rep(i,0,N){
        if(B[i]>0)cout<<"Yes"<<endl;
        else cout<"No"<<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:21: error: invalid types 'int[long long int]' for array subscript
   20 |     rep(i,0,Q)cin>>A[i];
      |                     ^
a.cc:22:12: error: invalid types 'int[long long int]' for array subscript
   22 |         B[A[i]-1]--;
      |            ^
a.cc:26:23: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   26 |         else cout<"No"<<endl;
      |                   ~~~~^~~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i, srt, end) for (long long i = (srt); i < (long long)(end); i++)
#define VL vector<ll>
#define VS vector<string>
#define VB vector<bool>
#define VP vector<pair<ll,ll>>
#define VVL vector<vector<ll>>
#define VVP vector<vector<pair<ll,ll>>>
#define PL pair<ll,ll>
#define ALL(v) (v).begin(), (v).end()


int main() {
    ll N,K,Q;
    cin>>N>>K>>Q;
    VL B(N,K);
    VL A(Q);
    rep(i,0,Q)cin>>A[i];
    rep(i,0,Q){
        B[A[i]-1]--;
    }
    rep(i,0,N){
        if(B[i]>0)cout<<"Yes"<<endl;
        else cout<"No"<<endl;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:26:23: error: invalid operands of types 'const char [3]' and '<unresolved overloaded function type>' to binary 'operator<<'
   26 |         else cout<"No"<<endl;
      |                   ~~~~^~~~~~
Language: C++

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

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



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

import java.io.*;
import java.util.Scanner;

public class Main{
    public static void main(String[] args){
        //START

        Scanner sc=new Scanner(System.in);
        int N=n.nextInt();

        int K=k.nextInt();

        int Q=q.nextInt();

        int i=0;
        int num=0;
        int A[]=new int[Q+10];
        int P[]=new int[N+10];

        for(i=0;i<N+10;i++){
            P[num]=0;
        }

        for(i=1;i<=Q;i++){
            Scanner inA=new Scanner(System.in);
            num=inA.nextInt();
            P[num]++;
        }

        for(num=1;num<=N;num++){
            if(P[num]>=Q-K+1){
                System.out.println("Yes");
            }else{
                System.out.println("No");
            }
        }

        System.out.println(Q);


        //END
    }
}



Compiler output:
Main.java:9: error: cannot find symbol
        int N=n.nextInt();
              ^
  symbol:   variable n
  location: class Main
Main.java:11: error: cannot find symbol
        int K=k.nextInt();
              ^
  symbol:   variable k
  location: class Main
Main.java:13: error: cannot find symbol
        int Q=q.nextInt();
              ^
  symbol:   variable q
  location: class Main
3 errors
Language: C

#include<stdio.h>
int Question141C(void) {
	int n, k, *p, q, i;//n参加者人数 k手持ち点数 q問題数
	int a[100001] ; //各問題の正解者
	int m[100001] = {0};  //各参加者の点数
	scanf("%d %d %d", &n, &k, &q);
	for (i = 0; i < q; i++) {
		scanf("%d", &a[i]);
	}
	for (i = 0; i < q; i++) {
		p = &m[0];
		p = p + a[i] - 1;
		*p = *p +1;
	}
	for (i = 0; i < n; i++) {
		m[i] = m[i] + k - q;
		if (m[i] > 0) puts("Yes");
		else puts("No");
	}
	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>
#include <stdlib.h>
using namespace std;
typedef long long ll;
typedef pair<int,int> P;
typedef pair<ll,ll> llP;

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


Compiler output:
a.cc: In function 'int main()':
a.cc:21:16: error: 'a' was not declared in this scope
   21 |     if(k-q+cor[a-1]>0) cout<<"Yes"<<endl;
      |                ^
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.next()); // 参加者
    int K = Integer.parseInt(sc.next()); // ポイント
    int Q = Integer.parseInt(sc.next()); // 正解数
    int[] A = new int[Q]; // 問題
    for (int i=0; i < Q; i++) {
        A[i] = Integer.parseInt(sc.next()) -1; 
    }
    int[] B = new int[N]; // 持ち点数
    for (int i=0; i < N; i++) {
        B[i] = K;
    }

    for (int i=0; i < Q; i++) { // 問題数のLoop
        for(int j=0; j < N; j++) { // 各自の持ち点ｎLoop
            if(A[i] != j){
                B[j]--;
        }
    }
    for (int i=0; i < N; i++) {
        if(B[i]>0){
            System.out.println("Yes");
        }else{
            System.out.println("No");
        }
    }
  }
}



Compiler output:
Main.java:31: error: reached end of file while parsing
}
 ^
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define all(v) v.begin(),v.end()
#define rall(v) v.rbegin(),v.rend()
typedef long long ll;
#define _GLIBCXX_DEBUG
typedef vector<int> vec;
typedef vector<ll> lvec;
typedef vector<char>cvec;
typedef pair<ll, ll> LP;
typedef tuple<ll, ll, ll> LT;
typedef pair<int, int> P;
typedef tuple<int, int, int> T;
int main()	{
  int n,k,q;
  cin>>n>>k>>q;
  vector<int>a(q),d(n,k);
  rep(i,q) cin>>a[i];
  rep(i,n){
    d[i]--;
  }
  rep(i,q){
    d[a[i]]++;
  }
  rep(i,n){
    if(d[i]>0)
      cout<<"Yes"<<endl;
    else
      cout<<"No"<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:31:2: error: expected '}' at end of input
   31 | }
      |  ^
a.cc:15:17: note: to match this '{'
   15 | int main()      {
      |                 ^
Language: C++

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

int main() {
int N,K,Q;
  cin >> N >> K >> Q;
int A[N];
  for(int a = 0;a < N;a++)cin >> A[a];
  sort(A.begin(),A.end());
  for(int a = 0;a < N;a++)cout << A[a] << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:10: error: request for member 'begin' in 'A', which is of non-class type 'int [N]'
    9 |   sort(A.begin(),A.end());
      |          ^~~~~
a.cc:9:20: error: request for member 'end' in 'A', which is of non-class type 'int [N]'
    9 |   sort(A.begin(),A.end());
      |                    ^~~
Language: C++

#include<iostream>
#include<algorithm>
#include<cstdio>
#include<cmath>
using namespace std;
const int MAX=1e5;
int a[MAX];
int main()
{
    memset(a,0,sizeof(a));
    int n,k,q;
    cin>>n>>k>>q;
    int t=q;
    int b;
    while(q--){
        cin>>b;
        a[b-1]++;
    }
    for(int i=0;i<n;i++){
        if(a[i]>t-k){
            cout<<"Yes"<<endl;
        }
        else{
            cout<<"No"<<endl;
        }
    }
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:5: error: 'memset' was not declared in this scope
   10 |     memset(a,0,sizeof(a));
      |     ^~~~~~
a.cc:5:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    4 | #include<cmath>
  +++ |+#include <cstring>
    5 | using namespace std;
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
const int maxn = 1e7+5;
ll a[100005];
int main(){
	ll n,k,q;
	cin>>n>>k>>q;
	for(int i=1;i<=q;i++){
		int x;
		xin>>x;
		a[x]++;
	}
	for(int i=1;i<=n;i++){
		if(k-(q-a[i])<=0) cout<<"No"<<endl;
		else cout<<"Yes"<<endl;
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:17: error: 'xin' was not declared in this scope; did you mean 'sin'?
   11 |                 xin>>x;
      |                 ^~~
      |                 sin
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
 
void Main()
{
    int n;
    int k;
    int q;
    cin >> n;
    cin >> k;
    cin >> q;
    vector<int> a(n);
    vector<int> b(n);
    vector<int> c(n);
    REP(i, n)
    cin >> a[i];
  
  
    
    
      for(int i = 0; i < n; i++){
        b[i] = k;
        c[i] = 0;
      }
    
  for(int i = 0; i < q; i++){
    c[a[i]-1] += 1;
  }
  
  for(int j = 0; j < n; j++){
        b[j] = b[j] - c[j];
      }
  
  for(int i = 0; i < n; i++){
    if(b[i] <= 0){
      printf("No\n");
    }
    else
      printf("Yes\n");
  }
}
 
int main()
{
    std::cout << std::fixed << std::setprecision(15);
    Main();
}
#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;
 
void Main()
{
    int n;
    int k;
    int q;
    cin >> n;
    cin >> k;
    cin >> q;
    vector<int> a(n);
    vector<int> b(n);
    vector<int> c(n);
    REP(i, n)
    cin >> a[i];
  
  
    
    
  for(int i = 0; i < n; i++){
    b[i] = k - q;
    c[i] = 0;
  }
    
  for(int i = 0; i < q; i++){
    c[a[i]-1] += 1;
  }
  
  for(int j = 0; j < n; j++){
        b[j] = b[j] + c[j];
  }
  
  for(int i = 0; i < n; i++){
    if(b[i] <= 0){
      printf("No\n");
    }
    else
      printf("Yes\n");
  }
}
 
int main()
{
    std::cout << std::fixed << std::setprecision(15);
    Main();
}

Compiler output:
a.cc:63:6: error: redefinition of 'void Main()'
   63 | void Main()
      |      ^~~~
a.cc:10:6: note: 'void Main()' previously defined here
   10 | void Main()
      |      ^~~~
a.cc:102:5: error: redefinition of 'int main()'
  102 | int main()
      |     ^~~~
a.cc:49:5: note: 'int main()' previously defined here
   49 | int main()
      |     ^~~~
Language: C++

#include <bits/stdc++.h>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m, n) for (int i = m; i < n; i++)
#define INF 2e9
#define ALL(v) v.begin(), v.end()
using namespace std;
typedef long long ll;

void Main()
{
    int n;
    int k;
    int q;
    cin >> n;
    vector<int> a(n);
    vector<int> b(n);
    REP(i, n)
    cin >> a[i];
    
    for(int i = 0; i < q; i++){
      for(int j = 0; j < n; j++){
        b[i] = k;
      }
    }
  for(int i = 0; i < q; i++){
      for(int j = 0; j < n; j++){
        if(j != a[n]-1){
          b[i] -= 1;
        }
      }
  }
  
  for(int i = 0; i < n; i++{
    if(b[i] <= 0){
      printf("No\n");
    }
    else
      printf("Yes\n");
  }
}

int main()
{
    std::cout << std::fixed << std::setprecision(15);
    Main();
}

Compiler output:
a.cc: In function 'void Main()':
a.cc:34:28: error: expected ')' before '{' token
   34 |   for(int i = 0; i < n; i++{
      |      ~                     ^
      |                            )
Language: C++


    
#include <iostream> 
using namespace std;
int main () {
  long int a, b, c;
  cin >> a >> b >> c;
  const int d = a;
  int* e = new int [d];
  for (int i = 0; i < d; i++) {
    cin >> e[i];
  }
  long int* f = new long int [d];
  for (int i = 0; i < d; i++ ) {
    f[i] = b - c; }
  if (b > c) {
    for (int i = 0; i < d; i++ ) {
      cout << "Yes" << endl; }
  } else { for (int i = 0; i < d; i++){
    f[e[i - 1]] += 1; }
          for (int i = 0; i < d; i++) {
         if (f[i] > 0 ) {
           cout << "Yes" << endl; }
           else{ cout << "No" << endl; }
          }
         }
  delete [] e
    delete [] f
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:27:14: error: expected ';' before 'delete'
   27 |   delete [] e
      |              ^
      |              ;
   28 |     delete [] f
      |     ~~~~~~
Language: C++


    
#include <iostream> 
using namespace std;
int main () {
  long int a, b, c;
  cin >> a >> b >> c;
  const int d = a;
  int = new int e[d];
  for (int i = 0; i < d; i++) {
    cin >> e[i];
  }
  long int = new long int f[d];
  for (int i = 0; i < d; i++ ) {
    f[i] = b - c; }
  if (b > c) {
    for (int i = 0; i < d; i++ ) {
      cout << "Yes" << endl; }
  } else { for (int i = 0; i < d; i++){
    f[e[i - 1]] += 1; }
          for (int i = 0; i < d; i++) {
         if (f[i] > 0 ) {
           cout << "Yes" << endl; }
           else{ cout << "No" << endl; }
          }
         }
  delete [] e
    delete [] f
}
    

Compiler output:
a.cc: In function 'int main()':
a.cc:9:7: error: expected unqualified-id before '=' token
    9 |   int = new int e[d];
      |       ^
a.cc:11:12: error: 'e' was not declared in this scope
   11 |     cin >> e[i];
      |            ^
a.cc:13:12: error: expected unqualified-id before '=' token
   13 |   long int = new long int f[d];
      |            ^
a.cc:15:5: error: 'f' was not declared in this scope
   15 |     f[i] = b - c; }
      |     ^
a.cc:20:5: error: 'f' was not declared in this scope
   20 |     f[e[i - 1]] += 1; }
      |     ^
a.cc:20:7: error: 'e' was not declared in this scope
   20 |     f[e[i - 1]] += 1; }
      |       ^
a.cc:22:14: error: 'f' was not declared in this scope
   22 |          if (f[i] > 0 ) {
      |              ^
a.cc:27:13: error: 'e' was not declared in this scope
   27 |   delete [] e
      |             ^
Language: C++

#include <string>
#include <iostream>
#include <vector>
#include <string>
#include <utility>
#include <algorithm>
#include <math.h>
 
using namespace std;
int main() {
	cin.tie(0);
   	ios::sync_with_stdio(false);
 
	int n,k,q;
	cin >> n >> k >> q;
    vector<int> score(n);
    vector<int> vec(q);
    for(int i=0; i<n;i++){
      score.at(i) = k-q;
    }
    for(int i=0; i<q;i++){
      cin >> vec.at(i);
    }
    for(int i=0;i<q;i++){
      score.at(vec.at(i))++;
    }
    
    for(int i=0;i<q;i++){
      if(vec1.at(i) > 0){
        cout << "Yes" << "/n";
      }else{
        cout << "No" << "/n";
      }
    }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:29:10: error: 'vec1' was not declared in this scope; did you mean 'vec'?
   29 |       if(vec1.at(i) > 0){
      |          ^~~~
      |          vec
Language: C++

#include <string>
#include <iostream>
#include <vector>
#include <string>
#include <utility>
#include <algorithm>
#include <math.h>
 
using namespace std;
int main() {
	cin.tie(0);
   	ios::sync_with_stdio(false);
 
	int n,k,q;
	cin >> n >> k >> q;
    vector<int> vec1(n);
    vector<int> vec2(q);
    for(int i=0; i<n;i++){
      vec1.at(i) = k;
    }
    for(int i=0; i<q;i++){
      cin >> vec2.at(i);
    }
    for(int i=0;i<q;i++){
      vec1.at(vec2.at(i))++
    }
    
    for(int i=0;i<q;i++){
      if(vec1.at(i) > k){
        cout << "Yes" << "/n";
      }else{
        cout << "No" << "/n";
      }
    }
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:28: error: expected ';' before '}' token
   25 |       vec1.at(vec2.at(i))++
      |                            ^
      |                            ;
   26 |     }
      |     ~
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:8:18: error: expected ',' or ';' before '=' token
    8 |   vector<int>b(q)=k;
      |                  ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: expected unqualified-id before '=' token
    5 |   ll=n,k,q;
      |     ^
a.cc:6:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |   cin >> n >> k >> q;
      |          ^
      |          yn
a.cc:6:15: error: 'k' was not declared in this scope
    6 |   cin >> n >> k >> q;
      |               ^
a.cc:6:20: error: 'q' was not declared in this scope
    6 |   cin >> n >> k >> q;
      |                    ^
a.cc:8:18: error: expected ',' or ';' before '=' token
    8 |   vector<int>b(q)=k;
      |                  ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll=long long;
const ll MOD=1000000007;
const double PI=3.14159265358979;
const ll INF= pow(10,18);
typedef pair<ll,ll> P;
typedef vector<ll> vl;
typedef vector<vl> vvl;
#define FOR(i,a,b) for(ll i=a;i<b;i++)
#define rep(i,n) FOR(i,0,n)
string abc="abcdefghijklmnopqrstuvwxyz";
string ABC="ABCDEFGHIJKLMNOPQRSTUVWXYZ";

int main() {
  ll n,k,q;
  cin >> n >> k >> q;
  vl point(n,q-k);
  vl a(q);
  rep(i,q){
    cin >> a[i];
    point[a[i]]++;
  }
  rep(i,n){
    if(point[i]>0){
      cout << "Yes" << endl;
    }
    else
      cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:2: error: expected '}' at end of input
   30 | }
      |  ^
a.cc:15:12: note: to match this '{'
   15 | int main() {
      |            ^
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[i];
  
  vector<int> P(N, 0);
  
  rep(i, Q) P[A[i]-1]++;
  
  rep(i, N) {
    if(P[i]+K-Q <= 0) cout << "No" <<endl;
    else cout << "Yes" << endl;
  }
  

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

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

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


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

#include<bits/stdc++.h>
#define rep ( i , n ) for ( int i = 0 ; i < ( n ); ++ i )  
using namespace std;
//#define MAX_N 200010
int main(){
	  int n , k , q ;
  cin >> n >> k >> q ;
  vector <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" );
  }
  return 0 ;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:15: error: 'i' was not declared in this scope
    2 | #define rep ( i , n ) for ( int i = 0 ; i < ( n ); ++ i )
      |               ^
a.cc:9:3: note: in expansion of macro 'rep'
    9 |   rep ( i , q ) {
      |   ^~~
Language: C++

#include<bits/stdc++.h>
#define rep (i,n) for ( int i = 0 ; i < ( n );++i)  
using namespace std;
//#define MAX_N 200010
int main(){
	int n,k,q;
	cin>>n>>k>>q;
	vector<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");
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:2:13: error: expected ',' or ';' before '(' token
    2 | #define rep (i,n) for ( int i = 0 ; i < ( n );++i)
      |             ^
a.cc:9:17: note: in expansion of macro 'rep'
    9 |                 rep(i,q){
      |                 ^~~
a.cc:2:37: error: 'i' was not declared in this scope
    2 | #define rep (i,n) for ( int i = 0 ; i < ( n );++i)
      |                                     ^
a.cc:9:17: note: in expansion of macro 'rep'
    9 |                 rep(i,q){
      |                 ^~~
Language: C

#include<bits/stdc++.h>
using namespace std;
int main()
{
    int n,k,q,i,j;
    cin>>n>>k>>q;
    int a[q],b[n];
    for(i=1; i<=n; i++)
        b[i]=k;
    for(i=1; i<=q; i++)
    {
        cin>>a[i];

    }

    for(i=1; i<=q; i++)
    {
        for(j=1; j<=n; j++)
        {
            if(j!=a[i])
                b[j]-=1;
        }
    }

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

    return 0;
}

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

#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#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);
  vector<int>b(n);
  rep(i,n) cin>>a[i];
  rep(i,n) cin>>b[i]=k-q;
 rep(i,q){
  b[a[i]-1]++;
 }
 rep{i,n}{
   if(b[i]>0)cout<<"Yes"<<endl;
   else cout<<"No"<<endl;
 }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: no match for 'operator=' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int')
   12 |   rep(i,n) cin>>b[i]=k-q;
      |                        ^
In file included from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
                 from a.cc:2:
/usr/include/c++/14/istream:718:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator=(std::basic_istream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]'
  718 |       operator=(basic_istream&& __rhs)
      |       ^~~~~~~~
/usr/include/c++/14/istream:718:33: note:   no known conversion for argument 1 from 'int' to 'std::basic_istream<char>&&'
  718 |       operator=(basic_istream&& __rhs)
      |                 ~~~~~~~~~~~~~~~~^~~~~
a.cc:16:2: error: 'rep' was not declared in this scope
   16 |  rep{i,n}{
      |  ^~~
a.cc:17:9: error: 'i' was not declared in this scope
   17 |    if(b[i]>0)cout<<"Yes"<<endl;
      |         ^
Language: C++

#define _GLIBCXX_DEBUG
#include<bits/stdc++.h>
using namespace std;
#define ll long long
#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);
  vector<int>b(n);
  rep(i,n) cin>>a[i];
  rep(i,n) cin>>b[i]=k-q;
 rep(i,q){
  b[a[i]-1]++
 }
 rep{i,n}{
   if(b[i]>0)cout<<"Yes"<<endl;
   else cout<<"No"<<endl;
 }

}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:24: error: no match for 'operator=' (operand types are 'std::basic_istream<char>::__istream_type' {aka 'std::basic_istream<char>'} and 'int')
   12 |   rep(i,n) cin>>b[i]=k-q;
      |                        ^
In file included from /usr/include/c++/14/sstream:40,
                 from /usr/include/c++/14/complex:45,
                 from /usr/include/c++/14/ccomplex:39,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:127,
                 from a.cc:2:
/usr/include/c++/14/istream:718:7: note: candidate: 'std::basic_istream<_CharT, _Traits>& std::basic_istream<_CharT, _Traits>::operator=(std::basic_istream<_CharT, _Traits>&&) [with _CharT = char; _Traits = std::char_traits<char>]'
  718 |       operator=(basic_istream&& __rhs)
      |       ^~~~~~~~
/usr/include/c++/14/istream:718:33: note:   no known conversion for argument 1 from 'int' to 'std::basic_istream<char>&&'
  718 |       operator=(basic_istream&& __rhs)
      |                 ~~~~~~~~~~~~~~~~^~~~~
a.cc:14:14: error: expected ';' before '}' token
   14 |   b[a[i]-1]++
      |              ^
      |              ;
   15 |  }
      |  ~            
a.cc:16:2: error: 'rep' was not declared in this scope
   16 |  rep{i,n}{
      |  ^~~
a.cc:17:9: error: 'i' was not declared in this scope
   17 |    if(b[i]>0)cout<<"Yes"<<endl;
      |         ^
Language: C++

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

}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: expected ';' before ':' token
   13 |     p[a]++:
      |           ^
      |           ;
Language: C++

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

int main(){
    ll n,k,q;
    cin >> n >> k >> q;
    vector<int> a(q);
    rep(i,q) cin >> a[i];
    vector<int> cnt(n);
    rep cnt[i] = k -q;
    rep(i,q){
        cnt[a[i] - 1]++;
    }
    rep(i,n){
        if(cnt[i] > 0) cout << "Yes" << endl;
        else cout << "No" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:5: error: 'rep' was not declared in this scope
   12 |     rep cnt[i] = k -q;
      |     ^~~
Language: C++

#include <bits/stdc++.h>

using namespace std;

const int N = 410;

int main() {
  int n; cin >> n;
  int k; cin >> k;
  int q; cin >> q;
  vector <int> player(n + 1, 0);
  int loss = 0;
  while(q--) {
    int a; cin >> a;
    loss++; player[a]++;
  }
  for(int i = 1; i <= n; i++) {
    int total = (k - loss + player[a]);
    if(total > 0) {
      puts("YES");
    }
    else {
      puts("NO");
    }
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:36: error: 'a' was not declared in this scope
   18 |     int total = (k - loss + player[a]);
      |                                    ^
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 ansNum = sc.nextInt();
      for(int i=0; i<N; i++){
        if(ansNum - 1 == i)continue;
        point[i]--;
      }
    }
    for(int i=0; i<N; i++){
      if(point[i]>0)System.out.println("Yes");
      else System.out.println("No");
    }
  }
}


Compiler output:
Main.java:13: error: variable i is already defined in method main(String[])
      for(int i=0; i<N; i++){
              ^
1 error
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 in[N];
    for(int i=0; i<Q; i++){
      int ansNum = sc.nextInt();
      for(int i=0; i<N; i++){
        if(ansNum - 1 == i)continue;
        point[i]--;
      }
    }
    for(int i=0; i<N; i++){
      if(point[i]>0)System.out.println("Yes");
      else System.out.println("No");
    }
  }
}

Compiler output:
Main.java:10: error: cannot find symbol
    int[] point = new in[N];
                      ^
  symbol:   class in
  location: class Main
Main.java:13: error: variable i is already defined in method main(String[])
      for(int i=0; i<N; i++){
              ^
2 errors
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:16: error: invalid operands of types 'int' and 'int [a]' to binary 'operator-'
   14 |       if(d[i]>c-d)cout<<"Yes"<<endl;
      |               ~^~
      |               | |
      |               | int [a]
      |               int
Language: C++

#include "stdafx.h"
#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <iterator>
using namespace std;

void func141c() {
  int n, k, q, buff;
  cin >> n >> k >> q;
  vector<int> score(n, k-q);
  for (int i = 0; i < q; i++) {
    cin >> buff;
    score[buff-1]++;
  }
  for (int i = 0; i < n; i++) {
    if (score[i] > 0) {
      cout << "Yes\n";
    }else{
      cout << "No\n";
    }
  }
}

int main() {
  func141c();
  return 0;
}

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

#include "stdafx.h"
#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <iterator>
using namespace std;

void func141c() {
  int n, k, q, buff;
  cin >> n >> k >> q;
  vector<int> score(n, k-q);
  for (int i = 0; i < q; i++) {
    cin >> buff;
    score[buff-1]++;
  }
  for (int i = 0; i < n; i++) {
    if (score[i] > 0) {
      cout << "Yes\n";
    }else{
      cout << "No\n";
    }
  }
}

int main() {
  while (true) {
    func141c();
  }
  return 0;
}

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

#include<iostream>
#include<vector>

int main()
{
int N,K,Q; std::cin >> N >> K >> Q;
std::vector<int> A(Q);
std::vector<int>P(N, K);
for(int i = 0; i < Q; ++i)
{
std::cin >> A[i];A[i]-=1;
P[A[i]] += 1;
}

for(int i = 0; i < N; ++i)
{
if(P[i]  - Q)
{
std::cout << "Yes"s;
}
else
{
std::cout << "No"s;
}
}

}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:14: error: unable to find string literal operator 'operator""s' with 'const char [4]', 'long unsigned int' arguments
   19 | std::cout << "Yes"s;
      |              ^~~~~~
a.cc:23:14: error: unable to find string literal operator 'operator""s' with 'const char [3]', 'long unsigned int' arguments
   23 | std::cout << "No"s;
      |              ^~~~~
Language: C

#include <stdio.h>
#include <stdlib.h>
int main(void) {
    long long int N,K,Q;
    scanf("%lld %lld %lld",&N,&K,&Q);

    long long int ans[Q];
    for (long long int i=1;i<=Q;i++){
        scanf("%lld",&ans[i]);
    }
    if (K>Q) {for (int i=0;i<N;i++){printf("Yes\n");
    }return 0;}

long long int array[N+1];
memset(array,0,(N+1)*sizeof(N+1));
for (long long int i=1;i<=Q;i++){
    array[ans[i]]++;
}
long long int max=0;
for (long long int j=1;j<=N;j++){
    if (array[j]>max) max=array[j];
}

for (long long int j=1;j<=N;j++){
    if (array[j]+k<=q) printf("No\n");
    else printf("Yes\n");
}

return EXIT_SUCCESS;
}


Compiler output:
main.c: In function 'main':
main.c:15:1: error: implicit declaration of function 'memset' [-Wimplicit-function-declaration]
   15 | memset(array,0,(N+1)*sizeof(N+1));
      | ^~~~~~
main.c:3:1: note: include '<string.h>' or provide a declaration of 'memset'
    2 | #include <stdlib.h>
  +++ |+#include <string.h>
    3 | int main(void) {
main.c:15:1: warning: incompatible implicit declaration of built-in function 'memset' [-Wbuiltin-declaration-mismatch]
   15 | memset(array,0,(N+1)*sizeof(N+1));
      | ^~~~~~
main.c:15:1: note: include '<string.h>' or provide a declaration of 'memset'
main.c:25:18: error: 'k' undeclared (first use in this function)
   25 |     if (array[j]+k<=q) printf("No\n");
      |                  ^
main.c:25:18: note: each undeclared identifier is reported only once for each function it appears in
main.c:25:21: error: 'q' undeclared (first use in this function)
   25 |     if (array[j]+k<=q) printf("No\n");
      |                     ^
Language: C++

#include "pch.h"
#include <iostream>
#include <vector>

using namespace std;

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

int main()
{ 
  AttackSurvival();
  return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
using ll=long long int;

template <typename t>
inline void print (const t & v){
    cout << "Printing container" << endl;
    for (auto i:v){
        cout << i << " ";
    }
    cout << endl;
}

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

    ll v[n];
    for (ll i=0; i<n; i++){
        v[i] = k;
    }

    while (q--){
        ll num;
        cin >> num;

        for (ll i=0; i<v.size(); i++){
            if ( i == num-1){
                continue;
            }
            v[i] -= 1;
        }
    }

    for (ll i=0; i<v.size(); i++){
        if ( v[i] <= 0 ){
            cout << "No" << endl;
        }
        else {
            cout << "Yes" << endl;
        }
    }

    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:27:26: error: request for member 'size' in 'v', which is of non-class type 'll [n]' {aka 'long long int [n]'}
   27 |         for (ll i=0; i<v.size(); i++){
      |                          ^~~~
a.cc:35:22: error: request for member 'size' in 'v', which is of non-class type 'll [n]' {aka 'long long int [n]'}
   35 |     for (ll i=0; i<v.size(); i++){
      |                      ^~~~
Language: C++

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

void fnInput(int& rnMember, int& rnScore, vector<int>& rvnAnsMem)
{
  int nMemSiz, nAnsSiz;
  cin >> rnMember >> rnScore >> nAnsSiz;

  rvnAnsMem.resize(nAnsSiz);
  for (int& rnAnsMem : rvnAnsMem)
    cin >> rnAnsMem;
}

void fnScoreCheck(int nMember, int nScore, const vector<int>& cnrvnAnsMem)
{
  vector<int> vnMemScore(nMember + 1, nScore - cnrvnAnsMem.size());

  for (int nAnsMem : cnrvnAnsMem)
    vnMemScore[ nAnsMem ]++;

  for (int i = 1; i <vnMemScore.size(); i++)
    if (nMemScore > 0) cout << "Yes" << endl;
    else               cout << "No"  << endl;
}

int main()
{
  int nMember, nScore;
  vector<int> vnAnsMem;

  fnInput(nMember, nScore, vnAnsMem);
  fnScoreCheck(nMember, nScore, vnAnsMem);

  return 0;
}

Compiler output:
a.cc: In function 'void fnScoreCheck(int, int, const std::vector<int>&)':
a.cc:22:9: error: 'nMemScore' was not declared in this scope; did you mean 'vnMemScore'?
   22 |     if (nMemScore > 0) cout << "Yes" << endl;
      |         ^~~~~~~~~
      |         vnMemScore
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:17:22: error: 'put' was not declared in this scope; did you mean 'putw'?
   17 |         if (p[i]>0){ put("Yes")};
      |                      ^~~
      |                      putw
a.cc:18:9: error: 'else' without a previous 'if'
   18 |         else puts("No");
      |         ^~~~
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: C++

#include<iostream>
using namespace std;
int maain()
{
  int n;  // no of  players
  cin>>n;

  int k;    // intial score
  int q;  //no of questions
  cin>>k>>q;
    vector<int> scores(n,k-q);
  for(int i=0;i<q;i++)
  {
    int a;
    cin>>a;
    scores[a-1]+=1;
  }
  for(int i=0;i<n;i++)
  {
    if(scores[i]>0) cout<<"Yes";
    else cout<<"No";
  }
}
    

Compiler output:
a.cc: In function 'int maain()':
a.cc:11:5: error: 'vector' was not declared in this scope
   11 |     vector<int> scores(n,k-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 | using namespace std;
a.cc:11:12: error: expected primary-expression before 'int'
   11 |     vector<int> scores(n,k-q);
      |            ^~~
a.cc:16:5: error: 'scores' was not declared in this scope
   16 |     scores[a-1]+=1;
      |     ^~~~~~
a.cc:20:8: error: 'scores' was not declared in this scope
   20 |     if(scores[i]>0) cout<<"Yes";
      |        ^~~~~~
a.cc:23:1: warning: no return statement in function returning non-void [-Wreturn-type]
   23 | }
      | ^
Language: C++

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

int main() {
  int n,k,q;
  cin >> n >> k >> q;
  vector<int> point(n,k-1*q);
  for(int i=0;i<q;i++) {
    int temp;
    cin >> temp;
    temp--;
    point.at(temp)++;
  }
  for(int i=0;i<n;i++) {
    if(point.at(i)>0) {
      cout << "Yes" << endl;
    }
    else {
      cout << "No" << endl;
    }
}

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

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

int main() {
  unsigned long long n, k, q;
  unsigned long long s[n] = {};
  int c;
  for (int i = 0; i < q;i++){
    cin >> c;
    s[c-1] = s[c-1] + 1;
  }
  
  for (i = 0; i < n;i++){
    if (k-q+s[i] > 0){
      cout << 'Yes' << endl;
      return 0;
    }else{
      cout << 'No' << endl;
      return 0;
    }
  }
}


Compiler output:
a.cc:16:15: warning: multi-character character constant [-Wmultichar]
   16 |       cout << 'Yes' << endl;
      |               ^~~~~
a.cc:19:15: warning: multi-character character constant [-Wmultichar]
   19 |       cout << 'No' << endl;
      |               ^~~~
a.cc: In function 'int main()':
a.cc:14:8: error: 'i' was not declared in this scope
   14 |   for (i = 0; i < n;i++){
      |        ^
Language: C++

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

int main() {
  unsigned long long n, k, q;
  unsigned long long s[n] = 0;
  int c;
  for (int i = 0; i < q;i++){
    cin >> c;
    s[c-1] = s[c-1] + 1;
  }
  
  for (i = 0; i < n;i++){
    if (k-q+s[i] > 0){
      cout << 'Yes' << endl;
      return 0;
    }else{
      cout << 'No' << endl;
      return 0;
    }
  }
}

Compiler output:
a.cc:16:15: warning: multi-character character constant [-Wmultichar]
   16 |       cout << 'Yes' << endl;
      |               ^~~~~
a.cc:19:15: warning: multi-character character constant [-Wmultichar]
   19 |       cout << 'No' << endl;
      |               ^~~~
a.cc: In function 'int main()':
a.cc:7:29: error: array must be initialized with a brace-enclosed initializer
    7 |   unsigned long long s[n] = 0;
      |                             ^
a.cc:14:8: error: 'i' was not declared in this scope
   14 |   for (i = 0; i < n;i++){
      |        ^
Language: C++

#include <bits/stdc++.h>
#define rep(i,n) for (int i=0;i<(n);++i)
using namespace std;
 
int main(){
  int n, k, q;
  cin >> n >> k >>q;
  vector<int> vec(n);
  rep(i,n) vec.at(i)=k-q;
//  vector<int> que(q);
  rep(i,q){
    int tmp;
    cin >> tmp;
    tmp--;
    vec.at(tmp)++;
  }
  rep(i,n){
    string ret;
    if vec.at(i)>0 ret = "Yes";
    else ret = "No";
    cout << ret << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:8: error: expected '(' before 'vec'
   19 |     if vec.at(i)>0 ret = "Yes";
      |        ^~~
      |        (
a.cc:20:5: error: 'else' without a previous 'if'
   20 |     else ret = "No";
      |     ^~~~
Language: C++

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

int main(){
  int n, k, q;
  cin >> n >> k >>q;
  vector<int> vec(n);
  rep(i,n) vec.at(i)=k-q;
//  vector<int> que(q);
  rep(i,q){
    int tmp;
    cin >> tmp;
    tmp--;
    vec.at(tmp)++;
  }
  
    
    
  

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

#include<stdio.h>

int main (void){
    int N;
    int K;
    int Q;
    int S[100000];
    int a=1;
    int b=1;
    int c=0;
    int d=1;

    scanf("%d %d %d",&N,&K,&Q);
    for(a;a<N+1;a++){
        S[a] = K;
    }
    for(b;b<Q+1;b++){
        scanf("%d",&c);
        S[c] +=1;
    }
    for(d;d<N+1;d++){
        if(S[d]-Q<=0){
            printf("No\n");
        }elseif(S[d]-Q>0){
            printf("Yes\n");
        }
    }
        return 0;
}

Compiler output:
main.c: In function 'main':
main.c:24:10: error: implicit declaration of function 'elseif' [-Wimplicit-function-declaration]
   24 |         }elseif(S[d]-Q>0){
      |          ^~~~~~
main.c:24:26: error: expected ';' before '{' token
   24 |         }elseif(S[d]-Q>0){
      |                          ^
      |                          ;
Language: C++

#include <iostream>
#include <algorithm>
#include <string>
#include <math.h>
#include <bitset>
#include <vector>
#include <queue>
#include <map>

#define i64 int64_t
#define ff(ii,nn,mm) for(int ii=nn;ii<mm;ii++)
#define sort(vvv) sort(vvv.begin(),vvv.end())
#define rvs(vvv) reverse(vvv.begin(),vvv.end())

using namespace std;

int main() {
	int n, k, q;
	cin >> n >> k >> q;
	int s = q - k+1;
	vector<int> ac(n);
	ac.resize;
	ff(i, 0, q) {
		int a;
		cin >> a;
		a--;
		ac.at(a)++;
	}
	ff(i, 0, n) {
		if (ac.at(i) >= s) {
			cout << "Yes" << endl;
		}
		else {
			cout << "No" << endl;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:12: error: statement cannot resolve address of overloaded function
   22 |         ac.resize;
      |         ~~~^~~~~~
Language: C

#include <stdio.h>
int main(void){
  int long long X,Y,Z;
  
  scanf("%lld",%X);
  Y=X/100;
  Z=100*Y+5*Y;
  if(X<Z){
	printf("1");
  }
  else{
	printf("0");
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:5:16: error: expected expression before '%' token
    5 |   scanf("%lld",%X);
      |                ^
Language: C++

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

Compiler output:
a.cc:1:1: error: expected unqualified-id before numeric constant
    1 | 3include<bits/stdc++.h>
      | ^~~~~~~~
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope
    5 |   cin>>N>>K>>Q;
      |   ^~~
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int> A(Q)={0};
      |   ^~~~~~
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   vector<int> A(Q)={0};
      |          ^~~
a.cc:10:5: error: 'A' was not declared in this scope
   10 |     A.at(x-1)++;
      |     ^
a.cc:13:5: error: 'cout' was not declared in this scope
   13 |     cout<<Q-A.at(i)<K?"Yes":"No"<<endl;
      |     ^~~~
a.cc:13:13: error: 'A' was not declared in this scope
   13 |     cout<<Q-A.at(i)<K?"Yes":"No"<<endl;
      |             ^
a.cc:13:35: error: 'endl' was not declared in this scope
   13 |     cout<<Q-A.at(i)<K?"Yes":"No"<<endl;
      |                                   ^~~~