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

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

char od[3] = ['R', 'U', 'D'];
char ev[3] = ['L', 'U', 'D'];

int main(){
	string s;
	cin >> s;
	for(int i=0;i<s.length();i++){
		int fl = 0;
		if((i+1) % 2 == 0){
			for(int j=0;j<3;j++){
				if(s[i] == od[j]) fl = 1;
			}
		}else{
			for(int j=0;j<3;j++){
				if(s[i] == ev[j]) fl = 1;
			}
		}
		if(fl == 0){
			cout << "NO" << endl;
			return 0;
		}
	}
	cout << "YES" << endl;
	return 0;
}

Compiler output:
a.cc:6:15: error: expected identifier before 'R'
    6 | char od[3] = ['R', 'U', 'D'];
      |               ^~~
a.cc:6:18: error: expected ']' before ',' token
    6 | char od[3] = ['R', 'U', 'D'];
      |                  ^
      |                  ]
a.cc: In lambda function:
a.cc:6:18: error: expected '{' before ',' token
a.cc: At global scope:
a.cc:6:14: error: array must be initialized with a brace-enclosed initializer
    6 | char od[3] = ['R', 'U', 'D'];
      |              ^~~~
a.cc:6:20: error: expected unqualified-id before 'U'
    6 | char od[3] = ['R', 'U', 'D'];
      |                    ^~~
a.cc:7:15: error: expected identifier before 'L'
    7 | char ev[3] = ['L', 'U', 'D'];
      |               ^~~
a.cc:7:18: error: expected ']' before ',' token
    7 | char ev[3] = ['L', 'U', 'D'];
      |                  ^
      |                  ]
a.cc: In lambda function:
a.cc:7:18: error: expected '{' before ',' token
a.cc: At global scope:
a.cc:7:14: error: array must be initialized with a brace-enclosed initializer
    7 | char ev[3] = ['L', 'U', 'D'];
      |              ^~~~
a.cc:7:20: error: expected unqualified-id before 'U'
    7 | char ev[3] = ['L', 'U', 'D'];
      |                    ^~~
Language: C++

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

int main() {
  int t=0;
  string s;
  cin >> s;
  for(int i=0;i<s.size();i++){
    if(i%2==0 && s.at(i)=='L') t++;
    if(i%2==1 && s.at(i)=='R') t++;
    if(s.at(i)=='U' || s.at(i)=='D') t++
  } 
  if(t>0) cout << "Yes" <<endl;
  else  cout << "No" <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:41: error: expected ';' before '}' token
   11 |     if(s.at(i)=='U' || s.at(i)=='D') t++
      |                                         ^
      |                                         ;
   12 |   }
      |   ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long
int main()
{
    char a[100+5];
    gets(a+1);
    int flag=1;
    for(int i=1;i<=strlen(a);i++)
    {
        if(i%2==1&&a[i]=='L')
        {
            flag=0;
            break;
        }
        if(i%2==0&&a[i]=='R')
        {
            flag=0;
            break;
        }

    }
    if(flag==1)
        printf("Yes\n");
    else
        printf("No\n");
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:7:5: error: 'gets' was not declared in this scope; did you mean 'getw'?
    7 |     gets(a+1);
      |     ^~~~
      |     getw
Language: C++

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

int main() {
string S;
  for(int i=0;i<N;i++){
    if(i%2==0){
      if(S.at(i)=='L'){
        cout<<"No"<<endl;
      goto l;
      }
    }
    if(i%2!=0){
      if(S.at(i)=='R'){
        cout<<"No"<<endl;
      goto l;
      }
    }
  }
  cout<<"Yes"<<endl;
  l;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 'N' was not declared in this scope
    6 |   for(int i=0;i<N;i++){
      |                 ^
a.cc:21:3: error: 'l' was not declared in this scope
   21 |   l;
      |   ^
a.cc:10:12: error: label 'l' used but not defined
   10 |       goto l;
      |            ^
Language: C++

#include "bits/stdc++.h"
using namespace std;
#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 ALL(x) (x).begin(), (x).end()
#define SZ(x) ((int)(x).size)
#define MOD 1000000007
const long long mod = 1e9+7;
typedef vector<long long> Vl;
typedef vector<double> VI;  // VI a(n);
typedef vector<string> VS;  
typedef vector<VS> VSS;  
typedef vector<VI> VVI;   // VVI a(n,vector<int>(m)) n * m 
typedef vector<Vl> VVl;
typedef pair<int, int> PII;
typedef long long ll;  //ll とdoubleは違う
// cout << << endl;
// cin >> ;
int main(){
    ll a,b,c=0,d=0,k=0,n,h,w,m,ans=0;
    string s,s2;
    cin >> s;
    bool f=true;

    rep(i,s.size()){
        if(i%2==0){
            if((s[i]=='R'||s[i]=='U'||s[i]=='D')){
            }
            else {
                f = false;
            }
            
        } 
        else {
            if(s[i]=='L'||s[i]=='U'||s[i]=='D'){
            }
            else {
                f =false;
        }
    }
    if(f) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}

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

STR = [s for s in input()] 
k = 0
for i in range((len(STR)+1)//2  ):
    if STR[i*2] == "L":
        k = 1
    else:
        pass 
for i in range((len(STR))//2  ):
    if STR[i*2+1] == "R":
        k = 1
    else:
        pass 

if k == 0:
    print("Yes") 
else:
    print("No")
    

Compiler output:
a.cc:1:1: error: 'STR' does not name a type
    1 | STR = [s for s in input()]
      | ^~~
Language: C++

#include<bits/stdc++.h>
#define ios ios_base::sync_with_stdio(0);cin.tie(0);
using namespace std ;
typedef long long int ll ;


int main(){
	ios;
	string s;
	cin>>s;
	for(int i=0; i<s.size(); i++){
		if((i+1)%2==1){
			if(s[i]=='R'||s[i]=='U'||s[i]=='D'){
				continue;
			}
			else{
				cout<<"No\n";
				return 0;
			}
		}
		else{
			if(s[i]=='L'||s[i]=='U'||s[i]=='D'){
				continue;
			}
			else{
				cout<<i"No\n";
				return 0;
			}
		} 
	}
	cout<<"Yes\n";
	return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:26:40: error: expected ';' before string constant
   26 |                                 cout<<i"No\n";
      |                                        ^~~~~~
      |                                        ;
Language: C++

#include <bits/stdc++.h>
using namespace std;
using ll= long long;
using vi= vector<int>;
using vvi= vector<vi>;
#define REP(i,x,n) for(int i=x; i<n; i++)
#define rep(i,n) REP(i,0,n)
#define all(x) x.begin(), x.end()

int main(){
  bool ans=1;
  string s;
  cin >> s;

  rep(i,s.size()){
    if((i+1)%2){
      if(s[i]=='L') bool=0;
    }
    else{
      if(s[i]=='R') bool=0;
    }
  }
  if(bool)  cout << "Yes" << endl;
  else cout << "No" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:25: error: expected unqualified-id before '=' token
   17 |       if(s[i]=='L') bool=0;
      |                         ^
a.cc:20:25: error: expected unqualified-id before '=' token
   20 |       if(s[i]=='R') bool=0;
      |                         ^
a.cc:23:10: error: expected unqualified-id before ')' token
   23 |   if(bool)  cout << "Yes" << endl;
      |          ^
Language: C++

#include <iostream>
using namespace std;

int main() {
	char a[101];
	int k = 0;
	for(int i=1; i!=n; i++){
		cin >> a[i];
		if(a[i] == 'L' || a[i] == 'R' || a[i] == 'U' || a[i] == 'D'){
			if(i % 2 == 1){
				if(a[i] == 'L'){
					k = 1;
					break;
				}
			}else{
				if(a[i] == 'R'){
					k = 1;
					break;
				}
			}
		}else{
			break;
		}
	}
	if(k == 0){
		cout << "Yes\n";
	}else{
		cout << "No\n";
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:25: error: 'n' was not declared in this scope
    7 |         for(int i=1; i!=n; i++){
      |                         ^
Language: C++

#include<iostream>
#include<algorithm>
#include<cmath>
#include<map>
#include<stdio.h>
#include<vector>
using namespace std;
#define rep(s,i,n) for(int i=s;i<n;i++)
#define c(n) cout<<n<<endl;
#define ic(n) int n;cin>>n;
#define sc(s) string s;cin>>s;
#define mod 1000000007
#define F first
#define s second
#define int long long		
int x[214514];
string y[214514];
char z[214514];
int sum[214514];
signed main(){
	sc(s)
	int n=s.size();
	int sum=0;
	rep(0,i,n){
		if(i%2==0){
			if(s[i]=='R'||s[i]=='U'||s[i]=='D'){
				sum++;
			}	
		}
		else{
			if(s[i]=='L'x||s[i]=='U'||s[i]=='D'){					
				sum++;
			}
		}
	}
	if(sum==n)c("Yes")
	else c("No")
}				

Compiler output:
a.cc: In function 'int main()':
a.cc:31:34: error: unable to find character literal operator 'operator""x' with 'char' argument
   31 |                         if(s[i]=='L'x||s[i]=='U'||s[i]=='D'){
      |                                  ^~~~
Language: C++

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

int main() {
  string S;
  cin>>S;
  int x;
  x=S.size();
  int answer;
  answer=1;
  for(int i=0;i<x;i+=2){
    if(S.at(i)=="L"){
      answer=0;
    }
  }
  for(int i=1;i<x;i+=2){
    if(S.at(i)=="R"){
      answer=0;
    }
  }
  if(answer=1){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if(S.at(i)=="L"){
      |        ~~~~~~~^~~~~
a.cc:17:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |     if(S.at(i)=="R"){
      |        ~~~~~~~^~~~~
Language: C++

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

int main(){
  string a;
  cin >>a;
  int b =asize();
  int ans1 =0;
for(int i =0;i<b;i+=2){
if(a.at(i)=='L'){
ans1 ++;
  break;
}
}
  
  for(int i =1;i<b;i+=2){
  if(a.at(i)=='R'){
  ans1 ++;
    break;
  }
  }
  
  if(ans1==0) cout <<"Yes";
  else cout <<"No";
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:10: error: 'asize' was not declared in this scope; did you mean 'dysize'?
    8 |   int b =asize();
      |          ^~~~~
      |          dysize
Language: C++

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

int main() {
  string s;
  cin >> s; 
    if(i%2==0 && s.at(i)=='L') cout << "Yes" <<endl;
    if(i%2==1 && s.at(i)=='R') cout << "Yes" <<endl;
    if(s.at(i)=='U' || s.at(i)=='D') cout << "Yes" <<endl;
    else cout << "No" << endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'i' was not declared in this scope
    7 |     if(i%2==0 && s.at(i)=='L') cout << "Yes" <<endl;
      |        ^
a.cc:8:8: error: 'i' was not declared in this scope
    8 |     if(i%2==1 && s.at(i)=='R') cout << "Yes" <<endl;
      |        ^
a.cc:9:13: error: 'i' was not declared in this scope
    9 |     if(s.at(i)=='U' || s.at(i)=='D') cout << "Yes" <<endl;
      |             ^
Language: C++

#include<iostream>
#include<string>
using namespace std;
using I=logn long;
#define rep(i,n) for(I i=0;i<n;++i)
bool check(){
  string s;
  cin>>s;
  rep(i,s.size()){
    if(i%2){
      if(s[i]=='R')return false;}
    else{
      if(s[i]=='L')return false;}
  }
  return true;
}
int main(){
  cout<<(check()?"Yes":"No")<<endl;
}

Compiler output:
a.cc:4:9: error: 'logn' does not name a type; did you mean 'long'?
    4 | using I=logn long;
      |         ^~~~
      |         long
a.cc: In function 'bool check()':
a.cc:5:22: error: 'I' was not declared in this scope
    5 | #define rep(i,n) for(I i=0;i<n;++i)
      |                      ^
a.cc:9:3: note: in expansion of macro 'rep'
    9 |   rep(i,s.size()){
      |   ^~~
a.cc:9:7: error: 'i' was not declared in this scope
    9 |   rep(i,s.size()){
      |       ^
a.cc:5:28: note: in definition of macro 'rep'
    5 | #define rep(i,n) for(I i=0;i<n;++i)
      |                            ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define SPEED ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define ll long long
#define fi first
#define se second
#define mp make_pair
#define pb push_back
#define eb emplace_back
int main()
{
	SPEED
	string s;
	cin >> s;
	bool flag = false;
	bool flag2 = false;
	for (int i = 0; i < s.size(); i+=2)
	{
		if (s[i]=="L")
		{
			flag=true;
			break;
		}
	}
	for (int i = 1; i < s.size(); i+=2)
	{
		if (s[i]=="R")
		{
			flag2=true;
			break;
		}
	}
	if (flag || flag2)
	{
		cout << "No";
	}
	else
	{
		cout << "Yes";
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |                 if (s[i]=="L")
a.cc:27:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   27 |                 if (s[i]=="R")
Language: C++

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

int main() {
  string s;
  cin >> s; 
    if(i%2==0 && s.at(i)=='L') cout << Yes <<endl;
    if(i%2==1 && s.at(i)=='R') cout << Yes <<endl;
    if(s.at(i)=='U' || s.at(i)=='D') cout << Yes <<endl;
    else cout << No << endl;
  
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'i' was not declared in this scope
    7 |     if(i%2==0 && s.at(i)=='L') cout << Yes <<endl;
      |        ^
a.cc:7:40: error: 'Yes' was not declared in this scope
    7 |     if(i%2==0 && s.at(i)=='L') cout << Yes <<endl;
      |                                        ^~~
a.cc:8:8: error: 'i' was not declared in this scope
    8 |     if(i%2==1 && s.at(i)=='R') cout << Yes <<endl;
      |        ^
a.cc:8:40: error: 'Yes' was not declared in this scope
    8 |     if(i%2==1 && s.at(i)=='R') cout << Yes <<endl;
      |                                        ^~~
a.cc:9:13: error: 'i' was not declared in this scope
    9 |     if(s.at(i)=='U' || s.at(i)=='D') cout << Yes <<endl;
      |             ^
a.cc:9:46: error: 'Yes' was not declared in this scope
    9 |     if(s.at(i)=='U' || s.at(i)=='D') cout << Yes <<endl;
      |                                              ^~~
a.cc:10:18: error: 'No' was not declared in this scope
   10 |     else cout << No << endl;
      |                  ^~
Language: C++

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

int main() {
  string S;
  cin>>S;
  int x;
  x=S.size();
  int answer;
  answer=;
  for(int i=0;i<x;i+=2){
    if(S.at(i)=="L"){
      answer=0;
    }
  }
  for(int i=1;i<x;i+=2){
    if(S.at(i)=="R"){
      answer=0;
    }
  }
  if(answer=1){
    cout<<"Yes"<<endl;
  }
  else{
    cout<<"No"<<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: expected primary-expression before ';' token
   10 |   answer=;
      |          ^
a.cc:12:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |     if(S.at(i)=="L"){
      |        ~~~~~~~^~~~~
a.cc:17:15: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   17 |     if(S.at(i)=="R"){
      |        ~~~~~~~^~~~~
Language: C++

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

int main() {
  string S;
  cin >> S;
  bool ans;
  ans = true;
  int N;
  N = S.size();
  for (int i = 0; i < N; i += 2) {
    if (S.at(i) == 'L') {
      ans = false;
    }
  }
  for (int i = 1; i < N; i += 2) {
    if (S.at(i) == 'R') {
      ans = false;
    }
  }
  if (ans == ture) {
    cout << "Yes" << endl;
  }
  else {
    cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:14: error: 'ture' was not declared in this scope
   21 |   if (ans == ture) {
      |              ^~~~
Language: C++

n= input()
f = True
for i,c in enumerate(n):
    if i%2==0: #奇数
        if c == 'L':
            f = False
    else:
        if c == 'R':
            f = False

if f:
    print('Yes')
else:
    print('No')

Compiler output:
a.cc:4:16: error: stray '#' in program
    4 |     if i%2==0: #奇数
      |                ^
a.cc:12:11: warning: multi-character character constant [-Wmultichar]
   12 |     print('Yes')
      |           ^~~~~
a.cc:14:11: warning: multi-character character constant [-Wmultichar]
   14 |     print('No')
      |           ^~~~
a.cc:1:1: error: 'n' does not name a type
    1 | n= input()
      | ^
Language: C++

#include <iostream>
#include <string>
#include <vector>
#include <math.h>
#include <stdio.h>
#include <algorithm>
#include <utility>
#include <functional>
#include <map>
#include <set>
#include <queue>
#include <list>
#define rep(i,n) for(int i=0;i<(n);i++)
#define REP(i,a,b) for(int i=int(a);i<int(b);++i)
#define crep(i) for(char i='a';i<='z';i++)
#define psortsecond(A,N) sort(A,A+N,[](const pii &a, const pii &b){return a.second<b.second;});
#define psortfirst(A,N) sort(A,A+N,[](const pii &a, const pii &b){return a.first<b.first;});
#define ALL(x) (x).begin(),(x).end()
int ctoi(const char c){
  if('0' <= c && c <= '9') return (c-'0');
  return -1;
}
using namespace std;
using pii  = pair<int,int>;
long long gcd(long long a, long long b){return (b == 0 ? a : gcd(b, a%b));}
long long lcm(long long a, long long b){return a*b/gcd(a,b);}
typedef long long ll;
#define MOD 1000000007
#define EPS 10e-8

int main(){
    char A[107];
    cin >> A;
    rep(i,strlen(A)){
        if((i%2==0 && A[i]=='L')||(i%2==1 && A[i]=='R')){
            cout << "No" << endl;
            return 0;
        }
    }
    cout << "Yes"  << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:11: error: 'strlen' was not declared in this scope
   34 |     rep(i,strlen(A)){
      |           ^~~~~~
a.cc:13:33: note: in definition of macro 'rep'
   13 | #define rep(i,n) for(int i=0;i<(n);i++)
      |                                 ^
a.cc:13:1: note: 'strlen' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
   12 | #include <list>
  +++ |+#include <cstring>
   13 | #define rep(i,n) for(int i=0;i<(n);i++)
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (ll i = (a); i < (b); i++)
#define rep2(r, aa, bb) for (ll r = (aa)-1; r >= (bb); r--)
#define be(x) (x.begin(), x.end())
#define pb(t) push_back(t)
#define ll long long
int main()
{
	string s;
	cin>>s;
	rep(i,0,s.size())
	{
		if(i%2==0)
		{
			if(s[i]=="R"||s[i]=="D"||s[i]=="U")
				continue;
		}
		else
		{
			if(s[i]=="L"||s[i]=="U"||s[i]=="D")
				continue;
		}
		cout<<"No";
		return 0;
	}
	cout<<"Yes";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |                         if(s[i]=="R"||s[i]=="D"||s[i]=="U")
a.cc:16:43: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |                         if(s[i]=="R"||s[i]=="D"||s[i]=="U")
a.cc:16:54: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |                         if(s[i]=="R"||s[i]=="D"||s[i]=="U")
a.cc:21:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |                         if(s[i]=="L"||s[i]=="U"||s[i]=="D")
a.cc:21:43: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |                         if(s[i]=="L"||s[i]=="U"||s[i]=="D")
a.cc:21:54: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |                         if(s[i]=="L"||s[i]=="U"||s[i]=="D")
Language: C++

#include <bits/stdc++.h>
#include <climits>
#define rep(i, begin, end) for (__typeof(end) i = (begin) - ((begin) > (end)); i != (end) - ((begin) > (end)); i += 1 - 2 * ((begin) > (end)))
#define srep(i, begin, end) for (__typeof(end) i = begin; i != end; i++)
#define si(x) int x = scanInt();
#define sll(x) LL x = scanLong();
#define sci(x) int x; scanf("%d", &x);
#define scll(x) LL x; scanf("%lld", &x);
#define pi(x) printf("%d ", x)
#define pll(x) printf("%lld ", x)
#define nl printf("\n")
#define clr(a) memset(a, 0, sizeof(a))
#define PB push_back
#define MP make_pair
using namespace std;
typedef unsigned int UI; // 32 bit integer
typedef long int LI; // 32 bit integer
typedef unsigned long int ULI; // 32 bit unsigned integer
typedef long long int LL; // 64 bit integer
typedef unsigned long long int ULL; // 64 bit unsigned integer
typedef long double LD;
typedef vector<int> VI;
typedef vector<LL> VLL;
typedef deque<int> DI;
typedef deque<LL> DLL;
typedef pair<int, int> PII;
typedef pair<LL, LL> PLL;
const LL MOD = 1e9+7;

/* Fast I/O */
inline int scanInt() {
	int n = 0;
	char ch = getchar();
	int sign = 1;
	while(ch < '0' || ch > '9') {
		if(ch == '-')	sign = -1;
		ch = getchar();
	}
	while(ch >= '0' && ch <= '9') {
		n = (n<<1)+(n<<3)+(int)(ch-'0');
		ch = getchar();
	}
	return n*sign;
}

inline LL scanLong() {
	LL n = 0;
	char ch = getchar();
	LL sign = 1;
	while(ch < '0' || ch > '9') {
		if(ch == '-')	sign = -1;
		ch = getchar();
	}
	while(ch >= '0' && ch <= '9') {
		n = (n<<1)+(n<<3)+(LL)(ch-'0');
		ch = getchar();
	}
	return n*sign;
}

int main() {
	string s; cin >> s;
	string ans = "Yes";
	rep(i, 1, n+1) {
		if(i%2 == 1 && s[i-1] == 'L')	ans = "No";
		if(i%2 == 0 && s[i-1] == 'R')	ans = "No";
	}
	cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:64:19: error: 'n' was not declared in this scope
   64 |         rep(i, 1, n+1) {
      |                   ^
a.cc:3:42: note: in definition of macro 'rep'
    3 | #define rep(i, begin, end) for (__typeof(end) i = (begin) - ((begin) > (end)); i != (end) - ((begin) > (end)); i += 1 - 2 * ((begin) > (end)))
      |                                          ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i, a, b) for (ll i = (a); i < (b); i++)
#define rep2(r, aa, bb) for (ll r = (aa)-1; r >= (bb); r--)
#define be(x) (x.begin(), x.end())
#define pb(t) push_back(t)
#define ll long long
int main()
{
	string s;
	cin>>s;
	rep(i,0,s.size())
	{
		if(i%2)
		{
			if(s[i]=="R"||s[i]=="D"||s[i]=="U")
				continue;
		}
		else
		{
			if(s[i]=="L"||s[i]=="U"||s[i]=="D")
				continue;
		}
		cout<<"No";
		return 0;
	}
	cout<<"Yes";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |                         if(s[i]=="R"||s[i]=="D"||s[i]=="U")
a.cc:16:43: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |                         if(s[i]=="R"||s[i]=="D"||s[i]=="U")
a.cc:16:54: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   16 |                         if(s[i]=="R"||s[i]=="D"||s[i]=="U")
a.cc:21:32: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |                         if(s[i]=="L"||s[i]=="U"||s[i]=="D")
a.cc:21:43: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |                         if(s[i]=="L"||s[i]=="U"||s[i]=="D")
a.cc:21:54: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |                         if(s[i]=="L"||s[i]=="U"||s[i]=="D")
Language: C++

#include<bits/stdc++.h>
#include<iomanip>
#include<numeric>

using namespace std;
using ll = long long;
using ull = unsigned long long;
constexpr int mo = 1e9+7;
constexpr int  mod = mo;
constexpr int inf = 1<<30;
constexpr ll infl = 1ll<<62;

int main(){
    string str;
    cin>>str;
    bool ok = true;
    for(int i=0;i<(int)str.size();++i){
        if(i%2){
            if(!(str[i] == "R" or str[i] == "U" or str[i] == "D"))ok = false;
        }else {
            if(!(str[i] == "L" or str[i] == "U" or str[i] == "D"))ok = false;
        }
    }
    if(ok) cout << "Yes" << endl;
    else cout << "No" << endl;
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:19:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |             if(!(str[i] == "R" or str[i] == "U" or str[i] == "D"))ok = false;
a.cc:19:42: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |             if(!(str[i] == "R" or str[i] == "U" or str[i] == "D"))ok = false;
a.cc:19:59: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |             if(!(str[i] == "R" or str[i] == "U" or str[i] == "D"))ok = false;
a.cc:21:25: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |             if(!(str[i] == "L" or str[i] == "U" or str[i] == "D"))ok = false;
a.cc:21:42: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |             if(!(str[i] == "L" or str[i] == "U" or str[i] == "D"))ok = false;
a.cc:21:59: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   21 |             if(!(str[i] == "L" or str[i] == "U" or str[i] == "D"))ok = false;
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 all(x) (x).begin(),(x).end()

int main() {
  string s; cin >> s;
  bool flag = true;
  for (int i = 0; i < n; i ++) {
    if (i % 2 == 0 && s[i] == 'L') flag = false;
    if (i % 2 == 1 && s[i] == 'R') flag = false;
  }
  if (flag) {
    cout << "Yes" << endl;
  } else {
    cout << "No" << endl;
  }
}

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

#include <bits/stdc++.h>

using namespace std;
int n, k, q, t, a[105][105];

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: lvalue required as increment operand
   10 |                 a[t] ++;
      |                 ~~~^
a.cc:13:26: error: invalid operands of types 'int' and 'int [105]' to binary 'operator-'
   13 |                 if (k-(q - a[i])>0){
      |                        ~ ^ ~~~~
      |                        |      |
      |                        int    int [105]
a.cc:18:2: error: expected '}' at end of input
   18 | }
      |  ^
a.cc:6:13: note: to match this '{'
    6 | int main () {
      |             ^
Language: C++

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

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

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:9:19: error: expected unqualified-id before '=' token
    9 |         for (int  = 0; i < q; i++) {
      |                   ^
a.cc:9:17: error: expected ';' before '=' token
    9 |         for (int  = 0; i < q; i++) {
      |                 ^ ~
      |                 ;
a.cc:9:19: error: expected primary-expression before '=' token
    9 |         for (int  = 0; i < q; i++) {
      |                   ^
a.cc:9:24: error: 'i' was not declared in this scope
    9 |         for (int  = 0; i < q; i++) {
      |                        ^
a.cc:9:29: error: expected ')' before ';' token
    9 |         for (int  = 0; i < q; i++) {
      |             ~               ^
      |                             )
a.cc:9:31: error: 'i' was not declared in this scope
    9 |         for (int  = 0; i < q; i++) {
      |                               ^
Language: C++

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

int main() {
  cin.tie(nullptr);
  ios_base::sync_with_stdio(false);
  
  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) cout << "No" << endl;
    else cout << "Yes" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: request for member 'k' in 'n', which is of non-class type 'int'
   13 |   vector<int> p(n. k-q);
      |                    ^
Language: C++

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

int main() {
  cin.tie(nullptr);
  ios_base::sync_with_stdio(false);
  
  int n, k, q;
  cin >> n >> k >> q;
  vector<int> p(n. q-k);
  rep(i, q) {
    int a;
    cin >> a;
    --a;
    ++p[a];
  }
  rep(i, n) {
    if(p[i] <= 0) cout << "No" << endl;
    else cout << "Yes" << endl;
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:20: error: request for member 'q' in 'n', which is of non-class type 'int'
   13 |   vector<int> p(n. q-k);
      |                    ^
Language: C++

#include <iostream>
using namespace std;

int main() {
	long long N, M, K; cin >> N >> M >> K;
	vector<long long>A(N, M);
	for (long long i = 0; i < K; i++) {
		long long B; cin >> B;
		for (long long j = 0; j < N; j++) {
			if (B - 1 != j) A.at(j)--;
		}
	}
	for (long long i = 0; i < N; i++) {
		cout << (A.at(i) > 0 ? "Yes" : "No") << endl;
	}
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:9: error: 'vector' was not declared in this scope
    6 |         vector<long long>A(N, M);
      |         ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:6:16: error: expected primary-expression before 'long'
    6 |         vector<long long>A(N, M);
      |                ^~~~
a.cc:10:41: error: 'A' was not declared in this scope
   10 |                         if (B - 1 != j) A.at(j)--;
      |                                         ^
a.cc:14:26: error: 'A' was not declared in this scope
   14 |                 cout << (A.at(i) > 0 ? "Yes" : "No") << endl;
      |                          ^
Language: Java

import java.util.*;
public 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[] a = new int[n];
        for(int i = 0; i < a.length; ++i){
          a[i] = k;
        }
      	while(sc.hasNext()){
          int num = sc.nextInt();
          int next = num - 1;
          a[next] += 1;
        }
      	for(int i = 0; i < a.length; ++i){
        a[i] = a[i] -q;
        }
        if(a[i] > 0){
        	System.out.println("Yes");
        }else{
         System.out.println("No"); 
        }
     }
}


Compiler output:
Main.java:22: error: cannot find symbol
        if(a[i] > 0){
             ^
  symbol:   variable i
  location: class Main
1 error
Language: Java

import java.util.*;
public 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[] a = new int[n];
        for(int i = 0; i < a.length; ++i){
          a[i] = k;
        }
      	while(sc.hasNext()){
          int num = sc.nextInt();
          int next = num - 1;
          a[next] += 1;
        }
      for(int i = 0; i < a.length; ++i){
        a[i] = a[i] -q;
        if(a[i] > 0){
        	System.out.println("Yes");
        }else{
         System.out.println("No"); 
        }
     }
}

Compiler output:
Main.java:27: error: reached end of file while parsing
}
 ^
1 error
Language: Java

import java.util.*;
 
public 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[] A = new int[Q];
       int[] count = new int[N+1];    
       
       for(int i = 0; i < Q; ++i) {
           A[i] = sc.nextInt(); 
           count A[i]++;
       }
       
       for(int j = 0; j < N; ++j) {
            if(K - Q + count[j] > 0) {
                System.out.println("Yes");
            } else {
               System.out.println("No");
            }
       }
    }
}

Compiler output:
Main.java:16: error: ']' expected
           count A[i]++;
                   ^
Main.java:16: error: ';' expected
           count A[i]++;
                    ^
2 errors
Language: C

#ifndef LOCAL
#pragma GCC optimize("O3")
#include <bits/stdc++.h>
#else
#include <iostream>
#include <iomanip> 
#include <sstream>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <memory>
#include <cctype>
#include <cstring>
#include <vector>
#include <list>
#include <queue>
#include <deque>
#include <stack>
#include <map>
#include <set>
#include <algorithm>
#include <numeric>
#include <unordered_map>
#include <unordered_set>
#endif
using namespace std;
#define sim template < class c
#define ris return * this
#define dor > debug & operator <<
#define eni(x) sim > typename enable_if<sizeof dud<c>(0) x 1, debug&>::type operator<<(c i) {
sim > struct rge { c b, e; }; sim > rge<c> range(c i, c j) { return rge<c>{i, j}; } sim > auto dud(c* x) -> decltype(cerr << *x, 0); sim > char dud(...);
struct debug {
#ifdef LOCAL
~debug() { cerr << endl; } eni(!=) cerr << boolalpha << i; ris; } eni(==) ris << range(begin(i), end(i)); } sim, class b dor(pair < b, c > d) { ris << "(" << d.first << ", " << d.second << ")"; } sim dor(rge<c> d) { *this << "["; for (auto it = d.b; it != d.e; ++it) *this << ", " + 2 * (it == d.b) << *it; ris << "]"; }
#else
sim dor(const c&) { ris; }
#endif
};
#define imie(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "

// #include <ext/pb_ds/assoc_container.hpp> 
// #include <ext/pb_ds/tree_policy.hpp> 
// using namespace __gnu_pbds; 
// #define ordered_set tree<int, null_type,less<int>, rb_tree_tag,tree_order_statistics_node_update> 

template<typename T> void setmax(T& x, T y) {x = max(x, y);}
template<typename T> void setmin(T& x, T y) {x = min(x, y);}
#define fix(a) fixed << setprecision(a)
#define forn(i, n) for (int i = 0; i < int(n); i++)
#define rep(i, a, b) for (int i = int(a); i < int(b); i++)
#define all(V) V.begin(), V.end()
#define rall(V) V.rbegin(), V.rend()
#define len(V) (int)V.size()
#define ll long long
#define ld long double
#define ff first
#define ss second
#define pb push_back
#define mp make_pair
#define endl '\n'



void solve(){
  int n, k, q;
  cin >> n >> k >> q;
  vector<int> m(n);
  forn(i,q){
    int a;
    cin >> a;
    a--;
    m[a]++;
  }
  rep(i,0,n){
    if(k+m[i]-q <= 0){
      cout << "No" << endl;
    } else {
      cout << "Yes" << endl;
    }
  }
}

int main() {
  ios::sync_with_stdio(false); 
  // cin.tie(0); cout.tie(0);
  int t = 1;
  // cin >> t;
  forn(i, t){
    solve();
  }
}

/* 




*/

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

//バケット法で解決
#include <bits/stdc++.h>
using namespace std;

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

Compiler output:
a.cc: In function 'int main()':
a.cc:14:11: error: invalid types 'long long int[int]' for array subscript
   14 |     if(k-a[i]>0) cout << "Yes" << endl;
      |           ^
Language: Java

import java.util.Arrays;
import java.util.Scanner;

public class AttackSurvival2 {

	public static void main(String[] args) {

		Scanner sc = new Scanner(System.in);
		final int PARTICIPANTS_COUNT;
		final int DEFAULT_POINTS;
		final int CORRECT_COUNT;

		//初期情報（参加者数、初期所持ポイント、全体正解数）を取得する
		String[] strArrIniInfo = sc.nextLine().split("[ ]+");

		//入力チェック
		if(strArrIniInfo.length != 3) {
			System.out.println("入力が不正です。");
			return;
		}

		//参加者をセットする
		PARTICIPANTS_COUNT = Integer.parseInt(strArrIniInfo[0]);

		//初期所持ポイントをセットする
		DEFAULT_POINTS = Integer.parseInt(strArrIniInfo[1]);

		//全体正解数をセットする
		CORRECT_COUNT = Integer.parseInt(strArrIniInfo[2]);

		//参加者ステータスを初期化する
		int[] intArrParticipantsStatus = new int[PARTICIPANTS_COUNT];
		Arrays.fill(intArrParticipantsStatus, DEFAULT_POINTS);

		int intCorrectPersonNo = 0;
		for(int i = 1; i <= CORRECT_COUNT; i++) {

			//正解者No.を取得する
			intCorrectPersonNo = sc.nextInt();

			//正解者以外のポイントを下げる
			for(int j = 0; j < intArrParticipantsStatus.length; j++) {
				if(j == intCorrectPersonNo - 1) {
					continue;
				}
				else {
					intArrParticipantsStatus[j]--;
				}
			}
		}

		//結果を出力する
		System.out.println("\n" + "--------------- 結果 ---------------");
		for (int i = 0; i < intArrParticipantsStatus.length; i++) {
			if(intArrParticipantsStatus[i] <= 0) {
				System.out.println("No");
			}
			else {
				System.out.println("Yes");
			}
		}

	}
}


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

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

int main() {
  int N,K,Q;
  cin >> N,K,Q;
  vector<int> A(Q);
   for (int i = 0; i < Q; i++) {
     cin >> A.at(i);
    }
  vector<int>B(N);
   for(int j= 0; j < N; j++){
     B.at(j)=K-Q;
   }
  for(int p = 0; p < Q; p++){
    B.at(A.at(p))++;
  }
  for(int k=0; k<N; k++){
    if(B.at(k)==K-Q){
      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:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: C++

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


Compiler output:
a.cc:18:24: error: expected declaration before '}' token
   18 |     cout<<"No"<<endl;}}}
      |                        ^
Language: C++

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


Compiler output:
a.cc:3:7: error: expected nested-name-specifier before 'long'
    3 | using long long = ll;
      |       ^~~~
a.cc: In function 'int main()':
a.cc:5:5: error: 'll' was not declared in this scope
    5 |     ll N,K,Q;
      |     ^~
a.cc:6:10: error: 'N' was not declared in this scope
    6 |     cin>>N>>K>>Q;
      |          ^
a.cc:6:13: error: 'K' was not declared in this scope
    6 |     cin>>N>>K>>Q;
      |             ^
a.cc:6:16: error: 'Q' was not declared in this scope
    6 |     cin>>N>>K>>Q;
      |                ^
a.cc:13:5: error: 'a' was not declared in this scope
   13 |     a[ma]++;}
      |     ^
a.cc:15:12: error: 'a' was not declared in this scope
   15 |     if(K-Q+a[i]>0){
      |            ^
a.cc: At global scope:
a.cc:18:24: error: expected declaration before '}' token
   18 |     cout<<"No"<<endl;}}}
      |                        ^
Language: C++

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


    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: 'vector' was not declared in this scope
    7 |         vector<int>man(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:7:16: error: expected primary-expression before 'int'
    7 |         vector<int>man(N,K-Q);
      |                ^~~
a.cc:12:9: error: 'man' was not declared in this scope; did you mean 'main'?
   12 |       ++man.at(A-1);
      |         ^~~
      |         main
a.cc:15:10: error: 'man' was not declared in this scope; did you mean 'main'?
   15 |       if(man.at(i) > 0){
      |          ^~~
      |          main
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> a(n);
  rep(i,n) a.at(i)=(-1)*k;
  rep(i, q){
    cin >> ++a.at(i);
  }
  rep(i,n){
   if(a(i)>=0) cout << "Yes" << endl;
    else cout << "No" << endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:14:8: error: no match for call to '(std::vector<int>) (int&)'
   14 |    if(a(i)>=0) cout << "Yes" << endl;
      |       ~^~~
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> a(n)=(-1)*k;
  rep(i, q){
    cin >> ++a.at(i);
  }
  rep(i,n){
   if(q(i)>=0) cout << "Yes" << endl;
    else cout << "No" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:19: error: expected ',' or ';' before '=' token
    8 |   vector<int> a(n)=(-1)*k;
      |                   ^
a.cc:13:8: error: 'q' cannot be used as a function
   13 |    if(q(i)>=0) cout << "Yes" << endl;
      |       ~^~~
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:23:12: error: expected '}' at end of input
   23 |   return 0;
      |            ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new canner(System.in);
		// 整数の入力
		int N = sc.nextInt();
		int K = sc.nextInt();
		int Q = sc.nextInt();
		int[] people = new int[N];
		Arrays.fill(people, K);
      
		for(int i=0; i<Q; i++){
			int A = sc.nextInt();
			for(int j=0; j<N; j++){
				if(j != A){
					people[j]--;
                }
            }
        }
		for(int i=0; i<N; i++){
			if(people[i]<=0){
				System.out.println("No");
            }else{
				System.out.println("Yes");
            }
        }
    }
}

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

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

int main() {
	ios_base::sync_with_stdio(0); cin.tie(0);
	int n, k, q;
	cin >> n >> k >> q;
	vector<int> players(n);
	
	for (int i = 0; i < n; i++) {
		players[i] = k - q;
	}

	while (q--) {
		int x; cin >> x;
         x--;
         players[x]++;
	}
	for (int i = 0; i < n; i++) {
		cout << (p[i] <= 0 ? "No\n" : "Yes\n");
	}
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:26: error: 'p' was not declared in this scope
   20 |                 cout << (p[i] <= 0 ? "No\n" : "Yes\n");
      |                          ^
Language: C++

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


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


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

#pragma GCC optimize("Ofast")
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long; 
using pii =  pair<int, int>;
using pll =  pair<long long, long long>;
#define rep(i, n) for(int i = 0; i < (n); ++i)
#define all(x) (x).begin(),(x).end()
constexpr char ln =  '\n';
constexpr long long MOD = 1000000007LL;
//constexpr long long MOD = 998244353LL;
template<class T, class U> inline bool chmax(T &a, U b) { if (a < b) { a = b; return true;} return false; }
template<class T, class U> inline bool chmin(T &a, U b) { if (a > b) { a = b; return true;} return false; }
////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////

int main() {
    ios::sync_with_stdio(false); cin.tie(nullptr);

    ll 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(b[i]>0) cout << "Yes" << ln;
        else cout << "No" << ln;
    }
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:30:12: error: 'b' was not declared in this scope
   30 |         if(b[i]>0) cout << "Yes" << ln;
      |            ^
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 t 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:7:10: error: expected initializer before 'n'
    7 |     ll t n, k, q;
      |          ^
a.cc:8:12: error: 'n' was not declared in this scope; did you mean 'yn'?
    8 |     cin >> n >> k >> q;
      |            ^
      |            yn
a.cc:8:17: error: 'k' was not declared in this scope
    8 |     cin >> n >> k >> q;
      |                 ^
a.cc:8:22: error: 'q' was not declared in this scope
    8 |     cin >> n >> k >> q;
      |                      ^
a.cc:14:9: error: 'a' was not declared in this scope
   14 |         a[b]++;
      |         ^
a.cc:17:16: error: 'a' was not declared in this scope
   17 |         if(k-q+a[i]<=0)
      |                ^