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


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

int main()
{
  cin >> N >> K >> Q;
  if (Q < K)
  {
    for (int i = 0; i < N; ++i)
      cout << "Yes" << endl;
    return 0;
  }
  vector<int> _point(N + 1, K - Q);
  auto * const point = &_point[0];
  for (int i = 0; i < Q; ++i)
  {
    int A;
    cin >> A;
    ++point[A];
  }
  for (int i = 1; i <= N; ++i)
    cout << (0 < point[i] ? "Yes" : "No");
  return 0;
}


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

#include <iostream>
#include <vector>

using namespace std;

int main(){
  int n, k, q, ans=0, tmp;
  vector<int> v;
  
  cin>> n >> k >> q;
  v.resize(n+1);
  
  for(int i=1;i<=n;i++) v[i]=0;
  
  for(int i=0;i<q;i++){
    cin>> tmp;
    v[tmp]++;
  }

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


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

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

class Main {

	public static void main(String[] args) {

		FastScanner sc = new FastScanner();
		int n = sc.nextInt();
		int k = sc.nextInt();
		int q = sc.nextInt();
		int[] a = new int[q + 1];
		for (int i = 1; i < q + 1; i++)
			a[i] = sc.nextInt();

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

		for (int i = 1; i < q + 1; i++)
			score[a[i]]++;

		for (int i = 1; i < n + 1; i++)
			System.out.println(score[i] - q > 0 ? "Yes" : "No");

	}
}

static class FastScanner {
    private final InputStream in = System.in;
    private final byte[] buffer = new byte[1024];
    private int ptr = 0;
    private int buflen = 0;
    private boolean hasNextByte() {
        if (ptr < buflen) {
            return true;
        }else{
            ptr = 0;
            try {
                buflen = in.read(buffer);
            } catch (IOException e) {
                e.printStackTrace();
            }
            if (buflen <= 0) {
                return false;
            }
        }
        return true;
    }
    private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1;}
    private static boolean isPrintableChar(int c) { return 33 <= c && c <= 126;}
    public boolean hasNext() { while(hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte();}
    public String next() {
        if (!hasNext()) throw new NoSuchElementException();
        StringBuilder sb = new StringBuilder();
        int b = readByte();
        while(isPrintableChar(b)) {
            sb.appendCodePoint(b);
            b = readByte();
        }
        return sb.toString();
    }
    public long nextLong() {
        if (!hasNext()) throw new NoSuchElementException();
        long n = 0;
        boolean minus = false;
        int b = readByte();
        if (b == '-') {
            minus = true;
            b = readByte();
        }
        if (b < '0' || '9' < b) {
            throw new NumberFormatException();
        }
        while(true){
            if ('0' <= b && b <= '9') {
                n *= 10;
                n += b - '0';
            }else if(b == -1 || !isPrintableChar(b)){
                return minus ? -n : n;
            }else{
                throw new NumberFormatException();
            }
            b = readByte();
        }
    }
    public int nextInt() {
        long nl = nextLong();
        if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();
        return (int) nl;
    }
    public double nextDouble() { return Double.parseDouble(next());}
}

}

Compiler output:
Main.java:95: error: class, interface, enum, or record expected
}
^
1 error
Language: C++

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

int main() {
  long long n, k, q;
  cin >> n >> k >> q;
  vector<long long> a(q), pts(n, k);
  for (long long i = 0; i < q; i++) {
    cin >> a.at(i);
    for (long long j = 0; j < n; j++) {
      if (j == a.at(i) - 1) continue;
      pts.at(j)--;
    }
  }
  for (long long i = 0; i < n; j++) {
    if (pts.at(i) <= 0) cout << "No" << endl;
    else cout << "Yes" << endl;
  }
}

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

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

int main() {
  long long n, k, q;
  cin >> n >> k >> q;
  vector<long long> a(q), pts(n, k);
  for (long long i = 0; i < q; i++) {
    cin >> a.at(i);
    for (long long j = 0; j < n; j++) {
      if (j == a.at(i) - 1) continue;
      pts.at(j)--;
    }
  }
  for (long long j = 0; j < n; j++) {
    if (pts.at(i) <= 0) cout << "No" << endl;
    else cout << "Yes" << endl;
  }
}

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

n, k, q = map(int, input().split())
a = [0] * n
for i in range(q):
    b = int(input())
    a[b-1] = a[b-1] + 1
for i in a:
    print("Yes" if k-q+i > 0 else "No")

Compiler output:
a.cc:1:1: error: 'n' does not name a type
    1 | n, k, q = map(int, input().split())
      | ^
Language: C++

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

const int N = 100005;

int cont[N], n, q, k;

int main()
{
	ios_base::sync_with_stdio(false);

	cin >> n >> q >> k;

	memset(cont, 0, sizeof cont);

	for(int i=0; i<q; i++) {
		int x; cin >> x;
		cont[x]++;
	}

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

Compiler output:
a.cc: In function 'int main()':
a.cc:22:29: error: 'x' was not declared in this scope
   22 |                 if(k-q+cont[x] > 0) cout << "Yes\n";
      |                             ^
Language: C++

#include <bits/stdc++.h>
#include <cstdio>
#include <vector>
#include <iostream>
#include <utility>
#define chmin(x, y) x = min(x, y);
#define chmax(x, y) x = max(x, y);
#define rep(i, j) for (int (i)=0;(i)<(j);(i)++)
#define dump(x)  cout << #x << " = " << (x) << endl;
#define debug(x) cout << #x << " = " << (x) << " (L" << __LINE__ << ")" << " " << __FILE__ << endl;
using namespace std;
typedef long long int ll;

int N,K,Q;
vector<int> vec(1e5+1,0);

void input() {
    cin >> N >> K >> Q;
    rep(i, Q) {
        int a;cin >> a;
        vec[a] += 1;
    };
}

void solve () {
    input();
    for(int i=1;i<=N;i++){
        vec[i] = K - (Q - vec[i]);
        if(vec[i] <= 0){
            cout << No << endl;
            continue;
        }
        cout << Yes << endl;

    }
}

int main () {
    solve();
    return 0;

}

Compiler output:
a.cc: In function 'void solve()':
a.cc:30:21: error: 'No' was not declared in this scope; did you mean 'N'?
   30 |             cout << No << endl;
      |                     ^~
      |                     N
a.cc:33:17: error: 'Yes' was not declared in this scope
   33 |         cout << Yes << endl;
      |                 ^~~
Language: C++

get = list(map(int, input().split()))
N = get[0]
K = get[1]
Q = get[2]
pt = [K] * N
for i in range(Q):
    A = int(input()) - 1
    for j in range(N):
        if j == A:
            continue
        else:
            pt[j] -= 1
for i in pt:
    if i > 0:
        print("Yes")
    else:
        print("No")

Compiler output:
a.cc:1:1: error: 'get' does not name a type
    1 | get = list(map(int, input().split()))
      | ^~~
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'veator' was not declared in this scope
    6 |   veator<int>T(Q);
      |   ^~~~~~
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   veator<int>T(Q);
      |          ^~~
a.cc:8:14: error: 'T' was not declared in this scope
    8 |         cin>>T.at(i);
      |              ^
a.cc:12:10: error: 'T' was not declared in this scope
   12 |     P.at(T.at(i)-1)++;
      |          ^
Language: C++

N, K, Q = [int(i) for i in input().split()]

A = []

score = [K] * N
for _ in range(Q):
    A.append(int(input()))

for i in A:
    for j in range(N):
        if i - 1 != j:
            score[j] -= 1

for i in score:
    if i > 0:
        print('Yes')
    else:
        print('No')

Compiler output:
a.cc:16:15: warning: multi-character character constant [-Wmultichar]
   16 |         print('Yes')
      |               ^~~~~
a.cc:18:15: warning: multi-character character constant [-Wmultichar]
   18 |         print('No')
      |               ^~~~
a.cc:1:1: error: 'N' does not name a type
    1 | N, K, Q = [int(i) for i in input().split()]
      | ^
Language: C++

N, K, Q = [int(i) for i in input().split()]

A = []

score = [K] * N
for _ in range(Q):
    A.append(int(input()))

for i in A:
    for j in range(N):
        if i - 1 != j:
            score[j] -= 1
    #print(score)
    #if 0 in score:
    #    break

for i in score:
    if i > 0:
        print('Yes')
    else:
        print('No')

Compiler output:
a.cc:13:6: error: invalid preprocessing directive #print
   13 |     #print(score)
      |      ^~~~~
a.cc:14:11: error: missing binary operator before token "in"
   14 |     #if 0 in score:
      |           ^~
a.cc:14: error: unterminated #if
   14 |     #if 0 in score:
a.cc:1:1: error: 'N' does not name a type
    1 | N, K, Q = [int(i) for i in input().split()]
      | ^
Language: Java

import java.util.ArrayList;
import java.util.Arrays;
import java.util.Comparator;
import java.util.List;
import java.util.Scanner;

public class Main {
	public static void main(String args[]){//double 处理果盘
		Scanner in = new Scanner(System.in);
		int len = in.nextInt();
		int k = 0;
		in.next();
		int num = in.nextInt();
		int[]  c = new int[num];
		for (int i=0;i<num;i++){
			c[i] = in.nextInt();
		}
		Arrays.sort(c);
		List<A> a = new ArrayList<>();
		for(int i=1;i<c.length;i++){
			if(c[i] == c[i-1]){
				if(i == c.length-1){
					A a1 = new A(c[i],i-k+1);
					a.add(a1);
				}
			}else{
				A a1 = new A(c[i-1],i-k);
				k = i;
				a.add(a1);
			}
		}
		a.sort(new Comparator<A>(){
			public int compare(A a1,A a2){
				return a1.compareTo(a2);
			}
		});
		int max = a.get(0).value;
		
		while(a.size() > 1){
			boolean f = true;
			for(int i=0;i<a.size();i++){
				if(a.get(i).value == max){
					
				}else{
					f = false;
					a.remove(i);
				}
			}
			if(f) break;
		}
		
		for (int i=1;i<=len;i++){
			boolean f = false;
			for(A a1:a){
				if(i == a1.index){
					f = true;
				}
			}
			if(f)
				System.out.println("Yes");
			else
				System.out.println("No");
		}
	}
}	

Compiler output:
Main.java:19: error: cannot find symbol
		List<A> a = new ArrayList<>();
		     ^
  symbol:   class A
  location: class Main
Main.java:23: error: cannot find symbol
					A a1 = new A(c[i],i-k+1);
					^
  symbol:   class A
  location: class Main
Main.java:23: error: cannot find symbol
					A a1 = new A(c[i],i-k+1);
					           ^
  symbol:   class A
  location: class Main
Main.java:27: error: cannot find symbol
				A a1 = new A(c[i-1],i-k);
				^
  symbol:   class A
  location: class Main
Main.java:27: error: cannot find symbol
				A a1 = new A(c[i-1],i-k);
				           ^
  symbol:   class A
  location: class Main
Main.java:32: error: cannot find symbol
		a.sort(new Comparator<A>(){
		                      ^
  symbol:   class A
  location: class Main
Main.java:33: error: cannot find symbol
			public int compare(A a1,A a2){
			                   ^
  symbol: class A
Main.java:33: error: cannot find symbol
			public int compare(A a1,A a2){
			                        ^
  symbol: class A
Main.java:54: error: cannot find symbol
			for(A a1:a){
			    ^
  symbol:   class A
  location: class Main
9 errors
Language: C++

#include <bits/stdc++.h>
#define in int64_t


int main() {
	int q; cin >> q;
	while(q--) {
		in a, b, c;
		cin >> a >> b >> c;
		cout << (a+b+c)/2;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:16: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    6 |         int q; cin >> q;
      |                ^~~
      |                std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:146,
                 from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:10:17: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   10 |                 cout << (a+b+c)/2;
      |                 ^~~~
      |                 std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
void answer(int l);
int main(){
int n,k,q;
cin >>n>>k>>q;
vector<int>vec(n,k);
vector<int>ans(q);

for(int i=0;i<q;i++){
cin>>ans.at(i);}
for(int i=0;i<q;i++){
answer(ans.at(i));}
for(int i=0;i<n;i++){
if(vec.at(i)>0)cout<<"Yes"<<endl;
else cout << "No" <<endl;
}}
void answer(int l){
for(int i=0;i<n;i++){
vec.at(i)--;}
vec.at(l)++;}

Compiler output:
a.cc: In function 'void answer(int)':
a.cc:19:15: error: 'n' was not declared in this scope
   19 | for(int i=0;i<n;i++){
      |               ^
a.cc:20:1: error: 'vec' was not declared in this scope
   20 | vec.at(i)--;}
      | ^~~
a.cc:21:1: error: 'vec' was not declared in this scope
   21 | vec.at(l)++;}
      | ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
void answer(int l);
int main(){
int n,k,q;
cin >>n>>k>>q;
vector<int>vec(n,k);
vector<int>ans(q);

for(int i=0;i<q;i++){
cin>>ans.at(i);}
for(int i=0;i<q;i++){
answer(ans(i));}
for(int i=0;i<n;i++){
if(vec.at(i)>0)cout<<"Yes"<<endl;
else cout << "No" <<endl;
}}
void answer(int l){
for(int i=0;i<n;i++){
vec.at(i)--;}
vec.at(l)++;}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: no match for call to '(std::vector<int>) (int&)'
   13 | answer(ans(i));}
      |        ~~~^~~
a.cc: In function 'void answer(int)':
a.cc:19:15: error: 'n' was not declared in this scope
   19 | for(int i=0;i<n;i++){
      |               ^
a.cc:20:1: error: 'vec' was not declared in this scope
   20 | vec.at(i)--;}
      | ^~~
a.cc:21:1: error: 'vec' was not declared in this scope
   21 | vec.at(l)++;}
      | ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
void answer(int l);
int main(){
int n,k,q;
cin >>n>>k>>q;
vector<int>vec(n,k);
vector<int>ans(q);

for(int=0;i<q;i++){
cin>>ans.at(i);}
for(int i=0;i<q;i++){
answer(ans(i));}
for(int i=0;i<n;i++){
if(vec.at(i)>0)cout<<"Yes"<<endl;
else cout << "No" <<endl;
}
void answer(int l){
for(int i=0;i<n;i++){
vec.at(i)--;}
vec.at(l)++;}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:8: error: expected unqualified-id before '=' token
   10 | for(int=0;i<q;i++){
      |        ^
a.cc:10:8: error: expected ';' before '=' token
   10 | for(int=0;i<q;i++){
      |        ^
      |        ;
a.cc:10:8: error: expected primary-expression before '=' token
a.cc:10:11: error: 'i' was not declared in this scope
   10 | for(int=0;i<q;i++){
      |           ^
a.cc:10:14: error: expected ')' before ';' token
   10 | for(int=0;i<q;i++){
      |    ~         ^
      |              )
a.cc:10:15: error: 'i' was not declared in this scope
   10 | for(int=0;i<q;i++){
      |               ^
a.cc:13:11: error: no match for call to '(std::vector<int>) (int&)'
   13 | answer(ans(i));}
      |        ~~~^~~
a.cc:18:19: error: a function-definition is not allowed here before '{' token
   18 | void answer(int l){
      |                   ^
a.cc:21:14: error: expected '}' at end of input
   21 | vec.at(l)++;}
      |              ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
void answer(int l)
int main(){
int n,k,q;
cin >>n>>k>>q;
vector<int>vec(n,k);
vector<int>ans(q);

for(int=0;i<q;i++){
cin>>ans.at(i);}
for(int i=0;i<q;i++){
answer(ans(i));}
for(int i=0;i<n;i++){
if(vec.at(i)>0)cout<<"Yes"<<endl;
else cout << "No" <<endl;
}
void answer(int l){
for(int i=0;i<n;i++){
vec.at(i)--;}
vec.at(l)++;}

Compiler output:
a.cc:4:1: error: expected initializer before 'int'
    4 | int main(){
      | ^~~
Language: C++

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

int main(){
int n,k,q;
cin >>n>>k>>q;
vector<int>vec(n,k);
vector<int>ans(q);
void answer(int l){
for(int i=0;i<n;i++){
vec.at(i)--;}
vec.at(l)++;}
for(int=0;i<q;i++){
cin>>ans.at(i);}
for(int i=0;i<q;i++){
answer(ans(i));}
for(int i=0;i<n;i++){
if(vec.at(i)>0)cout<<"Yes"<<endl;
else cout << "No" <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: a function-definition is not allowed here before '{' token
    9 | void answer(int l){
      |                   ^
a.cc:13:8: error: expected unqualified-id before '=' token
   13 | for(int=0;i<q;i++){
      |        ^
a.cc:13:8: error: expected ';' before '=' token
   13 | for(int=0;i<q;i++){
      |        ^
      |        ;
a.cc:13:8: error: expected primary-expression before '=' token
a.cc:13:11: error: 'i' was not declared in this scope
   13 | for(int=0;i<q;i++){
      |           ^
a.cc:13:14: error: expected ')' before ';' token
   13 | for(int=0;i<q;i++){
      |    ~         ^
      |              )
a.cc:13:15: error: 'i' was not declared in this scope
   13 | for(int=0;i<q;i++){
      |               ^
a.cc:16:11: error: no match for call to '(std::vector<int>) (int&)'
   16 | answer(ans(i));}
      |        ~~~^~~
a.cc:16:1: error: 'answer' was not declared in this scope
   16 | answer(ans(i));}
      | ^~~~~~
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

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

int main(){
int n,k,q;
cin n>>k>>q;
vector<int>vec(n,k);
vector<int>ans(q);
void answer(int l){
for(int i=0;i<n;i++){
vec.at(i)--;}
vec.at(l)++;}
for(int=0;i<q;i++){
cin>>ans.at(i);}
for(int i=0;i<q;i++){
answer(ans(i));}
for(int i=0;i<n;i++){
if(vec.at(i)>0)cout<<"Yes"<<endl;
else cout << "No" <<endl;}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:4: error: expected ';' before 'n'
    6 | cin n>>k>>q;
      |    ^~
      |    ;
a.cc:9:19: error: a function-definition is not allowed here before '{' token
    9 | void answer(int l){
      |                   ^
a.cc:13:8: error: expected unqualified-id before '=' token
   13 | for(int=0;i<q;i++){
      |        ^
a.cc:13:8: error: expected ';' before '=' token
   13 | for(int=0;i<q;i++){
      |        ^
      |        ;
a.cc:13:8: error: expected primary-expression before '=' token
a.cc:13:11: error: 'i' was not declared in this scope
   13 | for(int=0;i<q;i++){
      |           ^
a.cc:13:14: error: expected ')' before ';' token
   13 | for(int=0;i<q;i++){
      |    ~         ^
      |              )
a.cc:13:15: error: 'i' was not declared in this scope
   13 | for(int=0;i<q;i++){
      |               ^
a.cc:16:11: error: no match for call to '(std::vector<int>) (int&)'
   16 | answer(ans(i));}
      |        ~~~^~~
a.cc:16:1: error: 'answer' was not declared in this scope
   16 | answer(ans(i));}
      | ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'void answer(int)':
a.cc:4:15: error: 'n' was not declared in this scope
    4 | for(int i=0;i<n;i++){
      |               ^
a.cc:5:1: error: 'vec' was not declared in this scope
    5 | vec.at(i)--;}
      | ^~~
a.cc:6:1: error: 'vec' was not declared in this scope
    6 | vec.at(l)++;}
      | ^~~
a.cc: In function 'int main()':
a.cc:9:4: error: expected ';' before 'n'
    9 | cin n>>k>>q;
      |    ^~
      |    ;
a.cc:12:8: error: expected unqualified-id before '=' token
   12 | for(int=0;i<q;i++){
      |        ^
a.cc:12:8: error: expected ';' before '=' token
   12 | for(int=0;i<q;i++){
      |        ^
      |        ;
a.cc:12:8: error: expected primary-expression before '=' token
a.cc:12:11: error: 'i' was not declared in this scope
   12 | for(int=0;i<q;i++){
      |           ^
a.cc:12:14: error: expected ')' before ';' token
   12 | for(int=0;i<q;i++){
      |    ~         ^
      |              )
a.cc:12:15: error: 'i' was not declared in this scope
   12 | for(int=0;i<q;i++){
      |               ^
a.cc:15:11: error: no match for call to '(std::vector<int>) (int&)'
   15 | answer(ans(i));}
      |        ~~~^~~
Language: C++

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



Compiler output:
a.cc: In function 'int main()':
a.cc:6:14: error: 'i' was not declared in this scope
    6 |         for (i=1;i<=n;i++){
      |              ^
a.cc:9:14: error: 'i' was not declared in this scope
    9 |         for (i=1;i<=q;i++){
      |              ^
a.cc:11:28: error: expected ';' before '}' token
   11 |                 nilai [a]++
      |                            ^
      |                            ;
   12 | 
   13 |         }for ( i=1;i<=n;i++){
      |         ~                   
a.cc:13:16: error: 'i' was not declared in this scope
   13 |         }for ( i=1;i<=n;i++){
      |                ^
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>a(q);
  vector<int>b(q,-k);
  rep(i,q){
    cin>>a[i];
    b[i]+=a[i];
  }
  
  rep(j,n){
    if(b[i]>0) cout<<"Yes"<<endl;
    else cout<<"No"<<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:10: error: 'i' was not declared in this scope
   17 |     if(b[i]>0) cout<<"Yes"<<endl;
      |          ^
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:6:11: note: to match this '{'
    6 | int main(){
      |           ^
Language: Java

public class Main {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		
		String ns = s.nextLine();	
		
		String []aa = ns.split("\\s");
		
		int N = Integer.parseInt(aa[0]);
		
		int K = Integer.parseInt(aa[1]);
		
		int Q = Integer.parseInt(aa[2]);
		
		int p[] = new int[N];
		for(int i=0;i<N;i++) {
			p[i] = K;
		}
		
		for(int i=0;i<Q;i++) {
			String str = s.nextLine();
			
			int n = Integer.parseInt(str);
			
			for(int j=0;j<N;j++) {
				if(n == (j+1)) {
					
				} else {
					p[j] = p[j]-1;
				}
				
			}
		}
		
		for(int i=0;i<N;i++) {
			if(p[i]<=0) {
				System.out.println("NO");
			} else {
				System.out.println("YES");
			}
		}
		

	}

}


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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: 'b' was not declared in this scope
    7 |     cin >> b >> c >> d;
      |            ^
a.cc:7:17: error: 'c' was not declared in this scope
    7 |     cin >> b >> c >> d;
      |                 ^
a.cc:7:22: error: 'd' was not declared in this scope
    7 |     cin >> b >> c >> d;
      |                      ^
Language: C++

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

int jml[100005];

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

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

#include <stdio.h>
int main()
{
	int a,b,N,score[],K,Q,answer[];
	scanf("%d%d%d",&N,&K,&Q);
	for(a=0;a<N;a++){
		score[a]=K;
	}
	for(b=0;b<Q;b++){
		scanf("%d",&answer[b]);
			for(a=0;a<N;a++){
				if(answer[b]!=a+1){
					score[a]--;
				}
		}
	}
		for(a=0;a<N;a++){
			if(score[a]<=0){
				printf("No\n");
			}else{
				printf("Yes\n");
		}
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:4:19: error: storage size of 'score' isn't known
    4 |         int a,b,N,score[],K,Q,answer[];
      |                   ^~~~~
a.cc:4:31: error: storage size of 'answer' isn't known
    4 |         int a,b,N,score[],K,Q,answer[];
      |                               ^~~~~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:13:33: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   13 |     if(a[i] > k-q) std::cout << endl;
      |                                 ^~~~
      |                                 std::endl
In file included from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
a.cc:14:31: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   14 |     else std::cout << "No" << endl;
      |                               ^~~~
      |                               std::endl
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<(int)(n);i++)
#define fs first
#define sc second
typedef pair<ll, ll> l_l;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))

int main(){
  ll n,k,q;
  cin>>n>>k>>q;
  vector<int>a(q);
  b[n]={k};
  rep(i,q){
    cin>>a[i];
  }
  rep(i,q){
    rep(i,n){
    b[i]-=1;
    }
    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:17:3: error: 'b' was not declared in this scope
   17 |   b[n]={k};
      |   ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i=0;i<(int)(n);i++)
#define rep1(i,n) for(int i=1;i<(int)(n);i++)
#define fs first
#define sc second
typedef pair<ll, ll> l_l;
#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))

int main(){
  ll n,k,q
  cin>>n>>k>>q;
  vector<int>a(n);
  b[n]={k};
  rep(i,q){
    cin>>a[i];
  }
  rep(i,q){
    rep(i,n){
    b[i]-=1;
    }
    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:15:3: error: expected initializer before 'cin'
   15 |   cin>>n>>k>>q;
      |   ^~~
a.cc:17:3: error: 'b' was not declared in this scope
   17 |   b[n]={k};
      |   ^
a.cc:18:9: error: 'q' was not declared in this scope
   18 |   rep(i,q){
      |         ^
a.cc:4:38: note: in definition of macro 'rep'
    4 | #define rep(i,n) for(int i=0;i<(int)(n);i++)
      |                                      ^
a.cc:21:9: error: 'q' was not declared in this scope
   21 |   rep(i,q){
      |         ^
a.cc:4:38: note: in definition of macro 'rep'
    4 | #define rep(i,n) for(int i=0;i<(int)(n);i++)
      |                                      ^
Language: C++

//------------------------------------------------------------------------------MANAS UNIYAL---------------------------------------------------------
//																				NEVER GIVE UP
#include<bits/stdc++.h>
using namespace std;
#define fast ios_base::sync_with_stdio(false);	cin.tie(NULL);	cout.tie(NULL);
#define ll long long
#define pb push_back
#define fi first
#define se second
#define pii pair<ll,ll>
#define INF 0x3f3f3f3f
#define mod 100000007
#define testcases() ll t; cin>>t; while(t--)
#define debug1(x) cout<<#x<<" "<<x<<"\n";
#define debug2(x,y) cout<<#x<<" "<<x<<" "<<#y<<" "<<y<<"\n";
#define debug3(x,y,z) cout<<#x<<" "<<x<<" "<<#y<<" "<<y<<" "<<#z<<" "<<z<<"\n";
#define rep(i,start,end) for(ll i=start;i<end;i++)
 
//----------------------------------------------------------------------------------------------------------------------------------------------------

int main()
{
	fast;
	int n,k,q;
	cin>>n>>k>>q;
	vector<int> v(n,0);
	for(int i=0;i<q;i++)
	{
		cin>>x;
		--x;
		v[x]++;
	}
	for(int i=0;i<n;i++)
		(k-q+v[i]>0)?cout<<"Yes\n":cout<<"No\n";
	return 0;
}


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

//------------------------------------------------------------------------------MANAS UNIYAL---------------------------------------------------------
//																				NEVER GIVE UP
#include<bits/stdc++.h>
using namespace std;
#define fast ios_base::sync_with_stdio(false);	cin.tie(NULL);	cout.tie(NULL);
#define ll long long
#define pb push_back
#define fi first
#define se second
#define pii pair<ll,ll>
#define INF 0x3f3f3f3f
#define mod 100000007
#define testcases() ll t; cin>>t; while(t--)
#define debug1(x) cout<<#x<<" "<<x<<"\n";
#define debug2(x,y) cout<<#x<<" "<<x<<" "<<#y<<" "<<y<<"\n";
#define debug3(x,y,z) cout<<#x<<" "<<x<<" "<<#y<<" "<<y<<" "<<#z<<" "<<z<<"\n";
#define rep(i,start,end) for(ll i=start;i<end;i++)
 
//----------------------------------------------------------------------------------------------------------------------------------------------------

int main()
{
	fast;
	int n,k,q;
	cin>>n>>k>>q;
	vector<int> v(n,0);
	for(int i=0;i<q;i++)
	{
		cin>>x;
		--x;
		v[x]++;
	}
	for(int 0;i<n;i++)
		(k-q+v[i]>0)?cout<<"Yes\n":cout<<"No\n";
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:29:22: error: 'x' was not declared in this scope
   29 |                 cin>>x;
      |                      ^
a.cc:33:17: error: expected unqualified-id before numeric constant
   33 |         for(int 0;i<n;i++)
      |                 ^
a.cc:33:16: error: expected ';' before numeric constant
   33 |         for(int 0;i<n;i++)
      |                ^~
      |                ;
a.cc:33:19: error: 'i' was not declared in this scope
   33 |         for(int 0;i<n;i++)
      |                   ^
a.cc:33:22: error: expected ')' before ';' token
   33 |         for(int 0;i<n;i++)
      |            ~         ^
      |                      )
a.cc:33:23: error: 'i' was not declared in this scope
   33 |         for(int 0;i<n;i++)
      |                       ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:23:14: error: no matching function for call to 'max(int&, std::vector<int>&)'
   23 |   int x = max(n, p);
      |           ~~~^~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:23:14: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'std::vector<int>')
   23 |   int x = max(n, p);
      |           ~~~^~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:23:14: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   23 |   int x = max(n, p);
      |           ~~~^~~~~~
a.cc:3:5: note: candidate: 'int max(int, int*)'
    3 | int max(int n, int p[]){
      |     ^~~
a.cc:3:20: note:   no known conversion for argument 2 from 'std::vector<int>' to 'int*'
    3 | int max(int n, int p[]){
      |                ~~~~^~~
Language: C++

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

Compiler output:
a.cc: In function 'int max(int, int*)':
a.cc:8:1: warning: no return statement in function returning non-void [-Wreturn-type]
    8 | }
      | ^
a.cc: In function 'int main()':
a.cc:22:14: error: no matching function for call to 'max(int&, std::vector<int>&)'
   22 |   int x = max(n, p);
      |           ~~~^~~~~~
In file included from /usr/include/c++/14/algorithm:60,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:51,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_algobase.h:257:5: note: candidate: 'template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)'
  257 |     max(const _Tp& __a, const _Tp& __b)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:257:5: note:   template argument deduction/substitution failed:
a.cc:22:14: note:   deduced conflicting types for parameter 'const _Tp' ('int' and 'std::vector<int>')
   22 |   int x = max(n, p);
      |           ~~~^~~~~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note: candidate: 'template<class _Tp, class _Compare> constexpr const _Tp& std::max(const _Tp&, const _Tp&, _Compare)'
  303 |     max(const _Tp& __a, const _Tp& __b, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algobase.h:303:5: note:   candidate expects 3 arguments, 2 provided
In file included from /usr/include/c++/14/algorithm:61:
/usr/include/c++/14/bits/stl_algo.h:5706:5: note: candidate: 'template<class _Tp> constexpr _Tp std::max(initializer_list<_Tp>)'
 5706 |     max(initializer_list<_Tp> __l)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5706:5: note:   candidate expects 1 argument, 2 provided
/usr/include/c++/14/bits/stl_algo.h:5716:5: note: candidate: 'template<class _Tp, class _Compare> constexpr _Tp std::max(initializer_list<_Tp>, _Compare)'
 5716 |     max(initializer_list<_Tp> __l, _Compare __comp)
      |     ^~~
/usr/include/c++/14/bits/stl_algo.h:5716:5: note:   template argument deduction/substitution failed:
a.cc:22:14: note:   mismatched types 'std::initializer_list<_Tp>' and 'int'
   22 |   int x = max(n, p);
      |           ~~~^~~~~~
a.cc:3:5: note: candidate: 'int max(int, int*)'
    3 | int max(int n, int p[]){
      |     ^~~
a.cc:3:20: note:   no known conversion for argument 2 from 'std::vector<int>' to 'int*'
    3 | int max(int n, int p[]){
      |                ~~~~^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:14: error: cannot convert 'const __gnu_cxx::__normal_iterator<int*, std::vector<int> >' to 'int' in initialization
   15 |   int x = max(p.begin(), p.end());
      |           ~~~^~~~~~~~~~~~~~~~~~~~
      |              |
      |              const __gnu_cxx::__normal_iterator<int*, std::vector<int> >
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:15:17: error: request for member 'begin' in 'p', which is of non-class type 'int [n]'
   15 |   int x = max(p.begin(), p.end());
      |                 ^~~~~
a.cc:15:28: error: request for member 'end' in 'p', which is of non-class type 'int [n]'
   15 |   int x = max(p.begin(), p.end());
      |                            ^~~
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:8:12: error: array must be initialized with a brace-enclosed initializer
    8 |   int p[n]=k;
      |            ^
a.cc:12:17: error: request for member 'begin' in 'p', which is of non-class type 'int [n]'
   12 |   int x = max(p.begin(), p.end());
      |                 ^~~~~
a.cc:12:28: error: request for member 'end' in 'p', which is of non-class type 'int [n]'
   12 |   int x = max(p.begin(), p.end());
      |                            ^~~
Language: C

#include <stdio.h>
int main(void){
    int n,k,q,a,p[],i;
    scanf("%d%d%d",&n,&k,&q);
    for(i=0;i<q;i++){
        scanf("%d",&a);
        p[a-1]++;
    }
    for(i=0;i<n;i++){
        if(k+p[i]>q){
            printf("Yes\n");
        }
        else{
            printf("No\n");
        }
    }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:3:17: error: array size missing in 'p'
    3 |     int n,k,q,a,p[],i;
      |                 ^
Language: C

#include <stdio.h>
int main(void){
    int n,k,q,a,p[100000];
    scanf("%d%d%d",&n,&k,&q);
    int i;
    for(i=0;i<q;i++){
        scanf("%d",&a);
        p[a-1]++;
    }
    for(i=0;i<n;i++){
        if(k+p[i]>q){
            printf("Yes\n");
        }
        else{
            printf("No\n");
        }
    }
  retutn 0;
}

Compiler output:
main.c: In function 'main':
main.c:18:3: error: 'retutn' undeclared (first use in this function)
   18 |   retutn 0;
      |   ^~~~~~
main.c:18:3: note: each undeclared identifier is reported only once for each function it appears in
main.c:18:9: error: expected ';' before numeric constant
   18 |   retutn 0;
      |         ^~
      |         ;
Language: C++

N,K,Q = map(int,(input().split()))
A = []
H = []
for i in range(Q):
  A.append(int(input()))
for i in range(N):
  H.append(0)
for i in A:
  H[i-1] += 1
sumA = sum(H)
for i in range(N):
  if K - sumA + H[i] > 0:
    print("Yes")
  else:
    print("No")
  
  

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

#include<iostream>
#include<vector>

int main(void)
{
  int numberOfPerson = 0;
  int initialPoint = 0;
  int numberOfRound = 0;
  std::cin >> number >> initialPoint >> count;
  
  std::vector<int> pointList;
  pointList.resize(numberOfPerson);
  
  int person = 0;
  for(int count = 0; numberOfRound > count; ++count)
  {
    std::cin >> person;
    pointList[person] += 1;
  }
  
  for(const int point : pointList)
  {
    std::cout << (1 <= point - numberOfRound + initialPoint
                  ? "Yes" : "No") << std::endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: 'number' was not declared in this scope
    9 |   std::cin >> number >> initialPoint >> count;
      |               ^~~~~~
a.cc:9:41: error: 'count' was not declared in this scope
    9 |   std::cin >> number >> initialPoint >> count;
      |                                         ^~~~~
Language: C++

#include <iostream>
#include <vector>
#define rep(i,n) for (int i = 0;i<(n);i++)
using namespace std;

int main(){
  int N,K,Q;
  vector <int> A,B,C;
  rep(i,N){
    cin >> A[i];
  }
  cin >> K;
  rep(i,n) A[i] =  K;
  cin >> Q;
  rep(i,Q){
    cin >> B[i];
    C[i] = A[i] - B[i];
    if(C[i] > 0)
      cout << "Yes" << endl;
    if(C[i] < 0 || C[i] == 0)
      cout << "No" << endl;
  }
  return 0;
}
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'n' was not declared in this scope
   13 |   rep(i,n) A[i] =  K;
      |         ^
a.cc:3:36: note: in definition of macro 'rep'
    3 | #define rep(i,n) for (int i = 0;i<(n);i++)
      |                                    ^
Language: C++

#include <iostream>
#include <vector>
#define rep(i,n) for (int i = 0;i<n;i++)
using namespace std;

int main(){
  int N,K,Q;
  vector <int> A,B,C;
  rep(i,N){
    cin >> A[i];
  }
  cin >> K;
  rep(i,n) A[i] =  K;
  cin >> Q;
  rep(i,Q){
    cin >> B[i];
    C[i] = A[i] - B[i];
    if(C[i] > 0)
      cout << "Yes" << endl;
    if(C[i] < 0 || C[i] == 0)
      cout << "No" << endl;
  }
  return 0;
}
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:13:9: error: 'n' was not declared in this scope
   13 |   rep(i,n) A[i] =  K;
      |         ^
a.cc:3:35: note: in definition of macro 'rep'
    3 | #define rep(i,n) for (int i = 0;i<n;i++)
      |                                   ^
Language: C++

#include <iostream>
#define rep(i,n) for (int i = 0;i<n;i++)
using namespace std;

int main(){
  int N,K,Q;
  int A[],B[],C[];
  rep(i,N){
    cin >> A[i];
  }
  cin >> K;
  rep(i,n) A[i] =  K;
  cin >> Q;
  rep(i,Q){
    cin >> B[i];
    C[i] = A[i] - B[i];
    if(C[i] > 0)
      cout << "Yes" << endl;
    if(C[i] < 0 || C[i] == 0)
      cout << "No" << endl;
  }
  return 0;
}
  
  


Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: storage size of 'A' isn't known
    7 |   int A[],B[],C[];
      |       ^
a.cc:7:11: error: storage size of 'B' isn't known
    7 |   int A[],B[],C[];
      |           ^
a.cc:7:15: error: storage size of 'C' isn't known
    7 |   int A[],B[],C[];
      |               ^
a.cc:12:9: error: 'n' was not declared in this scope
   12 |   rep(i,n) A[i] =  K;
      |         ^
a.cc:2:35: note: in definition of macro 'rep'
    2 | #define rep(i,n) for (int i = 0;i<n;i++)
      |                                   ^
Language: C++

#include <iostream>
#difine rep(i,n) for (int i = 0;i<n;i++)
using namespace std;

int main(){
  int N,K,Q;
  int A[],B[],C[];
  rep(i,N){
    cin >> A[i];
  }
  cin >> K;
  rep(i,n) A[i] =  K;
  cin >> Q;
  rep(i,Q){
    cin >> B[i];
    C[i] = A[i] - B[i];
    if(C[i] > 0)
      cout << "Yes" << endl;
    if(C[i] < 0 || C[i] == 0)
      cout << "No" << endl;
  }
  return 0;
}
  
  

Compiler output:
a.cc:2:2: error: invalid preprocessing directive #difine; did you mean #define?
    2 | #difine rep(i,n) for (int i = 0;i<n;i++)
      |  ^~~~~~
      |  define
a.cc: In function 'int main()':
a.cc:7:7: error: storage size of 'A' isn't known
    7 |   int A[],B[],C[];
      |       ^
a.cc:7:11: error: storage size of 'B' isn't known
    7 |   int A[],B[],C[];
      |           ^
a.cc:7:15: error: storage size of 'C' isn't known
    7 |   int A[],B[],C[];
      |               ^
a.cc:8:7: error: 'i' was not declared in this scope
    8 |   rep(i,N){
      |       ^
a.cc:8:3: error: 'rep' was not declared in this scope
    8 |   rep(i,N){
      |   ^~~
a.cc:12:9: error: 'n' was not declared in this scope
   12 |   rep(i,n) A[i] =  K;
      |         ^
Language: Java

package abc141;
import java.util.*;
public class C {

	public static void main(String[] args) {
		// TODO Auto-generated method stub
		Scanner sc=new Scanner(System.in);
		int n,k,q;
		n=sc.nextInt();
		k=sc.nextInt();
		q=sc.nextInt();
		int p[]=new int[n];
		for(int i=0;i<n;i++) {
			p[i]=k-q;
		}
		for(int i=0;i<q;i++) {
			int a=sc.nextInt()-1;
			p[a]++;
		}
		for(int i=0;i<n;i++) {
			if(p[i]>0)System.out.println("Yes");
			else System.out.println("No");
		}
	}

}


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