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

#include <bits/stdc++.h>
#define int long long

using namespace std;


signed main() {
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    cout.tie(0);
    string s;
    cin >> s;
    if (s[1] == 'B') s[1] = 'R';
    else s[1] = 'B';
    cout << s;ABCA
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:15:15: error: 'ABCA' was not declared in this scope
   15 |     cout << s;ABCA
      |               ^~~~
Language: C++

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

int main() {
  string S;
  cin >> S;
  if (S = "ABC") cout << "ARC" << endl;
  else cout << "ABC" << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"ABC"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    7 |   if (S = "ABC") cout << "ARC" << endl;
      |       ~~^~~~~~~
      |         |
      |         std::__cxx11::basic_string<char>
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		
		String s = sc.next();
        if(s.equals("ABC"){System.out.println("ARC");}
		else{System.out.println("ABC");}
	}
}


Compiler output:
Main.java:7: error: ')' expected
        if(s.equals("ABC"){System.out.println("ARC");}
                          ^
1 error
Language: C++

#include<bits/stdc++.h>
#define Yes cout<<"Yes"<<endl;
#define No cout<<"No"<<endl;
#define ll long long int
using namespace std;
int main()
{
    ll a,b,c,x,y,z,cnt=0,sum=0;
    string str;
    cin>>str;
    if(str=="ABC")
    {
        cout<<"ARC<<endl;
    }
    else cout<<"ABC"<<endl;

}



Compiler output:
a.cc:13:15: warning: missing terminating " character
   13 |         cout<<"ARC<<endl;
      |               ^
a.cc:13:15: error: missing terminating " character
   13 |         cout<<"ARC<<endl;
      |               ^~~~~~~~~~~
a.cc: In function 'int main()':
a.cc:14:5: error: expected primary-expression before '}' token
   14 |     }
      |     ^
Language: C++

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


void solve(std::string S){
if(S="ABC")cout<< "ARC" <<endl;
else cout<< "ABC" <<endl;
}

int main(){
    std::string S;
    std::cin >> S;
    solve(S);
    return 0;
}


Compiler output:
a.cc: In function 'void solve(std::string)':
a.cc:6:5: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"ABC"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    6 | if(S="ABC")cout<< "ARC" <<endl;
      |    ~^~~~~~
      |     |
      |     std::__cxx11::basic_string<char>
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define int long long
int unx(){int x=0,n=0; char c=getchar(); for(;!isdigit(c);c=getchar()) n=(c=='-'); for(;isdigit(c);c=getchar())x=x*10+c-'0'; return (n)?-x:x;}
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
int rnd(int l,int r){}
#define in unx()
#define fasty ios_base::sync_with_stdio(false), cin.tie(0), cout.tie(0)
#define forinc(a,b,c) for(int a=b, _c=c; a<=_c; ++a)
#define fordec(a,b,c) for(int a=b, _c=c; a>=_c; --a)
#define forv(a,b) for(auto &a:b)
#define ii pair<int,int>
#define fi first
#define se second
#define pb push_back
#define all(a) a.begin(),a.end()
#define reset(f, x) memset(f, x, sizeof(f))
#define mt make_tuple
#define bit(x,i) (x>>(i-1)&1ll)
#define onbit(x,i) (x|(1ll<<(i-1)))
#define offbit(x,i) (x&~(1ll<<(i-1)))

main(){
  fasty;
  string s;
  cin>>s;
  if(s=="ABC") cout<<"ARC";
  else cout<<"ABC"
}


Compiler output:
a.cc: In function 'long long int rnd(long long int, long long int)':
a.cc:6:22: warning: no return statement in function returning non-void [-Wreturn-type]
    6 | int rnd(int l,int r){}
      |                      ^
a.cc: At global scope:
a.cc:23:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   23 | main(){
      | ^~~~
a.cc: In function 'int main()':
a.cc:28:19: error: expected ';' before '}' token
   28 |   else cout<<"ABC"
      |                   ^
      |                   ;
   29 | }
      | ~
Language: C++

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

int main() {
  string s; cin >> s;
  cout << (s==="ABC" ? "ARC" : "ABC") << endl
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:9:15: error: expected primary-expression before '=' token
    9 |   cout << (s==="ABC" ? "ARC" : "ABC") << endl
      |               ^
Language: C++

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

int main() {
  string S;
  cin >> S;
  if(S="ABC") {
    cout << "ARC" << endl;
  }
  else {
    cout << "ABC" << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"ABC"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    7 |   if(S="ABC") {
      |      ~^~~~~~
      |       |
      |       std::__cxx11::basic_string<char>
Language: C++


#include<bits/stdc++.h>

using namespace std;

int main() {
		
  string s;
  cin>>s;
  if(s=="ABC")cout<<"ARC"
   else cout<<"ABC"

	
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:26: error: expected ';' before 'else'
   10 |   if(s=="ABC")cout<<"ARC"
      |                          ^
      |                          ;
   11 |    else cout<<"ABC"
      |    ~~~~
Language: C++

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

int main(){
  string S;
  cin >> S;
  if(S == "ABC"{
    cout << "ARC"<<endl;
  }
  else {
  cout << "ABC" <<endl;
  }
}


Compiler output:
a.cc: In function 'int main()':
a.cc:8:16: error: expected ')' before '{' token
    8 |   if(S == "ABC"{
      |     ~          ^
      |                )
a.cc:14:1: error: expected primary-expression before '}' token
   14 | }
      | ^
Language: C++

#include<bits/stdc++.h>
#define FLASH ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);
#define ll long long int
#define debug(x) cerr<<#x<<'='<<(x)<<endl;
using namespace std;
int main()
{
    FLASH
    string s;
    cin >> s;
    is(s == "ABC")
        cout << "ARC";
        else
            cout << "ABC";
    return 0;
}



Compiler output:
a.cc: In function 'int main()':
a.cc:11:5: error: 'is' was not declared in this scope; did you mean 's'?
   11 |     is(s == "ABC")
      |     ^~
      |     s
a.cc:13:9: error: 'else' without a previous 'if'
   13 |         else
      |         ^~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
#define pb push_back
#define mp make_pair
#define ff first
#define ss second
#define vll vector<ll>
#define vpll vector<pair<ll,ll> >
#define vst vector<string>
ll mx=INT_MAX;
ll mi=INT_MIN;
const ll mod=1e9+7;
int main()
{
    vll v,vv(250000,0),vvv[250000],so(250000,0);
    ll i,j,k,s=0,n,x;
    string s;
    if(s=="ABC") cout<<"ARC";
    else cout<<"ABC";
    
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:12: error: conflicting declaration 'std::string s'
   18 |     string s;
      |            ^
a.cc:17:14: note: previous declaration as 'll s'
   17 |     ll i,j,k,s=0,n,x;
      |              ^
a.cc:19:9: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   19 |     if(s=="ABC") cout<<"ARC";
      |        ~^~~~~~~
Language: C++

//AnkitCode99 here....
//every ups and downs matter!

#include<bits/stdc++.h>

#define endl "\n"
typedef long long int ll;
#define MOD 1000000007
#define pll pair<ll,ll>
#define pb push_back
//max xor btw range of two numbers..
#define max_XOR(a,b) (1 << int(log2(a ^ b) + 1)) - 1
#define vl vector<ll>
#define inf ll(1e18)
#define all(v) v.begin(),v.end()
#define Ryuga ios_base::sync_with_stdio(0);cin.tie(0);cout.tie(0)
#define rep(i,a,b) for(long long int i=a;i<b;i++)
#define nrep(i,a,b) for(long long int i=a;i>=b;i--)
#define ceil(a,b) a/b+((a%b ==0 )?0:1)

using namespace std;

const ll sz=100005;
const ll szz=1000006;

int main()
{
    Ryuga;
    
    
    string s;
    cin>>s;
    if(s[1]=='R')
        cout<<"ABC"
    else
        cout<<"ARC";
    
}//Goodbye...

Compiler output:
a.cc: In function 'int main()':
a.cc:34:20: error: expected ';' before 'else'
   34 |         cout<<"ABC"
      |                    ^
      |                    ;
   35 |     else
      |     ~~~~
Language: C++

// kill it - Abhinav IIITA
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define ld long double
#define f(i,x,n) for(int i=x;i<n;++i)


// -----------------------------------------------------------------------


void solve(){	
	string s; cin>>s;
	if(s=="ABC")
	cout<<"ARC";
	else cout<<"ABC":
}

// -----------------------------------------------------------------------


int32_t main()
{
	ios_base::sync_with_stdio(0), cin.tie(0), cout.tie(0); 	
	int t=1;
	//cin>>t;
	while(t--)
	solve();
	return 0;
}


Compiler output:
a.cc: In function 'void solve()':
a.cc:16:25: error: expected ';' before ':' token
   16 |         else cout<<"ABC":
      |                         ^
      |                         ;
Language: C

#define USE_MATH_DEFINES 1
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;
#define MOD 998244353ll
#define INF 1000000000000000000ll
#define EPS 1e-9

#define getchar_unlocked _getchar_nolock
#define putchar_unlocked _putchar_nolock

typedef long long         ll;
typedef long double       ld;
typedef pair <ll,ll>      pl;
typedef tuple <ll,ll,ll>  tl;

string S;


int main() {

	ios_base::sync_with_stdio(0);
	cin.tie(0);
	cout.tie(0);
	
	cin >> S;
	
	if (S == "ABC") cout << "ARC";
	else cout << "ABC";
	
    return 0;
}


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

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

int main()
{
	string s;
  	cin >> s;
  	if(s == ABC)
    {
    	cout << "ARC" << endl;
    }
  	else
    {
    	cout << "ABC" << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:17: error: 'ABC' was not declared in this scope
    8 |         if(s == ABC)
      |                 ^~~
Language: C++

#include <bits/stdc++.h> 
#define ll long long
#define F first
#define FF first.first
#define FS first.second
#define S second
#define pb push_back
using namespace std;
const ll N=1000006, INF=1e16;
 
ll n, q=1, m, a[N], b[N], f[N], o, k, t, x, y, z, u, h, mx, mn, ans, Ans;
pair<ll,ll> p[N];
string s;
vector<int> v[N];
 
main(){ios_base::sync_with_stdio(false), cin.tie(0);
   	
//	cin>>q;
   	
   	while(q--){ans=o=0,u=100;
   		cin>>S;
		
		if(S=="ABC")cout<<"ARC";
		else cout<<"ABC";
	}
	
}

Compiler output:
a.cc:16:1: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
   16 | main(){ios_base::sync_with_stdio(false), cin.tie(0);
      | ^~~~
a.cc: In function 'int main()':
a.cc:6:11: error: 'second' was not declared in this scope
    6 | #define S second
      |           ^~~~~~
a.cc:21:22: note: in expansion of macro 'S'
   21 |                 cin>>S;
      |                      ^
Language: C

#include <bits/stdc++.h>

using namespace std;
#ifdef ONLINE_JUDGE
#define cerr if(false)cerr
#endif
//#define int long long
#define ld1 long double
#define watch(x) cerr << (#x) << " is " << (x) << endl
#define faster ios_base::sync_with_stdio(false),cin.tie(NULL),cout.tie(NULL),cout<<setprecision(14);
#define cint int t;cin>>t;while(t--)
#define vint vector<int>
#define all(v) (v).begin(), (v).end()
#define pii pair<int,int>
#define pb push_back
#define N 50011
#define mm0(X) memset((X), 0, sizeof((X)))
#define mm1(X) memset((X), -1, sizeof((X)))
#define MAXN (int)1e6 + 11
#define INF (int)1e9
#define READ(f) freopen(f, "r", stdin)
#define WRITE(f) freopen(f, "w", stdout)
#define endl '\n'

const int mod=1000000007;
int powmod(int a,int b) {int res=1;a%=mod; assert(b>=0); for(;b;b>>=1){if(b&1)res=res*a%mod;a=a*a%mod;}return res;}
int gcd(int a,int b){return b?gcd(b,a%b):a;}

void solve(){
    string s;
    cin>>s;
    if(s=="ABC") cout<<"ARC"<<endl;
    else cout<<"ABC"<<endl;
}

int32_t main() {
    faster;

#ifndef ONLINE_JUDGE
    READ("inp.txt");
    WRITE("out.txt");
    double beg=clock();
#endif

    int t=1;
//    cin>>t;

    while(t--){
        solve();
    }

#ifndef ONLINE_JUDGE
    double end=clock();
    cerr<<"*** Total time = "<<(end-beg)/CLOCKS_PER_SEC;
#endif
}


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

とすれば, 前述の一対一対応が得られます.
N 個の仕切りと M − 1 個のボールを並び替える列の数は, N+M−1CN 通り存在します (N + M − 1
個の場所から仕切りを置く N 箇所を選ぶ方法の数え上げに相当).
各数列を深さ優先探索で生成する場合, 各数列の生成に要する時間は O (N) ですから, 全ての数列の
生成に要する時間は O (N N+M−1CN ) です.
数列を決めればその数列のスコアは O (Q) で計算出来ます.
以上より, この問題は O ((N + Q) N+M−1CN ) で解けました.

Compiler output:
a.cc:2:18: error: extended character − is not valid in an identifier
    2 | N 個の仕切りと M − 1 個のボールを並び替える列の数は, N+M−1CN 通り存在します (N + M − 1
      |                  ^
a.cc:2:56: error: extended character − is not valid in an identifier
    2 | N 個の仕切りと M − 1 個のボールを並び替える列の数は, N+M−1CN 通り存在します (N + M − 1
      |                                                        ^
a.cc:2:84: error: extended character − is not valid in an identifier
    2 | N 個の仕切りと M − 1 個のボールを並び替える列の数は, N+M−1CN 通り存在します (N + M − 1
      |                                                                                    ^
a.cc:5:27: error: extended character − is not valid in an identifier
    5 | 生成に要する時間は O (N N+M−1CN ) です.
      |                           ^
a.cc:7:35: error: extended character − is not valid in an identifier
    7 | 以上より, この問題は O ((N + Q) N+M−1CN ) で解けました.
      |                                   ^
a.cc:1:1: error: '\U00003068\U00003059\U0000308c\U00003070' does not name a type
    1 | とすれば, 前述の一対一対応が得られます.
      | ^~~~~~~~
Language: C++

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

int main() {
  string S;
  cin>>S;
  if(S="ABC") cout<<"ARC";
  else cout<<"ABC";
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"ABC"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    7 |   if(S="ABC") cout<<"ARC";
      |      ~^~~~~~
      |       |
      |       std::__cxx11::basic_string<char>
Language: C++

#include <iostream>
using namespace std;
int main(){
    string S; cin >> S;
    if (S == "ABC") {
        string ans = "ARC";
    }
    else {
        string ans = "ABC";
    }
    cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   11 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

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

int main () {
    string s;
    cin>>s;
    if(s=="ABC")
        cout<<"ARC";
    else
        cout<<"ABC"
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:20: error: expected ';' before '}' token
   11 |         cout<<"ABC"
      |                    ^
      |                    ;
   12 | }
      | ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define set_bits(a) __builtin_popcount(a)
#define pb push_back
#define pf push_front
#define mod 1000000007
#define M 998244353
#define fi first
#define se second
#define endl '\n'
#define INF 1e18
#define PI 3.14159265358979323846
#define fast ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);


int main()
{
    string s;
    cin>>s;
    if(s[1]=='B')
    {
        cout<<"ARC"<<endl;
    }
    else
    {#include<bits/stdc++.h>
using namespace std;
#define ll long long int
#define set_bits(a) __builtin_popcount(a)
#define pb push_back
#define pf push_front
#define mod 1000000007
#define M 998244353
#define fi first
#define se second
#define endl '\n'
#define INF 1e18
#define PI 3.14159265358979323846
#define fast ios_base::sync_with_stdio(false); cin.tie(NULL); cout.tie(NULL);


int main()
{
    string s;
    cin>>s;
    if(s[1]=='B')
    {
        cout<<"ARC"<<endl;
    }
    else
    {
        cout<<"ABC"<<endl;
    }
}

        cout<<"ABC"<<endl;
    }
}


Compiler output:
a.cc:26:6: error: stray '#' in program
   26 |     {#include<bits/stdc++.h>
      |      ^
a.cc: In function 'int main()':
a.cc:26:7: error: 'include' was not declared in this scope
   26 |     {#include<bits/stdc++.h>
      |       ^~~~~~~
a.cc:26:15: error: 'bits' was not declared in this scope
   26 |     {#include<bits/stdc++.h>
      |               ^~~~
a.cc:26:20: error: 'stdc' was not declared in this scope; did you mean 'std'?
   26 |     {#include<bits/stdc++.h>
      |                    ^~~~
      |                    std
a.cc:27:1: error: expected primary-expression before 'using'
   27 | using namespace std;
      | ^~~~~
a.cc:42:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   42 | int main()
      |         ^~
a.cc:42:9: note: remove parentheses to default-initialize a variable
   42 | int main()
      |         ^~
      |         --
a.cc:42:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:43:1: error: a function-definition is not allowed here before '{' token
   43 | {
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
string S;
cin >> S;
if(S = "ABC") cout << "ARC" << endl;
else cout << "ABC" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:6: error: could not convert 'S.std::__cxx11::basic_string<char>::operator=(((const char*)"ABC"))' from 'std::__cxx11::basic_string<char>' to 'bool'
    7 | if(S = "ABC") cout << "ARC" << endl;
      |    ~~^~~~~~~
      |      |
      |      std::__cxx11::basic_string<char>
Language: C++

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

int main() {
    int S;
    cin >> S;
    if (S=="ABC") cout << "ARC" << endl;
    else cout << "ABC" << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
    7 |     if (S=="ABC") cout << "ARC" << endl;
      |         ~^~~~~~~
Language: C

S = input()
if S == "ABC":
	print("ARC")
else:
	print("ABC")

Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | S = input()
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'S' [-Wimplicit-int]
main.c:1:5: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | S = input()
      |     ^~~~~
main.c:1:5: error: initializer element is not constant
main.c:2:1: error: expected ',' or ';' before 'if'
    2 | if S == "ABC":
      | ^~
Language: C++

#include<bits/stdc++.h>
#define endl '\n'
#define pb push_back
#define fr first
#define sc second
#define ll long long int
#define bit(idx) idx&(-idx)
#define bin(x, a) bitset<a>(x)
#define all(A) A.begin(), A.end()
#define debug(x) cout << #x << " = " << x << endl;
using namespace std;



int main(){
	ios_base::sync_with_stdio(NULL); cin.tie(); cout.tie();
    string t; cin >> t;
    if(t == "ABC") cout << "ARC" << endl;
    eles cout << "ABC" << endl;
}
/**

*/



Compiler output:
a.cc: In function 'int main()':
a.cc:19:5: error: 'eles' was not declared in this scope
   19 |     eles cout << "ABC" << endl;
      |     ^~~~
Language: C++

//created by pyoxiao on 2020/05/03
#include<bits/stdc++.h>
#define LL long long
#define fi first
#define se second
#define mp make_pair
#define pb push_back
#define CL(a, b) memset(a, b, sizeof(a))
using namespace std;
const int mod = 1e9 + 7;
LL fpow(LL a, LL b, LL p = mod){LL ans = 1; a %= p; while(b) {if(b & 1) ans = ans * a % p; b >>= 1; a = a * a % p;} return ans;}
LL gcd(LL a, LL b){return b == 0 ? a : gcd(b, a % b);}
string s;
void solve() {
    cin >> s;
    if(S == "ABC") puts("ARC");
    else puts("ABC");
}
int main() {
    int T = 1;
    // scanf("%d", &T);
    while(T --) 
        solve();
    return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:16:8: error: 'S' was not declared in this scope
   16 |     if(S == "ABC") puts("ARC");
      |        ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<ll,ll>;
using Map = map<ll,ll>;
using vl = vector<ll>;
using vvl = vector<vector<ll>>;
ll INF=1LL<<60;
ll MOD=1000000007;



int main(){
    string s;
    cin >> s;
    if(s=="ARC")cout<<"ABC"<<endl;
    else cout"ARC"<<endl;
    
    return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:14: error: expected ';' before string constant
   17 |     else cout"ARC"<<endl;
      |              ^~~~~
      |              ;
Language: C++

#include <iostream>
#include <string>
#include <math.h>
#include <map>
#include <vector>
#include <algorithm>
#define REP(i, n) for(int i = 0; i < (n); i++)

using namespace std;

int main()
{
    string s;cin >> s;
  	if(s[1] == 'B')cout << "ARC" << endl;
  	else cout << "ABC" << endl
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:35: error: expected ';' before 'return'
   15 |         else cout << "ABC" << endl
      |                                   ^
      |                                   ;
   16 |     return 0;
      |     ~~~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
typedef  long long   ll;
ll inf=1000000000000000000,mod=1000000007;
int main(){
    ios_base::sync_with_stdio(false);
        cin.tie(NULL);
        
        string s;cin>>s;
        if(s[1]=='R')
        s[1]='B';
        else
        s[1]='R'
        cout<<s;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:17: error: expected ';' before 'cout'
   13 |         s[1]='R'
      |                 ^
      |                 ;
   14 |         cout<<s;
      |         ~~~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
    string R;
    cin>>R;
    if(R.at(2)==B)
    cout<<"ARC"<<endl;
    else cout<<"ABC"<<endl;
  return 0;
    }


Compiler output:
a.cc: In function 'int main()':
a.cc:6:17: error: 'B' was not declared in this scope
    6 |     if(R.at(2)==B)
      |                 ^
Language: C

n = input()
if n == 'ABC':
    print('ARC')
else:
    print('ABC')


Compiler output:
main.c:1:1: warning: data definition has no type or storage class
    1 | n = input()
      | ^
main.c:1:1: error: type defaults to 'int' in declaration of 'n' [-Wimplicit-int]
main.c:1:5: error: implicit declaration of function 'input' [-Wimplicit-function-declaration]
    1 | n = input()
      |     ^~~~~
main.c:1:5: error: initializer element is not constant
main.c:2:1: error: expected ',' or ';' before 'if'
    2 | if n == 'ABC':
      | ^~
main.c:2:9: warning: multi-character character constant [-Wmultichar]
    2 | if n == 'ABC':
      |         ^~~~~
main.c:3:11: warning: multi-character character constant [-Wmultichar]
    3 |     print('ARC')
      |           ^~~~~
main.c:5:11: warning: multi-character character constant [-Wmultichar]
    5 |     print('ABC')
      |           ^~~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
#define rep(i,x,y) for(int i=x;i<y;i++)
#define print(A,x,n) rep(I,0,n){cout<<(I ? " ":"")<<A[I]x;}cout<<endl;
#define pprint(A,y,m,n) rep(J,0,m){print(A[J],y,n);}
const long mod=1e9+7;
const int size=1e5;
const int inf=1e9;
int main(){
	string s;cin>>s;
	if(s = "ABC") cout<<"ARC"<<endl;
	else cout<<"ABC"<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:14: error: could not convert 's.std::__cxx11::basic_string<char>::operator=(((const char*)"ABC"))' from 'std::__cxx11::basic_string<char>' to 'bool'
   11 |         if(s = "ABC") cout<<"ARC"<<endl;
      |            ~~^~~~~~~
      |              |
      |              std::__cxx11::basic_string<char>
Language: C++

#include <bits/stdc++.h>
//#include <ext/pb_ds/assoc_container.hpp>

#define INF 1000000021
#define MOD 1000000007
#define pb push_back
#define sqr(a) (a)*(a)
#define M(a, b) make_pair(a,b)
#define T(a, b, c) make_pair(a, make_pair(b, c))
#define F first
#define S second
#define all(x) (x.begin(), x.end())
#define deb(x) cerr << #x << " = " << x << '\n'
#define N 222222

using namespace std;
//using namespace __gnu_pbds;

typedef long double ld;
typedef long long ll;
typedef pair<int,int> pii;
typedef pair<ll, ll> pll;
typedef vector<int> vi;
typedef vector<ll> vll;
//typedef tree<int, null_type, less<int>, rb_tree_tag, tree_order_statistics_node_update> indexed_set;

const ld pi = 2 * acos(0.0);
template<class T> bool umin(T& a, T b){if(a>b){a=b;return 1;}return 0;}
template<class T> bool umax(T& a, T b){if(a<b){a=b;return 1;}return 0;}
template<class T, class TT> bool pal(T a, TT n){int k=0;for(int i=0;i<=n/2;i++){if(a[i]!=a[n-i-1]){k=1;break;}}return k?0:1;}

//int month[] = {0,31,28,31,30,31,30,31,31,30,31,30,31};

int main()
{
	string s;
	cin >> s;
	cout << (s == "ABC" : "ARC" : "ABC");





	





	getchar();
	getchar();
	return 0;
	//ios::sync_with_stdio(false);
	//cin.tie(0);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:38:28: error: expected ')' before ':' token
   38 |         cout << (s == "ABC" : "ARC" : "ABC");
      |                 ~          ^~
      |                            )
Language: C

#include <iostream>
#include <algorithm>
#include <cmath>
#include <queue>
#include <utility>
#include <map>
#include <climits>
#include <vector>
#include <set>
#include <string>
#include <numeric>

#define FAST_IO ios_base::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr)
#define flood(arr, c, s) for (int i=0; i<s; i++) arr[i] = c
//#define int long long
using namespace std;
typedef vector<int> vi;
typedef pair<int, int> ii;
typedef vector<pair<int, int>> vii;
const int N = 1e5 + 2;
const int INF = 1e9 + 5;
const int MOD = 1e9 + 7;

int32_t main() {
    FAST_IO;
    string s;
    cin >> s;
    cout << (s == "ABC" ? "ARC" : "ABC");
    return 0;
}

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

// #define _GLIBCXX_DEBUG

#include <algorithm>
#include <chrono>
#include <iostream>
#include <map>
#include <queue>
#include <random>
#include <string>
#include <vector>
#include <chrono>
#include <cmath>

#define int long long

using namespace std;


signed main() {
  string s;
  cin >> s;

  if (s[i] == 'B') {
    cout << "ARC" << endl;
  } else {
    cout << "ABC" << endl;
  }

  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:9: error: 'i' was not declared in this scope
   23 |   if (s[i] == 'B') {
      |         ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
  int n,k;
  cin>>n>>k;
  for(int i=0;i<k;i++){
    int d;
    cin>>d;
    for(int j=0;j<d;j++){
      int a;
      cin>>a;
      

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: expected '}' at end of input
   12 |       cin>>a;
      |              ^
a.cc:10:25: note: to match this '{'
   10 |     for(int j=0;j<d;j++){
      |                         ^
a.cc:12:14: error: expected '}' at end of input
   12 |       cin>>a;
      |              ^
a.cc:7:23: note: to match this '{'
    7 |   for(int i=0;i<k;i++){
      |                       ^
a.cc:12:14: error: expected '}' at end of input
   12 |       cin>>a;
      |              ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C

#include<stdio.h>

int main(void){
  int n,k;
  scanf("%d %d",&n,&k);
  int p[n]={},d[k];
  for(int i=0;i<k;i++){
    scanf("%d",&d[i])
      for(int i=0;i<d;i++){
        int pn=0;
        scanf("%d",&pn);
        p[pn]++;
      }
  }
  
  int c=0;
  for(int i=0;i<n;i++){
    if(p[i]==0){
      c++;
    }
  }
  
  printf("%d\n",c);
  return 0;
}
  
  

Compiler output:
main.c: In function 'main':
main.c:8:22: error: expected ';' before 'for'
    8 |     scanf("%d",&d[i])
      |                      ^
      |                      ;
    9 |       for(int i=0;i<d;i++){
      |       ~~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N,K;cin>>N>>K;
  map<int>mp;
  for(int X=0;X<K;X++){
    int D;cin>>D;
    for(int Y=0;Y<D;Y++){
      int A;cin>>A;mp[A]++;
    }
  }
  int U=0;
  for(auto p:mp){
    auto V=p.first;
    if(V==0)U++;
  }
  cout<<U<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: wrong number of template arguments (1, should be at least 2)
    5 |   map<int>mp;
      |          ^
In file included from /usr/include/c++/14/map:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:152,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_map.h:102:11: note: provided for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
  102 |     class map
      |           ^~~
a.cc:9:22: error: invalid types 'int[int]' for array subscript
    9 |       int A;cin>>A;mp[A]++;
      |                      ^
a.cc:13:14: error: 'begin' was not declared in this scope
   13 |   for(auto p:mp){
      |              ^~
a.cc:13:14: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166:
/usr/include/c++/14/valarray:1238:5: note:   'std::begin'
 1238 |     begin(const valarray<_Tp>& __va) noexcept
      |     ^~~~~
In file included from /usr/include/c++/14/filesystem:53,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200:
/usr/include/c++/14/bits/fs_dir.h:608:3: note:   'std::filesystem::__cxx11::begin'
  608 |   begin(recursive_directory_iterator __iter) noexcept
      |   ^~~~~
a.cc:13:14: error: 'end' was not declared in this scope
   13 |   for(auto p:mp){
      |              ^~
a.cc:13:14: note: suggested alternatives:
/usr/include/c++/14/valarray:1265:5: note:   'std::end'
 1265 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
/usr/include/c++/14/bits/fs_dir.h:613:3: note:   'std::filesystem::__cxx11::end'
  613 |   end(recursive_directory_iterator) noexcept
      |   ^~~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int N,K;cin>>N>>K;
  map<int>mp(N);
  for(int X=0;X<K;X++){
    int D;cin>>D;
    for(int Y=0;Y<D;Y++){
      int A;cin>>A;mp[A]++;
    }
  }
  int U=0;
  for(auto p:mp){
    auto V=p.first;
    if(V==0)U++;
  }
  cout<<U<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:10: error: wrong number of template arguments (1, should be at least 2)
    5 |   map<int>mp(N);
      |          ^
In file included from /usr/include/c++/14/map:63,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:152,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_map.h:102:11: note: provided for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
  102 |     class map
      |           ^~~
a.cc:9:22: error: invalid types 'int[int]' for array subscript
    9 |       int A;cin>>A;mp[A]++;
      |                      ^
a.cc:13:14: error: 'begin' was not declared in this scope
   13 |   for(auto p:mp){
      |              ^~
a.cc:13:14: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:166:
/usr/include/c++/14/valarray:1238:5: note:   'std::begin'
 1238 |     begin(const valarray<_Tp>& __va) noexcept
      |     ^~~~~
In file included from /usr/include/c++/14/filesystem:53,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:200:
/usr/include/c++/14/bits/fs_dir.h:608:3: note:   'std::filesystem::__cxx11::begin'
  608 |   begin(recursive_directory_iterator __iter) noexcept
      |   ^~~~~
a.cc:13:14: error: 'end' was not declared in this scope
   13 |   for(auto p:mp){
      |              ^~
a.cc:13:14: note: suggested alternatives:
/usr/include/c++/14/valarray:1265:5: note:   'std::end'
 1265 |     end(const valarray<_Tp>& __va) noexcept
      |     ^~~
/usr/include/c++/14/bits/fs_dir.h:613:3: note:   'std::filesystem::__cxx11::end'
  613 |   end(recursive_directory_iterator) noexcept
      |   ^~~
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define ld long double
#define pb push_back
#define mp make_pair
#define f first
#define s second
#define all(x) x.begin(),x.end()
#define LOL cout << '\n';
#define sz(x) ((int)x.size())
#define INF LONG_LONG_MAX
#define NINF LONG_LONG_MIN
#define deb(x) cout << "[" << (#x) << "=" << x << "]" << '\n';
#define deb2(x,y) cout << "[" << (#x) << "=" << x << "] [" << (#y) << "=" << y << "]" << '\n';
#define deb3(x,y,z) cout << "[" << (#x) << "=" << x << "] [" << (#y) << "=" << y << "] [" << (#z) << "=" << z << "]" << '\n';

void solve(){
  int n,k; cin>>n>>k;
  vector<int> vis(n+10,0);
  for(int i=0,d,a ; i<k ; i++){
    cin>>d;
    while(d>0){
      cin>>a;
      vis[a]=1;
      --d;
    }
  }
  int cnt=0;
  for(int i=1 ; i<=n ; i++) cnt+=(v[i]==0);
  cout<<cnt;LOL
}

signed main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0); cout.tie(0);
  int _ = 1; //cin >> _;
  for(int i = 1 ; i <= _ ; i++){
    //cout << "Case #" << i << ": ";
    solve();
  }
  return 0;
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:30:35: error: 'v' was not declared in this scope
   30 |   for(int i=1 ; i<=n ; i++) cnt+=(v[i]==0);
      |                                   ^
Language: C++

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

int main() {
  int a,b,c,d;
  cin >> a >> b;
  vector<int> ans(a,0)
  int sum;
  for(int i= 0;i<b;i++){
    cin >> c;
    for(int j = 0;j<c;j++){
      cin >> d;
      ans.at(d-1)++;
    }
  }
  for(int i = 0;i<a;i++){
    if(ans.at(i)==0)sum++;
  }
  cout << sum;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'int'
    9 |   int sum;
      |   ^~~
a.cc:18:21: error: 'sum' was not declared in this scope
   18 |     if(ans.at(i)==0)sum++;
      |                     ^~~
a.cc:20:11: error: 'sum' was not declared in this scope
   20 |   cout << sum;
      |           ^~~
Language: C++

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

int main() {
  int a,b,c,d;
  cin >> a >> b;
  int ans[a,0];
  int sum;
  for(int i= 0;i<b;i++){
    cin >> c;
    for(int j = 0;j<c;j++){
      cin >> d;
      ans[d]++;
    }
  }
  for(int i = 0;i<a;i++){
    if(ans[i]==0)sum++;
  }
  cout << sum;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:12: error: expected ']' before ',' token
    7 |   int ans[a,0];
      |            ^
      |            ]
a.cc:7:13: error: expected unqualified-id before numeric constant
    7 |   int ans[a,0];
      |             ^
a.cc:13:7: error: 'ans' was not declared in this scope; did you mean 'abs'?
   13 |       ans[d]++;
      |       ^~~
      |       abs
a.cc:17:8: error: 'ans' was not declared in this scope; did you mean 'abs'?
   17 |     if(ans[i]==0)sum++;
      |        ^~~
      |        abs
Language: C++

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

int main() {
  
  int N, K, d, h = 0;
  cin >> N >> K;  
  vector<int> X(N);
  
  for(int i = 0; i < K; i++) {
    cin >> d;
    for(int j = 0; j < d; j++) {
      vector<int> A(d);
      cin >> A.at(j);
      for(int l = 0; l < N; l++) {
        if(A.at(j) == l+1) X.at(l) = 1;
      }
    }
  }
   
  for(int i = 0; i < N; i++) h += X.at(i);  
  cout << N - y << endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:22:15: error: 'y' was not declared in this scope
   22 |   cout << N - y << endl;
      |               ^
Language: C++

#include <iostream>

using namespace std;

int main(){
  int N,K,x,y,count=0;
  cin >> N >> K;
  bool Arr[N];
  for(int a=0;a<K;a++){
    cin >> x;
    for(int b=0;b<x;b++){
      cin >> y;
      Arr[y-1]++;
    }
  }
  for(int c=0;c<N;c++){
    if(Arr[c]==false){
      count++;
    }
  }
  cout << count;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
   13 |       Arr[y-1]++;
      |       ~~~~~~~^
Language: C++

#include <iostream>

using namespace std;

int main(){
  int N,K,x,y,count=0;
  cin >> N >> K;
  bool Arr[N];
  for(int a=0;a<K;a++){
    cin >> x;
    for(int b=0;b<x;b++){
      cin >> y;
      Arr[y-1]++;
    }
  }
  for(int c=0;c<N;c++){
    if(Arr[c]==false){
      count++;
    }
  }
  cout << count;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: use of an operand of type 'bool' in 'operator++' is forbidden in C++17
   13 |       Arr[y-1]++;
      |       ~~~~~~~^
Language: C++

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

int main(){
 int n,k,d;
  cin >> n,k,d;
 vector<int>A(n);
  
 for(int i=0;i=n;i++){
   cin>>A.at(i);
 }
  
  cout<<A(i)<<endl;
  
 return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:13:11: error: 'i' was not declared in this scope
   13 |   cout<<A(i)<<endl;
      |           ^
Language: C

#include <stdio.h>

int main(void) {
  int n;
  int k;
  scanf("%d%d", &n, &k);
  for(int i = 0; i < )
}


Compiler output:
main.c: In function 'main':
main.c:7:22: error: expected expression before ')' token
    7 |   for(int i = 0; i < )
      |                      ^
main.c:8:1: error: expected expression before '}' token
    8 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,n) for (int i = 0; i < int n; i++)
static const long long INF = 1000000;
using p = pair<int,int>;

int main(){
    int n,k;
    cin >> n >> k;
    vector<int> vec(n,0)
    rep(i,k){
        int d;
        cin >> d;
        rep(j,d){
            int x;
            cin >> x;
            if (vec[x] == 0){
                vec[x] = 1;
            }
            else{
                continue;
            }
        }
    }
    int ans = 0;
    rep(i,n){
        if (vec[i] == 0){
            ans++;
        }
        
    }
    cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:18: error: expected ',' or ';' before 'for'
    3 | #define rep(i,n) for (int i = 0; i < int n; i++)
      |                  ^~~
a.cc:11:5: note: in expansion of macro 'rep'
   11 |     rep(i,k){
      |     ^~~
a.cc:11:9: error: 'i' was not declared in this scope
   11 |     rep(i,k){
      |         ^
a.cc:3:34: note: in definition of macro 'rep'
    3 | #define rep(i,n) for (int i = 0; i < int n; i++)
      |                                  ^
a.cc:3:38: error: expected primary-expression before 'int'
    3 | #define rep(i,n) for (int i = 0; i < int n; i++)
      |                                      ^~~
a.cc:11:5: note: in expansion of macro 'rep'
   11 |     rep(i,k){
      |     ^~~
a.cc:3:38: error: expected primary-expression before 'int'
    3 | #define rep(i,n) for (int i = 0; i < int n; i++)
      |                                      ^~~
a.cc:26:5: note: in expansion of macro 'rep'
   26 |     rep(i,n){
      |     ^~~
a.cc:3:38: error: expected ';' before 'int'
    3 | #define rep(i,n) for (int i = 0; i < int n; i++)
      |                                      ^~~
a.cc:26:5: note: in expansion of macro 'rep'
   26 |     rep(i,n){
      |     ^~~
a.cc:3:38: error: expected primary-expression before 'int'
    3 | #define rep(i,n) for (int i = 0; i < int n; i++)
      |                                      ^~~
a.cc:26:5: note: in expansion of macro 'rep'
   26 |     rep(i,n){
      |     ^~~
a.cc:3:38: error: expected ')' before 'int'
    3 | #define rep(i,n) for (int i = 0; i < int n; i++)
      |                      ~               ^~~
a.cc:26:5: note: in expansion of macro 'rep'
   26 |     rep(i,n){
      |     ^~~
Language: C++

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

int main(){
  int n, k, count = 0;
  cin >> n >> k;
  vector<int> vec(n);
  for(int i = 0 ; i < k ; i ++){
    int d;
    cin >> d;
    for(int j = 0; j < d; j ++){
      int x;
      cin >> x;
      vec.at(x-1) = 1;
    }
  }
  
  for(int i =0;i < n;i++){ac
    if(vec.at(i) !=1){
      count++;
    }
  }
  cout << count << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
int N, K;
vector<int> d;
vector<vector<int>> A;
void input() {
  cin >> N >> K;
  d.resize(K);
  A.resize(K, vector<int>());
  for(int i = 0; i < K; i++) {
　  cin >> d[i];
    A[i].resize(d[i]);
    for(int j = 0; j < d[i]; j++) {
      cin >> A[i][j];
    }
  }
}
void solve() {
  int ans = 0;
  for(int i = 1; i <= N; i++) {
    bool have = false;
    for(auto v : A) {
      if(p == i) have = true;
    }
  }
  cout << ans << endl;
}
int main() {
  input();
  solve();
  return 0;
}

Compiler output:
a.cc:11:1: error: extended character 　 is not valid in an identifier
   11 | 　  cin >> d[i];
      | ^
a.cc: In function 'void input()':
a.cc:11:1: error: '\U00003000' was not declared in this scope
   11 | 　  cin >> d[i];
      | ^~
a.cc: In function 'void solve()':
a.cc:23:10: error: 'p' was not declared in this scope
   23 |       if(p == i) have = true;
      |          ^
Language: C++

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

int main() {
  int E;
  int A, B;
  cin >> A >> B;
  vector<int> vec(A);
  rep(i,B){
    int C = 0;
    cin >> C;
    rep(i,C){
      int D = 0;
      cin >> D;
      vec[D-1] = 1;
    }
  }
  rep(i,A){
    if(vec[i] == 0){
      E++
    }
  }
  cout << E << endl;
 
 
 
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:23:10: error: expected ';' before '}' token
   23 |       E++
      |          ^
      |          ;
   24 |     }
      |     ~
Language: C

#include<stdio.h>

int main(){
  int N,K;
  int snuke[101]={0};
  scanf("%d%d",&N,&K);
  for(int i=0;i<K;i++){
    int d;
    scanf("%d",&d);
    for(int j=0;j<A;j++){
      int A;
      scanf("%d",&A);
      snuke[A]++; //A番目のsnukeが持ってるお菓子を増やす
    }
  }
  int ans=0;
  for(int i=1;i<=N;i++){ //snukeは1からN
    if(snuke[i]==0){
      ans++;
    }
  }
  printf("%d\n",ans);
}


Compiler output:
main.c: In function 'main':
main.c:10:19: error: 'A' undeclared (first use in this function)
   10 |     for(int j=0;j<A;j++){
      |                   ^
main.c:10:19: note: each undeclared identifier is reported only once for each function it appears in
Language: C

#include<stdio.h>
int main (void){
  int n,k,d[100],a,i,j,aa[100],ans;
  //初期化
  a=0;
  ans=0;
  for(i=0;i<100;i++){aa[i]=0;}
  
  scanf("%d%d",&n,&k);
  
  for(i=0;i<k;i++){
    scanf("%d",&d[i]);
    
    for(j=0;j<d[i];j++){
      scanf("%d",&a);
      aa[a-1]=1;
    }  
  }  
  for(i=0;i<n;i++){
    if(aa[i]==0){ans++;}}
  
  printf("%d\n",ans);
 　return 0;
}

Compiler output:
main.c: In function 'main':
main.c:23:2: error: stray '\343' in program
   23 |  <U+3000>return 0;
      |  ^~~~~~~~
Language: C++

#include <iostream>
using namespace std;
int main(){
	int n,k;
	cin>>n>>k;
	int a[n] = {0};
	int d;
	cin>>d;
	int x;
	for(i=0; i<k; i++){
		cin>>d;
		for(j=0; j<d; j++){
			cin>>x;
			a[x] = 1;
		}
	}
	int c = 0;
	for(i=0; i<n; i++){
		if(a[i] == 0){
			c++;
		}
	}
	cout << c ;
	return 0;
}

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

#include <bits\stdc++.h>
using namespace std;
int main(){
	int n,k;
	cin>>n>>k;
	int a[n] = {0};
	int d;
	cin>>d;
	int x;
	for(i=0; i<k; i++){
		cin>>d;
		for(j=0; j<d; j++){
			cin>>x;
			a[x] = 1;
		}
	}
	int c = 0;
	for(i=0; i<n; i++){
		if(a[i] == 1){
			c++;
		}
	}
	cout << c ;
	return 0;
}

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

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


int main(){
    int n,k;
    cin >> n >> k;
    vector<bool> have(n,false);
    rep(i,k){
        int d; 
        cin >> d;
        rep(j,d){
            int a;
            cin >> a;
            have[--a] = true;
        }
    }
    rep(i,n) if(have[i]==false) ans++;
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:33: error: 'ans' was not declared in this scope; did you mean 'abs'?
   20 |     rep(i,n) if(have[i]==false) ans++;
      |                                 ^~~
      |                                 abs
a.cc:21:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   21 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

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


int main(){
    int n,k;
    cin >> n >> k;
    vector<bool> have(n,false);
    rep(i,k){
        int d; 
        cin >> d;
        rep(j,d){
            int a;
            cin >> a;
            have[--a] = true;
        }
    }
    rep(i,n) if(fave[i]==false) ans++;
    cout << ans << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:17: error: 'fave' was not declared in this scope; did you mean 'have'?
   20 |     rep(i,n) if(fave[i]==false) ans++;
      |                 ^~~~
      |                 have
a.cc:20:33: error: 'ans' was not declared in this scope; did you mean 'abs'?
   20 |     rep(i,n) if(fave[i]==false) ans++;
      |                                 ^~~
      |                                 abs
a.cc:21:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   21 |     cout << ans << endl;
      |             ^~~
      |             abs
Language: C++

#include <bits/stdc++.h>
using namespace std;
bool victims[11000];
int main(){
  int a, b;
  cin >> a >> b;
  for(int i = 0;i < b;i++)
  {
    int re;
    cin >> re;
    for(int j = 0;j < re;j++)
    {
      int res;
      cin >> res;
      victims[res] = true;
    }
  }
  int ans = 0;
  for(int i = 0;i < a;i++)
  {
    if(victim[i])
    {
      ans++;
    }
  }
  cout << ans;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:8: error: 'victim' was not declared in this scope; did you mean 'victims'?
   21 |     if(victim[i])
      |        ^~~~~~
      |        victims
Language: C

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


Compiler output:
main.c: In function 'main':
main.c:3:30: error: invalid initializer
    3 |   int n,k,i,s,p,t,g=0,a[110]=0;
      |                              ^
Language: C

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


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

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


Compiler output:
main.c: In function 'main':
main.c:5:20: error: 'a' undeclared (first use in this function)
    5 |   for(i=0;i<k;i++){a[i]=0;}
      |                    ^
main.c:5:20: note: each undeclared identifier is reported only once for each function it appears in
main.c:7:36: error: expected ';' before 'for'
    7 |   for(s=0;s<n;s++){  scanf("%d",&p)for(i=0;i<p;i++)  {scanf("%d",&t);a[t]=1;  }  }
      |                                    ^~~
      |                                    ;