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

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

int main(){
  int N,K; cin >> N>>K;
  vector<vector<int>> data(K);
  for(int i=0;i<K;i++){
    data.at(i).push_back(0);
    cin >> data.at(i).at(0);
    
    for(int j=1; j<K; j++){
      data.at(j).push_back(0);
    cin >> data.at(j).at(0);
    }
  }
  int ans;ans =0;
  for(int i=0; i<N;i++){int C =0;
    for(int j=0; j<K;j++){
      for(int k=1;k<data.at(j).size();k++){
        if(i == data.at(j).at(k))
          C++;
                                          }
    }
                       }
  if(C ==0)ans++;
}
 cout<<ans<<endl;
  return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:25:6: error: 'C' was not declared in this scope
   25 |   if(C ==0)ans++;
      |      ^
a.cc: At global scope:
a.cc:27:2: error: 'cout' does not name a type
   27 |  cout<<ans<<endl;
      |  ^~~~
a.cc:28:3: error: expected unqualified-id before 'return'
   28 |   return 0;
      |   ^~~~~~
a.cc:29:1: error: expected declaration before '}' token
   29 | }
      | ^
Language: C++

#include <stdio.h>
using namespace std;
int n, m, i, j, k, d[105], a[105], ji[105], ans;
int main(){
	scanf("%d%d", &n, &k);
	for(i = 1; i <= k; i++){
		scanf("%d", &d[i]); 
		for(j = 1; j <= d[i]; j++){
			scanf("%d", &a[j]);
		}
	}
	for(i = 1; i <= k; i++){
		for(j = 1; j <= d[i]; j++){
			for(m = 1; m <= d[i]; m++){				
				if(a[m] != a[j]){
					ji[j] = 1;
					break;
				}
				else ji[j] = 0;
			}
		}
	}
	for(i = 1; i <= k; i++){
		for(j = 1; j <= d[i]; j++){
			if(ji[i][j] == 0) ans++;
		}
	}	
	printf("%d", ans);
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:33: error: invalid types 'int[int]' for array subscript
   25 |                         if(ji[i][j] == 0) ans++;
      |                                 ^
Language: C++

#include<iostream>
using namespace std;
int main(){
	int N,K,A,cou=0;
	cin>>N>>K;
	int d[K],H[N+1]=[0];
	for(int i=0;i<K;i++){
		cin>>d[i];
		for(int t=0;t<d[i];t++){
			cin>>A;
			H[A]++;
		}
	}
	for(int i=1;i<=N;i++){
		if(H[i]==0)cou++;
	}
	cout<<cou<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:6:26: error: expected identifier before numeric constant
    6 |         int d[K],H[N+1]=[0];
      |                          ^
a.cc: In lambda function:
a.cc:6:28: error: expected '{' before ';' token
    6 |         int d[K],H[N+1]=[0];
      |                            ^
a.cc: In function 'int main()':
a.cc:6:25: error: array must be initialized with a brace-enclosed initializer
    6 |         int d[K],H[N+1]=[0];
      |                         ^~~
Language: C++

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

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


Compiler output:
a.cc: In function 'int main()':
a.cc:27:8: error: 'B' was not declared in this scope
   27 |     if(B.at(i) == 0)
      |        ^
a.cc:28:10: error: expected ';' before '}' token
   28 |       x++
      |          ^
      |          ;
   29 |   }
      |   ~
Language: C++

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


int main() {
  int N,K;
  cin >> N >> K;
  
  int sum =0
  
  rep(i,K){
    vector<int> dK(K);
    for (int i = 0; i < K; i++) {
      cin >> dK.at(i);
      sum += dK.at(i);
    }
  }
  vector<int> AKdK(sum);
  for(int i =0; i < K; i++){
    cin >> AKdK.at(i);
  }
    
  sort(AKdK.begin(), AKdK.end());
      
  int ans =0
    
  for (int i = 0; i < sum; i++) {
    if(AKdK[i] != AKdK[i+1]){
        ans++;
    }
  }
  
  cout << N-ans <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:19: error: expected ',' or ';' before 'for'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                   ^~~
a.cc:12:3: note: in expansion of macro 'rep'
   12 |   rep(i,K){
      |   ^~~
a.cc:12:7: error: 'i' was not declared in this scope
   12 |   rep(i,K){
      |       ^
a.cc:3:35: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                   ^
a.cc:28:3: error: expected ',' or ';' before 'for'
   28 |   for (int i = 0; i < sum; i++) {
      |   ^~~
Language: C++

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

int main() {
  int N, K;
  cin >> N >> K;
  
  int d[100];
  
  for (int i = 0; i < K; i++) {
    cin >> d[i];
    string A;
    
    for (int l = 0; l < d[i]; l++) {
      cin >> A[l];
    }  
    int y = A.size();  
  }
  cout << N -  y << endl;
}  


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

#include <stdio.h>
int main(void){
  int N,K;
  int i,j,l;
  int d[999];
  int t = 0;
  while(N > 100 || K > 100){
    scanf("%d%d",&N,&K);
  }
  int A[N] = {0};
  for(i = 0; i < N; i++){
    scanf("%d", &d[i]);
    for(j = 0; j < d[i]; j++){
      scanf("%d", &l);
      A[l]++;
    }
  }
  for(i = 0; i < N; i++){
    if(A[i] == 0){
      t++;
    }
  }
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:10:14: error: variable-sized object may not be initialized except with an empty initializer
   10 |   int A[N] = {0};
      |              ^
Language: C++

#include<iostream>
#include<vector>
using namespace std;
int main(){
  int N, K;
  cin >> N >> K;
  vector<int> d;
  vector<int> hito;
  for(int i = 0; i < K; i++){
    cin >> d[i];
    for(int j = 0; j < d[i]; j++){
      cin >> hito[j];
    }
  }
  vector<int> count(N);
  vector<vector<int>> data (K, vector<int>(d[i]));
  for(int i = 0; i < K; i++){
    for(int j = 0; j < d[i]; j++){
      for(int h = 1; h <= N; h++){
        if (data[i][j] == h){
          count[h]++;
        }
      }
    }
  }
  int ans = N;
  for(int h = 1; h <= N; h++){
    if(count[h] > 0){
      ans -= 1;
    }
  }
  
  cout << ans << endl;
}
      
      
      
    
  
    

Compiler output:
a.cc: In function 'int main()':
a.cc:16:46: error: 'i' was not declared in this scope
   16 |   vector<vector<int>> data (K, vector<int>(d[i]));
      |                                              ^
Language: C++

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


int main() {
  int N,K;
  cin >> N >> K;
  
  int sum =0
  
  rep(i,K){
    vector<int> dK(K);
    for (int i = 0; i < K; i++) {
      cin >> dK.at(i);
      sum += dK.at(i);
    }
  }
  vector<int> AKdK(sum);
  for(int i =0; i < K; i++){
    cin >> AKdK.at(i);
    
  sort(AKdK.begin(), AKdK.end());
    
  int ans =0
    
  for (int i = 0; i < sum; i++) {
    if(AKdK[i] != AKdK[i+1]){
        ans++;
    }
  }
  
  cout << N-ans <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:3:19: error: expected ',' or ';' before 'for'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                   ^~~
a.cc:12:3: note: in expansion of macro 'rep'
   12 |   rep(i,K){
      |   ^~~
a.cc:12:7: error: 'i' was not declared in this scope
   12 |   rep(i,K){
      |       ^
a.cc:3:35: note: in definition of macro 'rep'
    3 | #define rep(i, n) for (int i = 0; i < (int)(n); i++)
      |                                   ^
a.cc:27:3: error: expected ',' or ';' before 'for'
   27 |   for (int i = 0; i < sum; i++) {
      |   ^~~
a.cc:27:31: error: expected ';' before ')' token
   27 |   for (int i = 0; i < sum; i++) {
      |                               ^
      |                               ;
a.cc:34:2: error: expected '}' at end of input
   34 | }
      |  ^
a.cc:6:12: note: to match this '{'
    6 | int main() {
      |            ^
Language: C++

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

int main() {
  int N, K;
  cin >> N >> K;
  
  int d[100];
  
  for (int i = 0; i < K; i++) {
    cin >> d[i];
    int A[100];
    
    for (int l = 0; l < d[i]; l++) {
      cin >> A[l];
    }
  }  
  int y = A.size();  
  
  cout << N -  y << endl;
}  


Compiler output:
a.cc: In function 'int main()':
a.cc:18:11: error: 'A' was not declared in this scope
   18 |   int y = A.size();
      |           ^
Language: C++

#include <iostream>
#include <string>
#include <vector>

using std::cout;
using std::cin;
using std::endl;
using std::string;
using std::vector;




int main(){
	int n,k;
	cin >> n >> k;
	int TN;
	int tmp;
	vector<int> people[n]={}
	for(i=0;i<k;i++){
		cin >> TN;
		for(ii=0;ii<TN;ii++){
			cin >> tmp;
			people[tmp+1]=1
		}
	}
	int tt;
	tt=0;
	for(i=0;i<n;i++){
		if(people[i]=0){
			if(tt=0){
				tt=1;
			}else{
				cout << " ";
			}
			cout << i+1;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:9: error: expected ',' or ';' before 'for'
   20 |         for(i=0;i<k;i++){
      |         ^~~
a.cc:20:17: error: 'i' was not declared in this scope
   20 |         for(i=0;i<k;i++){
      |                 ^
Language: C++

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


int main() {
  int N,K;
  cin >> N >> K;
  
  rep(i,K){
    vector<int> dK(K);
    for (int i = 0; i < K; i++) {
      cin >> dK.at(i);
      sum += dK.at(i);
    }
  }
  vector<int> AKdK(sum);
  for(int i =0; i < K; i++){
    cin >> AKdK.at(i);
    
  sort(AKdK.begin(), AKdK.end());
    
  for (int i = 0; i < sum; i++) {
    if(AKdK[i] != AKdK[i+1]){
        ans++;
    }
  }
  
  cout << N-ans <<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:7: error: 'sum' was not declared in this scope
   14 |       sum += dK.at(i);
      |       ^~~
a.cc:17:20: error: 'sum' was not declared in this scope
   17 |   vector<int> AKdK(sum);
      |                    ^~~
a.cc:25:9: error: 'ans' was not declared in this scope; did you mean 'abs'?
   25 |         ans++;
      |         ^~~
      |         abs
a.cc:29:13: error: 'ans' was not declared in this scope; did you mean 'abs'?
   29 |   cout << N-ans <<endl;
      |             ^~~
      |             abs
a.cc:30:2: error: expected '}' at end of input
   30 | }
      |  ^
a.cc:6:12: note: to match this '{'
    6 | int main() {
      |            ^
Language: C++

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

typedef long long int ll;
typedef pair<ll, ll> p_ll;
typedef vector<pair<ll, ll>> vec_p; //vector<pair<ll, ll>> pairs(n) ,pairs.at(i) = make_pair(i*i, i)

#define ture ture
#define flase false
#define falg flag

#define REP(i, x) for (ll i = 0; i < (ll)(x); i++)
#define REPS(i, x) for (ll i = 1; i <= (ll)(x); i++)
#define RREP(i, x) for (ll i = ((ll)(x)-1); i >= 0; i--)
#define RREPS(i, x) for (ll i = ((ll)(x)); i > 0; i--)
#define all(x) (x).begin(), (x).end()

const ll MOD = pow(10, 9) + 7;
const ll LLINF = pow(2, 61) - 1;//llの最大9*10^18
const int INF = pow(2, 30) - 1;

ll gcd(ll a, ll b) { return b ? gcd(b, a % b) : a; }

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

    ll N,K;

    cin >> N >> K;

    vector<ll> d(K);
    vector<vector<int>> A(K, vector<int>);

    REP(i,K){
        cin >> d.at(i);
        REP(j,d.at(i)){
            cin >> A.at(i).at(j);
        }
    }
    
    vector<ll> vec;
    vec.push_back(0);

    REP(i, K){
        REP(j,d.at(i)){
            vec.push_back(A.at(i).at(j));
        }
    }

    sort(vec.begin(), vec.end());
    //cout << vec.size() << endl;

    ll tmp = 0;

    REP(i,vec.size()-1){
        if(!(vec.at(i)==vec.at(i+1))){
            tmp++;
        }
        //cout << tmp<<endl;
    }
    cout << N - tmp << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:34:41: error: expected primary-expression before ')' token
   34 |     vector<vector<int>> A(K, vector<int>);
      |                                         ^
Language: C++

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

int main(){
  int N, K;
  int c = 0;
  int A[100];
  int d[100];
  cin >> N >> K;
  for(int i = 0; i <= N; i++) cin >> A[i];
  for(int x = 0; x <= N; x++) cin >> d[x];
  
   sort(A, A+N, greater<int>());
   for(int s = 0; s <= K; s++){
     if(A[i] != d[x]){
       c += 1;
      }
      else{
        c += 0;
      }
  }
  cout << c << endl;
}

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

#include"bits/stdc++.h"
using namespace std;
typedef long long ll;
#define fast ios_base::sync_with_stdio(false);cin.tie(NULL);cout.tie(NULL);

int main(){

    ll n,m;
    cin>>n>>m;
    set<ll>s;
    while(m--){
        cin>>k;
        while(k--){
            cin>>t;
            s.insert(t);
        }
    }
    cout<<n-s.size()<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:14: error: 'k' was not declared in this scope
   12 |         cin>>k;
      |              ^
a.cc:14:18: error: 't' was not declared in this scope
   14 |             cin>>t;
      |                  ^
Language: C++

#include <algorithm>
#include <bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define all(x) (x).begin(), (x).end()
#define ll long long
#include<set>
#include<iostream>
int main(){
    int n,k;
    cin>>n>>k;
    int d[100];
    int A[100];
    set<int> a;
    int count=1;
    for(int i=0;i<k;i++){
        cin>>d[i];
        for(int j=0;j<d[i];j++){
          cin>>A[j];
         for(int k=1;k<=n;k++){
            if(A[j]==k)a.insert(k);
         }
        }
    }
    int ans=n-a.size();
    cout<<ans<<endl;
    return 0;

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

#include <iostream>
#include <string>
#include <vector>

using std::cout;
using std::cin;
using std::endl;
using std::string;




int main(){
	int n,k;
	cin >> n >> k;
	int TN;
	int tmp;
	vector<int> people[n]={}
	for(i=0;i<k;i++){
		cin >> TN;
		for(ii=0;ii<TN;ii++){
			cin >> tmp;
			people[tmp+1]=1
		}
	}
	int tt;
	tt=0;
	for(i=0;i<n;i++){
		if(people[i]=0){
			if(tt=0){
				tt=1;
			}else{
				cout << " ";
			}
			cout << i+1;
		}
	}
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:9: error: 'vector' was not declared in this scope
   18 |         vector<int> people[n]={}
      |         ^~~~~~
a.cc:18:9: note: suggested alternatives:
In file included from /usr/include/c++/14/vector:66,
                 from a.cc:3:
/usr/include/c++/14/bits/stl_vector.h:428:11: note:   'std::vector'
  428 |     class vector : protected _Vector_base<_Tp, _Alloc>
      |           ^~~~~~
/usr/include/c++/14/vector:93:13: note:   'std::pmr::vector'
   93 |       using vector = std::vector<_Tp, polymorphic_allocator<_Tp>>;
      |             ^~~~~~
a.cc:18:16: error: expected primary-expression before 'int'
   18 |         vector<int> people[n]={}
      |                ^~~
a.cc:19:13: error: 'i' was not declared in this scope
   19 |         for(i=0;i<k;i++){
      |             ^
a.cc:21:21: error: 'ii' was not declared in this scope
   21 |                 for(ii=0;ii<TN;ii++){
      |                     ^~
a.cc:23:25: error: 'people' was not declared in this scope
   23 |                         people[tmp+1]=1
      |                         ^~~~~~
a.cc:28:13: error: 'i' was not declared in this scope
   28 |         for(i=0;i<n;i++){
      |             ^
a.cc:29:20: error: 'people' was not declared in this scope
   29 |                 if(people[i]=0){
      |                    ^~~~~~
Language: C++

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

int main() {
  int N, K;
  cin >> N >> K;
  
  int d[100];
  
  for (int i = 0; i < K; i++) {
    cin >> d[i];
    int A[100];
    
    for (int l = 0; l < d[i]; l++) {
      cin >> A[l];
    }  
    int y = A.size();  
  
  cout << N -  y << endl;
}  


Compiler output:
a.cc: In function 'int main()':
a.cc:17:15: error: request for member 'size' in 'A', which is of non-class type 'int [100]'
   17 |     int y = A.size();
      |               ^~~~
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:4:12: note: to match this '{'
    4 | int main() {
      |            ^
Language: Java

import java.util.Scanner;

public class Main2 {
  public static void main(String[] args ) throws Exception {
    Scanner sc = new Scanner(System.in);
    int N = Integer.parseInt(sc.next());
    int N2 = Integer.parseInt(sc.next());
    int N3 = Integer.parseInt(sc.next());
    System.out.println(N-N3);
    

  }
}

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

#include <bits/stdc++.h>
using namespace std;
int main() { 
  int N,K,sum=0;
  vector<int>vec(N*K);
  for(int i=0;i<K;i++){
    int A;
    cin>>A;
    for(int j=0;j<A;j++){
      cin>>vec.at(i);
      }
    }
  for(int i=0;i<N*K;i++){
    if(vec.at(i)==vec.at(i+1)){
      vec.at(i) = 0;
      }
    if(i+1==N*K){
      break ;
      }
     }
  sort(vec.begin(),vec.end());
  for(int i=0;i<N*K;i++){
    if(vec.at(i)!=0){
      sum++
      }
    }
  cout<< N - sum<< endl;
  return 0;
  }
      
  
  



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

#include <bits/stdc++.h>
using namespace std;
int main() { 
  int N,K,sum=0;
  vector<int>vec(N*K);
  for(int i=0;i<K;i++){
    int A;
    cin>>A;
    for(int j=0;j<A;j++){
      cin>>vec.at(i);
      }
    }
  for(int i=0;i<N*K;i++){
    if(vec.at(i)==vec.at(i+1){
      vec.at(i) = 0;
      }
    if(i+1==N*K){
      break ;
      }
     }
  sort(vec.begin(),vec.end());
  for(int i=0;i<N*K;i++){
    if(vec.at(i)!=0){
      sum++
      }
    }
  cout<< N - sum<< endl;
  return 0;
  }
      
  
  



Compiler output:
a.cc: In function 'int main()':
a.cc:14:30: error: expected ')' before '{' token
   14 |     if(vec.at(i)==vec.at(i+1){
      |       ~                      ^
      |                              )
a.cc:20:6: error: expected primary-expression before '}' token
   20 |      }
      |      ^
a.cc:24:12: error: expected ';' before '}' token
   24 |       sum++
      |            ^
      |            ;
   25 |       }
      |       ~
Language: C++

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

int main(){
  int N, K;
  int c = 0;
  int A[100];
  int d[100];
  cin >> N >> K;
  for(int i = 0; i <= N; i++) cin >> A[i];
  for(int x = 0; x <= N; x++) cin >> d[x];
  
   sort(A, A+N, greater<int>());
   for(int s = 0; s <= K; s++){
     if(A[i] != d[x]){
       c += 1;
      }
      else{
        c += 0;
      }
  }
}

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

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

int main() {
  for(int i = 0;i < N*K;i++){
    int N,K,d;
    string A;
    cin >> N >>  K >> d >> A;
    
    if(A[i]=K){
      
      d++;
    }
  }
    cout << N - d << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:21: error: 'N' was not declared in this scope
    5 |   for(int i = 0;i < N*K;i++){
      |                     ^
a.cc:5:23: error: 'K' was not declared in this scope
    5 |   for(int i = 0;i < N*K;i++){
      |                       ^
a.cc:15:13: error: 'N' was not declared in this scope
   15 |     cout << N - d << endl;
      |             ^
a.cc:15:17: error: 'd' was not declared in this scope
   15 |     cout << N - d << endl;
      |                 ^
Language: Java

import java.util.*;

public class Main{
    public static void main(String[] args){
        Scanner sc = new Scanner(System.in);

        int n = Integer.parseInt(sc.next());
        int k = Integer.parseInt(sc.next());
        int[] count = new Int[n];
        
        for(int i = 0; i < n; i++){
            int d = Integer.parseInt(sc.next());
            int[] a = new int[d];
            for(int j = 0; j < n; j++){
                a[i] = Integer.parseInt();
                count[a[i]]++;
            }
        }

        int ans = 0;
        for(int i = 0; i < n; i++){
            if(count[i] == 0)
                ans++;
        }

        Systtem.out.println(ans);
    }
}

Compiler output:
Main.java:9: error: cannot find symbol
        int[] count = new Int[n];
                          ^
  symbol:   class Int
  location: class Main
Main.java:15: error: no suitable method found for parseInt(no arguments)
                a[i] = Integer.parseInt();
                              ^
    method Integer.parseInt(String,int) is not applicable
      (actual and formal argument lists differ in length)
    method Integer.parseInt(CharSequence,int,int,int) is not applicable
      (actual and formal argument lists differ in length)
    method Integer.parseInt(String) is not applicable
      (actual and formal argument lists differ in length)
Main.java:26: error: package Systtem does not exist
        Systtem.out.println(ans);
               ^
3 errors
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(){
  int n, k, i, j, d[105], a[105], ans[105], total;
  scanf("%d%d", &n, &k);
  for(i=1; i<=k; i++){
    scanf("%d", d[i]);
    for(j=1; j<=n; j++){
      scanf("%d", &a[j]);
      ans[a[j]]=1;
    }
  }
  for(i=1; i<=n; i++){
    if(ans[i] != 1) total++;
  }
  printf("%d" total);
}

Compiler output:
a.cc: In function 'int main()':
a.cc:16:14: error: expected ')' before 'total'
   16 |   printf("%d" total);
      |         ~    ^~~~~~
      |              )
Language: C++

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

int main() {
  int n,k;
  cin>>n>>k;
  vector<int> kazu(k);
  vector<int> moto(n);
  for(int i=0;i<n;i++){
    moto.at(i)=i+1;
  }
  for(int i=0;i<k;i++){
    cin>>kazu.at(i);
    vector<int> data(kazu.at(i));
    cin>>data.at(i);
    for(int j=0;j<n;j++){
      if(data.at(i)==moto.at(j)){
        moto.at(j)=0;
      }
    }
  }
 int count=0;
  for(int i=0;i<n;i++){
    if(!(moto.ay(i)==0)){
      count++;
    }
  }
  cout<<count<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:24:15: error: 'class std::vector<int>' has no member named 'ay'; did you mean 'at'?
   24 |     if(!(moto.ay(i)==0)){
      |               ^~
      |               at
Language: C++

#include<iostream>
#include<vector>
#include<string>
using namespace std;
 
int main()
{
  long n,k;
  cin >> n >> k;
  vector<boolean>arr(n,false);
  long m = 0;
  for(int i = 0; i < n;i++)
  {
    cin >> m;
    arr[m-1] = true;
  }  
  for(int i = 0; i < n;i++)
    if(arr[i])std::cout << i+1 << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: 'boolean' was not declared in this scope; did you mean 'bool'?
   10 |   vector<boolean>arr(n,false);
      |          ^~~~~~~
      |          bool
a.cc:10:17: error: template argument 1 is invalid
   10 |   vector<boolean>arr(n,false);
      |                 ^
a.cc:10:17: error: template argument 2 is invalid
a.cc:10:29: error: expression list treated as compound expression in initializer [-fpermissive]
   10 |   vector<boolean>arr(n,false);
      |                             ^
a.cc:15:8: error: invalid types 'int[long int]' for array subscript
   15 |     arr[m-1] = true;
      |        ^
a.cc:18:11: error: invalid types 'int[int]' for array subscript
   18 |     if(arr[i])std::cout << i+1 << std::endl;
      |           ^
Language: C++

#include<iostream>
#include<vector>
#include<string>
using namespace std;
 
int main()
{
  long n,k;
  cin >> n >> k;
  vector<boolean>arr(n,false);
  long m = 0;
  for(int i = 0; i < n;i++)
  {
    cin >> m;
    arr[m] = true;
  }  
  for(int i = 0; i < n;i++)
    if(arr[i])std::cout << i +1<< std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: 'boolean' was not declared in this scope; did you mean 'bool'?
   10 |   vector<boolean>arr(n,false);
      |          ^~~~~~~
      |          bool
a.cc:10:17: error: template argument 1 is invalid
   10 |   vector<boolean>arr(n,false);
      |                 ^
a.cc:10:17: error: template argument 2 is invalid
a.cc:10:29: error: expression list treated as compound expression in initializer [-fpermissive]
   10 |   vector<boolean>arr(n,false);
      |                             ^
a.cc:15:8: error: invalid types 'int[long int]' for array subscript
   15 |     arr[m] = true;
      |        ^
a.cc:18:11: error: invalid types 'int[int]' for array subscript
   18 |     if(arr[i])std::cout << i +1<< std::endl;
      |           ^
Language: C++

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

int main()
{
  long n,k;
  cin >> n >> k;
  vector<boolean>arr(n,false);
  long m = 0;
  for(int i = 0; i < n;i++)
  {
    cin >> m;
    arr[m] = true;
  }  
  for(int i = 0; i < n;i++)
    if(arr[i])std::cout << i << std::endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:10: error: 'boolean' was not declared in this scope; did you mean 'bool'?
   10 |   vector<boolean>arr(n,false);
      |          ^~~~~~~
      |          bool
a.cc:10:17: error: template argument 1 is invalid
   10 |   vector<boolean>arr(n,false);
      |                 ^
a.cc:10:17: error: template argument 2 is invalid
a.cc:10:29: error: expression list treated as compound expression in initializer [-fpermissive]
   10 |   vector<boolean>arr(n,false);
      |                             ^
a.cc:15:8: error: invalid types 'int[long int]' for array subscript
   15 |     arr[m] = true;
      |        ^
a.cc:18:11: error: invalid types 'int[int]' for array subscript
   18 |     if(arr[i])std::cout << i << std::endl;
      |           ^
Language: C

#include <stdio.h>

int main(void){
  int N,K;
  scanf("%d %d¥n",&N,&K);
  int d[K];
  int A[K][K];
  int i,j;
  for(i=1;i<K;i++){
    scanf("%d¥n",&d[i]);
    for(j=1;j<K;j++){
      scanf("%d",&A[i][j]);
    }
  }
  int m[N]=0;
  int n;
  for(n=1;n<N;n++){
    for(i=1;i<K;i++){
      for(j=1;j<K;j++){
        if(A[i][j]==n){
          m[n]=1;
        }
      }
    }
  }
  int count = 0;
  for(i=1;i<N;i++){
    if(m[i]==0){
      count = count + 1;
    }
  }
  printf("%d",count);
}




Compiler output:
main.c: In function 'main':
main.c:15:12: error: variable-sized object may not be initialized except with an empty initializer
   15 |   int m[N]=0;
      |            ^
Language: C++

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

int main(){
  int N, K;
  int A[100];
  int d[100];
  cin >> N >> K;
  for(int i = 0; i <= N; i++) cin >> A[i];
  for(int x = 0; x <= N; x++) cin >> d[x];
  
   sort(A, A+N, greater<int>());
   for(int s = 0; s <= K; s++){
     
}

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

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

int main() {
  int N,K,d,A;
  cin>>N>>K;
  vercor<int> person(N);
  for(int i=0;i<K;i++){
    cin>>d;
    for(int j=0;j<d;j++){
      cin>>A;
      A--;
      person[A]=1;
    }
  }
  int cnt=0;
  for(int i:person){
    if(person[i]==1)cnt++;
  }
  cout<<cnt<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:3: error: 'vercor' was not declared in this scope; did you mean 'perror'?
    7 |   vercor<int> person(N);
      |   ^~~~~~
      |   perror
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   vercor<int> person(N);
      |          ^~~
a.cc:13:7: error: 'person' was not declared in this scope; did you mean 'perror'?
   13 |       person[A]=1;
      |       ^~~~~~
      |       perror
a.cc:17:13: error: 'person' was not declared in this scope; did you mean 'perror'?
   17 |   for(int i:person){
      |             ^~~~~~
      |             perror
Language: C++

#include<iostream>

#include<vector>

using namespace std;

//vector<int>is;

int main(){

    int n,k;

    cin>>n>>k;

     int arr[n];

   memset(arr,0,sizeof(arr));

   //fill(arr.begin(),arr.end(),0);

    for(int i=0;i<k;i++){

    	int d;    	cin>>d;

    	while(d--){

    		int x;

    		cin>>x;

    	   arr[x-1]=1;

    	}

    }

    int cnt =0;

    for(auto i : arr){

       if(arr[i]==0)cnt++;

    }

    cout<<cnt-1;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:4: error: 'memset' was not declared in this scope
   17 |    memset(arr,0,sizeof(arr));
      |    ^~~~~~
a.cc:4:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    3 | #include<vector>
  +++ |+#include <cstring>
    4 |
Language: Java

import java.util.*;
public class Main {

	public static void main(String[] args) {
		// TODO 自動生成されたメソッド・スタブ
        Scanner sc = new Scanner(System.in);
        int n =sc.nextInt();
        int k =sc.nextInt();
        ArrayList<Integer> array=new ArrayList<Integer>();
        int cnt=0;
        for(int i =0;i<k;i++) {
        		int d =sc.nextInt();
        		for(int j=0 ;j<d ;j++) {
                  int work = sc.nextInt();
                 array.add(work);
        		}
        }
        for(int i = 1 ;i<n+1;i++) { 
          if(array.contains(i) ==false) {
           cnt+=1; 
          }
        }
           

System.out.println(cnt);



Compiler output:
Main.java:25: error: reached end of file while parsing
System.out.println(cnt);
                        ^
1 error
Language: C

#include<stdio.h>


int array_count_values(int a[],int b);

int main(void){

    int N,K;
    scanf("%d %d",&N,&K);

    int d[N];
    int B[N];
    int temp,sum=0;

    for(int i=0;i<K;i++){
        scanf("%d", &d[i]);
        for(int j=0;j<d[i];j++){
            scanf("%d", &temp);
            B[temp-1]=1;
        }
    }

    // for(int i=0;i<K;i++){      
    //     if(B[i]==0){
    //         sum++;
    //     }
    // }   
    printf("%d",array_count_values(B,0));

    return 0;
}

Compiler output:
/usr/bin/ld: /tmp/ccDLo4UD.o: in function `main':
main.c:(.text+0x16a): undefined reference to `array_count_values'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>
using namespace std;

int main() {
    int N, K;
    int d[110];
    int A[110][110] = {0};
    int count = 0;
    cin >> N >> K;
    for (int i = 0; i < K; ++i){
        cin >> d[i];
        for (int j = 0; j < d[i]; ++j) {
            int idx;
            cin >> idx;
            A[idx-1][i] += 1;
        }
    }

    for (int i = 0; i < N; ++i) {
        int sum = 0;
        for (int j = 0; j < K; ++j) {
            sum += A[i][j];
        }
        if (sum == 0) count += 1;
    }

    cout << count << endl;

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

#include <bits/stdc++.h>
using namespace std;
int main(){
 int n,k;
  cin>>n>>k;
  vector<int> d(k);
  for(int i=0;i<k;i++){
    cin>>d.at(i);
  }
  for(int b=0;b<k;b++){
  vector<vector<int>> data(k, vector<int>(d.at(b));
  // 入力 (2重ループを用いる)
  for (int i = 0; i < k; i++) {
    for (int j = 0; j < d.at(b); j++) {
      cin >> data.at(i).at(j);
    }
  }
                           }
             vector<int> vec;
                         for(int i;i<n;i++){
                           vec
  
  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:51: error: expected ')' before ';' token
   11 |   vector<vector<int>> data(k, vector<int>(d.at(b));
      |                           ~                       ^
      |                                                   )
a.cc:21:31: error: expected ';' before '}' token
   21 |                            vec
      |                               ^
      |                               ;
......
   24 | }
      | ~                              
a.cc:24:2: error: expected '}' at end of input
   24 | }
      |  ^
a.cc:3:11: note: to match this '{'
    3 | int main(){
      |           ^
Language: C++

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

int main() {
  int N,K;
  cin>>N>>K;
  int d[N];
  int ans=0;
  for(int i=0;i<K;i++){
    cin>>d[i];
    vector<int> A;
    for(int a=1;a<K;a++){
      for(int b=1;b<=N;b++){
        if(b==A[a][d[i]]){
          ans++;
        }
      }
    }
  }
  cout<<ans<<endl;  
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:19: error: invalid types '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type {aka int}[int]' for array subscript
   14 |         if(b==A[a][d[i]]){
      |                   ^
Language: C

#include <stdio.h>

int main()
{
    int n, k;
    scanf("%d %d", &n, &k);
    int i = 0, j = 0, x = 0;
    int following_n;
    int snukes[n] = {0};
    int flag = 0;
    int result = 0;

    for (i = 0; i < k; i++)
    {
        scanf("%d", &following_n);
        int following_snukes[following_n];
        for (j = 0; j < following_n; j++)
        {
            scanf("%d", &following_snukes[j]);
        }

        for (j = 0; j < following_n; j++)
        {
            for (x = 0; x < n; x++)
            {
                if (snukes[x] == following_snukes[j])
                {
                    flag = 1;
                    break;
                }
            }
            if (flag == 1)
            {
                continue;
            }
            else
            {
                snukes[following_snukes[j] - 1] = following_snukes[j];
            }
        }
    }

    for (i = 0; i < n; i++)
    {
        if (snukes[i] == 0)
        {
            result += 1;
        }
    }

    printf("%d", result);

    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:9:21: error: variable-sized object may not be initialized except with an empty initializer
    9 |     int snukes[n] = {0};
      |                     ^
Language: C

#include <iostream>
using namespace std;

int main(){
	int n, k;
	cin >> n >> k;
	int d[n];
	cin >> d[0];
	int a[d[0]];
	int l, i = 0;
	while(cin >> l){
		a[i] = l;
		i++;
		if(i > d[0]) break;
	}
	i = 1;
	while(i < k){
		cin >> d[i];
		i++;
	}
	printf("%d\n", n -d[0]);
	return 0;
}

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

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

int main() {
    int N,K;
    cin >> N >> K;
    set<int>X;
    for(int i = 0; i < K; i++) {
        int d;
        cin >> d;
        for(int j = 0; j < d; j++) {
                int a;
                cin >> a;
                X.insert(a);
        }
    }
   cout << N-a.size() << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:14: error: 'a' was not declared in this scope
   17 |    cout << N-a.size() << endl;
      |              ^
Language: Java

import java.io.ByteArrayInputStream;
import java.io.InputStream;
import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;
import java.util.*;
import java.util.stream.Collectors;

public class Question2 {
    public static void main(String[] args) throws UnsupportedEncodingException {
//        String rtnXml = "1 2¥n3";
//        InputStream bais = new ByteArrayInputStream(rtnXml.getBytes(StandardCharsets.UTF_8));
//        Scanner sc = new Scanner(bais);
        Scanner sc = new Scanner(System.in);
        // N, K
        String nk = sc.nextLine();
        Integer n = Integer.valueOf(nk.substring(0, 1));
        // Integer k = Integer.valueOf(nk.substring(2, 3));
        Map<Integer, Integer> counts = new HashMap<>();
        for (int i = 0; i < n; i++) {
            counts.put(i + 1, 0);
        }
        while (sc.hasNextLine()) {
            // Integer d = Integer.valueOf(sc.nextLine());
            String has = sc.nextLine();
            for (int i = 0; i < has.length(); i++) {
                String key = has.substring(i, i + 1);
                if (!has.substring(i, i + 1).equals(" ")) {
                    counts.put(Integer.valueOf(key), counts.get(Integer.valueOf(key)) + 1);
                }
            }
        }
        System.out.println((int) counts.entrySet().stream().filter(it -> it.getValue() == 0).count());
    }
}


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

int snukes, snacks;
	cin >>snukes >> snacks;

	vector<int> ans(snukes, -1);
	int a = 0;
	while(a < snacks){
		int d;
		cin >> d;
		vector<int> l(d, 0);
		for(int i=0;i<d;i++){
			cin >> l[i];
			ans[l[i]-1]++;
		}
		a++;
	}
	for(int i=0;i<ans.size();i++){
		if(ans[i] == -1)
			cout<<i+1<<" ";
	}
   	return 0;

Compiler output:
a.cc:2:9: error: 'cin' does not name a type
    2 |         cin >>snukes >> snacks;
      |         ^~~
a.cc:4:9: error: 'vector' does not name a type
    4 |         vector<int> ans(snukes, -1);
      |         ^~~~~~
a.cc:6:9: error: expected unqualified-id before 'while'
    6 |         while(a < snacks){
      |         ^~~~~
a.cc:16:9: error: expected unqualified-id before 'for'
   16 |         for(int i=0;i<ans.size();i++){
      |         ^~~
a.cc:16:21: error: 'i' does not name a type
   16 |         for(int i=0;i<ans.size();i++){
      |                     ^
a.cc:16:34: error: 'i' does not name a type
   16 |         for(int i=0;i<ans.size();i++){
      |                                  ^
a.cc:20:9: error: expected unqualified-id before 'return'
   20 |         return 0;
      |         ^~~~~~
Language: C++

#include <bits/stdc++.h>
#define REP(i, a, b) for (long long i = a; i <= b; ++i)
#define ll long long
#define N 110
using namespace std;

ll n, m, l, k, ans;

inline ll read(){
	ll s = 0, w = 1;
	char ch = getchar();
	for (; ch < '0' || ch > '9'; ch = getchar()) w *= ch == '-' ? -1 : 1;
	for (; ch >= '0' && ch <= '9'; ch = getchar()) s = s * 10 + ch - '0';
	return s * w;
}

inline void work(){
	n = read(), k = read();
	REP(i, 1, k){
		m = read();
		REP(i, 1, m) l = read(), v[l] = 1;
	}
	REP(i, 1, n)
		if (!v[i]) ans++;
	printf("%lld\n", ans);
}

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

Compiler output:
a.cc: In function 'void work()':
a.cc:21:42: error: 'v' was not declared in this scope
   21 |                 REP(i, 1, m) l = read(), v[l] = 1;
      |                                          ^
a.cc:24:22: error: 'v' was not declared in this scope
   24 |                 if (!v[i]) ans++;
      |                      ^
Language: C++

#include <iostream>
using namespace std;

int main(){
    int N,K,loop,num,ans;
    cin >> N >> K;
    int hai[N];
    ans=0;
    for(int subi=0;subi<N;subi++){
        hai[subi]=0;
    }
    for(int i=0;i<K;i++){
        cin >> loop;
        for(int j=0;i<loop;i++){
            num=0;
            cin >> num;
            hai[num-1]++;
        }
        /*if(hai[i+1]==0){
            ans++;
        }*/ 
    }
    
    for(int endi=0;endi<=N;endi++){
        if(hai[endi]==0){
           ans++;
        }
    }
    cout << ans << endl;
    return 0;
}
~               

Compiler output:
a.cc:32:2: error: expected class-name at end of input
   32 | ~
      |  ^
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 pii = pair<int,int>;
using pil = pair<pii,int>;


int main(){
    int n,k;
    cin >> n >> k;
    vector<int> d(k);
    string s = "";
    vector<vector<char>> a(k,(vector<char>(n));
    rep(i,k){
        cin >> d[i];
        rep(j,d[i]) {
            cin >> a[i][j];
            s.push_back(a[i][j]);
        }
    }
    sort(s.begin(),s.end());
    int cnt = 1;
    for(int i = 0;i < (s.size()-1) ;i++){
        if(s[i] != s[i+1]) cnt++;
    }
    cout << n - cnt << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:47: error: expected ')' before ';' token
   14 |     vector<vector<char>> a(k,(vector<char>(n));
      |                           ~                   ^
      |                                               )
Language: C++

#include <iostream>
#include <map>
#include <vector>
using namsepace std;

int main(){
  int n,k,d,id;
  cin>>n>>k;
  map<int,int> check;
  for(int i=0;i<n;i++){
    check[i]=0;
  }
  for(int i=0;i<k;i++){
    cin>>d;
    for(int j=0;j<d;j++){
      cin>>id;
      check[id]=1;
    }
  }
  id=0;
  for(int i=0;i<n;i++){
    if(check[i]!=1){
      id++;
    }
  }
  cout<<(n-id)<<endl;
}


Compiler output:
a.cc:4:7: error: expected nested-name-specifier before 'namsepace'
    4 | using namsepace std;
      |       ^~~~~~~~~
a.cc: In function 'int main()':
a.cc:8:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    8 |   cin>>n>>k;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:9:3: error: 'map' was not declared in this scope
    9 |   map<int,int> check;
      |   ^~~
a.cc:9:3: note: suggested alternatives:
In file included from /usr/include/c++/14/map:63,
                 from a.cc:2:
/usr/include/c++/14/bits/stl_map.h:102:11: note:   'std::map'
  102 |     class map
      |           ^~~
/usr/include/c++/14/map:89:13: note:   'std::pmr::map'
   89 |       using map
      |             ^~~
a.cc:9:7: error: expected primary-expression before 'int'
    9 |   map<int,int> check;
      |       ^~~
a.cc:11:5: error: 'check' was not declared in this scope
   11 |     check[i]=0;
      |     ^~~~~
a.cc:17:7: error: 'check' was not declared in this scope
   17 |       check[id]=1;
      |       ^~~~~
a.cc:22:8: error: 'check' was not declared in this scope
   22 |     if(check[i]!=1){
      |        ^~~~~
a.cc:26:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   26 |   cout<<(n-id)<<endl;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
a.cc:26:17: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
   26 |   cout<<(n-id)<<endl;
      |                 ^~~~
      |                 std::endl
In file included from /usr/include/c++/14/iostream:41:
/usr/include/c++/14/ostream:744:5: note: 'std::endl' declared here
  744 |     endl(basic_ostream<_CharT, _Traits>& __os)
      |     ^~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  int c=0,n,k,d,ans[100]={};
  cin>>n>>k;
  cin>>d;
  for(int i=0;i<n;i++)ans[i+1]=i+1;
  for(int i=0;i<n;i++){
   for(int j=0;j<d;j++){
     cin>>k;
     if(k!="\n"){
     	if(k==ans[k])ans[k]=k;
     }
     else break;
   }
  }
   for(int i=0;i<n;i++)if(ans[i+1]!=0)c++;
  cout<<c;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |      if(k!="\n"){
      |         ~^~~~~~
Language: C++

#include<iostream>
#include<string>
using namespace std;
int main(){
  int c=0,n,k,d,ans[100]={};
  cin>>n>>k;
  cin>>d;
  for(int i=0;i<n;i++)i+1=ans[i+1];
  for(int i=0;i<n;i++){
   for(int j=0;j<d;j++){
     cin>>k;
     if(k!="\n"){
     	if(k==ans[k])ans[k]=k;
     }
     else break;
   }
  }
   for(int i=0;i<n;i++)if(ans[i+1]!=0)c++;
  cout<<c;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:24: error: lvalue required as left operand of assignment
    8 |   for(int i=0;i<n;i++)i+1=ans[i+1];
      |                       ~^~
a.cc:12:10: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
   12 |      if(k!="\n"){
      |         ~^~~~~~
Language: C++

#include<iostream>
#include<string>
int main(){
  int c=0,n,k,d,ans[100]={};
  cin>>n>>k;
  cin>>d;
  for(int i=0;i<n;i++)i+1=ans[i+1];
  for(int i=0;i<n;i++){
   for(int j=0;j<d;j++){
     if(cin>>k!="\n"){
     	if(k==ans[k])ans[k]=k;
     }
     else break;
   }
  }
   for(int i=0;i<n;i++)if(ans[i+1]!=0)c++;
  cout<<c;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    5 |   cin>>n>>k;
      |   ^~~
      |   std::cin
In file included from a.cc:1:
/usr/include/c++/14/iostream:62:18: note: 'std::cin' declared here
   62 |   extern istream cin;           ///< Linked to standard input
      |                  ^~~
a.cc:7:24: error: lvalue required as left operand of assignment
    7 |   for(int i=0;i<n;i++)i+1=ans[i+1];
      |                       ~^~
a.cc:17:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   17 |   cout<<c;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

#include<iostream>
#include<String>
int main(){
  int c=0,n,k,d,ans[100]={};
  cin>>n>>k;
  cin>>d;
  for(int i=0;i<n;i++)i+1=ans[i+1];
  for(int i=0;i<n;i++){
   for(int j=0;j<d;j++){
     if(cin>>k!="\n"){
     	if(k==ans[k])ans[k]=k;
     }
     else break;
   }
  }
   for(int i=0;i<n;i++)if(ans[i+1]!=0)c++;
  cout<<c;
}


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

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

int main() {
  int N,K,D,diff;
  cin >> N >>K;
  vector<int> A(N,0);
  
  for(int i = 0;i < K;i++){
    cin >> D;
    if(D >= max){
      max = D;
    }
    for(int j = 0;j < D;j++){
    cin >> diff;
    A[diff] = 1;
    }
  }
    
  
  cout << count(A.begin(), A.end(), 0) - 1 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:10: error: invalid operands of types 'int' and '<unresolved overloaded function type>' to binary 'operator>='
   11 |     if(D >= max){
      |        ~~^~~~~~
a.cc:12:13: error: overloaded function with no contextual type information
   12 |       max = D;
      |             ^
Language: C

#include<stdio.h>
#include<string.h>

int main(){
	int n;
	int k;
	int i,j,l;
	int x;
	int m=0;
	
	scanf("%d %d",&n,&k);
	
    int d[k];
    int a[n]={0};
    
    for(i=0;i<=k;i++){
		scanf("%d",&d[k]);
		for(j=0;j<=d[k];j++){
			scanf("%d",&x);
			a[x-1]++;
		}
	}
	
	for(l=0;l<=n-1;l++){
		if(a[l]==0){
			m++;
		}
	}
	printf("%d",m);
}

Compiler output:
main.c: In function 'main':
main.c:14:14: error: variable-sized object may not be initialized except with an empty initializer
   14 |     int a[n]={0};
      |              ^
Language: C++

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

int main() {
  int n,k;
  cin>>n>>k;
  vector<int> kazu(k);
  vector<vector<int>> data(k,vector<int>(n));
    int count=0;
  for(int i=0;i<k;i++){
    cin>>kazu.at(i);
    count=kazu.at(i);
    for(int j=0;j<kazu.at(i);i++){
      cin>>data.at(i).at(j);
    }
  }
  vector<int> sou(count);
   for(int i=0;i<k;i++){
    for(int j=0;j<kazu.at(i);i++){
      sou.at(i+j)=kazu.at(i).at(j);
    }
  }
  sort(sou.begin(),sou.end());
  int a=0;
  for(int i=0;i<count;i++){
    if(!(sou.at(i)==sou.at(i+1))){
      a++;
    }
  }
  cout<<n-a<<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:30: error: request for member 'at' in 'kazu.std::vector<int>::at(((std::vector<int>::size_type)i))', which is of non-class type '__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type' {aka 'int'}
   20 |       sou.at(i+j)=kazu.at(i).at(j);
      |                              ^~
Language: C++

#include<bits/stdc++.h>
using namespace std;
bool k[105];
int main(){
  int a,b,ans=0;
  cin>>a>>b;
  for(int i=0;i<b;i++){
    int u;
    cin>>u;
    for(int j=0;j<u;j++){
      int f;
      cin>>f;
      k[f]=0;
    }
  }
  for(int i=0;i>b;i++)
    if(k[i]==1
      ans++;
  cout<<ans;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:15: error: expected ';' before 'ans'
   17 |     if(k[i]==1
      |               ^
      |               ;
   18 |       ans++;
      |       ~~~      
a.cc:19:12: error: expected ')' before ';' token
   19 |   cout<<ans;
      |            ^
      |            )
a.cc:17:7: note: to match this '('
   17 |     if(k[i]==1
      |       ^