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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N, K;
  cin >> N >> K;
  vector<int> vec(N,0);
  
  for (int i=0; i<N; i++){
  int a;
  cin >> a;
  for (int b; b<a; b++){
    int c, d, f, g;
    cin >> c;
    d = vec.at(c);
    f = d + 1;
    g = swap(d, f);
  }
  }
	int x;
	for (int i; i<N; i++){
      int f;
      f = vec.at(i);
      if (f == 0){
        x++
      }
      else {
        continue;
      }
    }
	cout << x << endl;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:13: error: void value not ignored as it ought to be
   17 |     g = swap(d, f);
      |         ~~~~^~~~~~
a.cc:25:12: error: expected ';' before '}' token
   25 |         x++
      |            ^
      |            ;
   26 |       }
      |       ~
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,k;
  cin>>n>>k;
  vector<int> v(n,0);
  for(int i=0;i<k;i++){
  	int d;
    cin>>d;
    for(int j=0;j<d;j++){
      int temp;
      cin>>temp;
      v[temp]=1;
    }
  }
  int cnt=0;
  for(int i=0;i<n;i++){
  	if(v[i)==0) cnt++;
  }
   cout<<cnt<<'\n';
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:15: error: expected ']' before ')' token
   18 |         if(v[i)==0) cnt++;
      |               ^
      |               ]
a.cc:18:16: error: expected primary-expression before '==' token
   18 |         if(v[i)==0) cnt++;
      |                ^~
Language: C

#include <stdio.h>
int main (void){
  int N, K, i;
  scanf("%d %d\n"), &N, &K);
  scanf("%d", &i);
  printf("%d", N-i);
  
  return 0;
}

Compiler output:
main.c: In function 'main':
main.c:4:27: error: expected ';' before ')' token
    4 |   scanf("%d %d\n"), &N, &K);
      |                           ^
      |                           ;
main.c:4:27: error: expected statement before ')' token
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:29:25: error: expected '}' at end of input
   29 |         printf("%d", k);
      |                         ^
a.cc:4:11: note: to match this '{'
    4 | int main(){
      |           ^
Language: C++

#include <iostream>
#include <vector>

using namespace std;

int main()
{
    int N, K;
    cin >> N >> K;

    int d;
    int a;

    vector<bool> sunuke = new vector<bool>(N);
    for (int i = 0; i < N; i++)
    {
        sunuke.add(true);
    }
    
    for (int i = 0; i < K; i++)
    {
        cin >> d;
        while (cin >> a)
        {
            sunuke[a] = false;
        }
    }
    int res = 0;


    for (int i = 0; i < N; i++)
    {
        if (sunuke[i])
        {
            res++;
        }        
    }
    cout << res << endl;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:27: error: conversion from 'std::vector<bool>*' to non-scalar type 'std::vector<bool>' requested
   14 |     vector<bool> sunuke = new vector<bool>(N);
      |                           ^~~~~~~~~~~~~~~~~~~
a.cc:17:16: error: 'class std::vector<bool>' has no member named 'add'
   17 |         sunuke.add(true);
      |                ^~~
Language: C

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int N, K;
  cin >> N >> K;
  
  int ans = 0;
  
  vector<vector<int>> data(K, vector<int>(N));
  

  for (int i = 0; i < K; i++) {
    
    int d;
    cin >> d;
    
    for (int j = 0; j < d; j++) {
      
        cin >> data.at(i).at(j);
      
    }
  }
  
  for (int i = 0; i < N; i++) {
    int x = 0;
    for (int j = 0; j < K; j++) {
      
      for (int k = 0; k < data.at(j).size(); k++) {
        if (data.at(j).at(k) == i + 1){
          x = 1;
        }
      }
    }
      if (x == 0){
        ans++;
      }
      
   
  }
  
 cout << ans;
 
}

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++

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

int main() {
  int n,k;
  cin>>n>>k;
  vector<int> d;
  vector<int> nusuke;

  for(int i=0;i<k;i++){
      cin>>d.at(i);
      for(int j=0;j<d.at(i);j++){
          cin>>nusuke[d.at(i)]; 
      }
  }

  int vector_finder(vector<int> vec, int number) {
  auto itr =find(vec.begin(), vec.end(), number);
  size_t index = distance( vec.begin(), itr );
  if (index != vec.size()) { 
    return ;
  }
  else { 
    return number;
  }
}



  for(int m=1;m<=n;m++){
  cout << vector_finder(nusuke, m) << endl;
  }
}

}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:50: error: a function-definition is not allowed here before '{' token
   17 |   int vector_finder(vector<int> vec, int number) {
      |                                                  ^
a.cc:31:11: error: 'vector_finder' was not declared in this scope
   31 |   cout << vector_finder(nusuke, m) << endl;
      |           ^~~~~~~~~~~~~
a.cc: At global scope:
a.cc:35:1: error: expected declaration before '}' token
   35 | }
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  long long N, K;
  cin >> N >> K;
  vector<int> vec(N,0)
  
  for (int i=0; i<N; i++){
  long long a;
  cin >> a;
  for (int b; b<a; b++){
    long long c, d;
    cin >> c;
    d = vec.at(c);
    swap(d, d+1);
  }
  }
	long long = x;
	for (int i; i<N; i++){
      int f;
      f = vec.at(i);
      if (f == 0){
        x++
      }
      else {
        continue;
      }
    }
	cout << x << endl;
	return 0;
}

    
    

Compiler output:
a.cc: In function 'int main()':
a.cc:9:3: error: expected ',' or ';' before 'for'
    9 |   for (int i=0; i<N; i++){
      |   ^~~
a.cc:9:17: error: 'i' was not declared in this scope
    9 |   for (int i=0; i<N; i++){
      |                 ^
a.cc:19:19: error: expected unqualified-id before '=' token
   19 |         long long = x;
      |                   ^
a.cc:24:9: error: 'x' was not declared in this scope
   24 |         x++
      |         ^
a.cc:30:17: error: 'x' was not declared in this scope
   30 |         cout << x << endl;
      |                 ^
Language: C++

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

int main() {
  int N, K;
  cin >> N >> K;
  
  vector<int> children;
  for (int i=0, i<N, i++)
    children.at(i) = i + 1;
  
  for (int i=0, i<K, i++) {
    int d;
    cin >> d;
    
    for (int j=0, j<d, j++) {
      int num;
      cin >> num;
      
      for (int k=0, k < children.size(), k++) {
        if (children.at(k) == num)
          children.at(k) = 0;
      }
    }
  }
  
  int count;
  for (int i=0, i < children.size(), i++) {
    if (children.at(i) != 0)
      count++;
  }
  cout << count << endl;
}
      
    

Compiler output:
a.cc: In function 'int main()':
a.cc:9:18: error: expected ';' before '<' token
    9 |   for (int i=0, i<N, i++)
      |                  ^
      |                  ;
a.cc:9:18: error: expected primary-expression before '<' token
a.cc:9:25: error: expected ';' before ')' token
    9 |   for (int i=0, i<N, i++)
      |                         ^
      |                         ;
a.cc:12:18: error: expected ';' before '<' token
   12 |   for (int i=0, i<K, i++) {
      |                  ^
      |                  ;
a.cc:12:18: error: expected primary-expression before '<' token
a.cc:12:25: error: expected ';' before ')' token
   12 |   for (int i=0, i<K, i++) {
      |                         ^
      |                         ;
a.cc:16:20: error: expected ';' before '<' token
   16 |     for (int j=0, j<d, j++) {
      |                    ^
      |                    ;
a.cc:16:20: error: expected primary-expression before '<' token
a.cc:16:27: error: expected ';' before ')' token
   16 |     for (int j=0, j<d, j++) {
      |                           ^
      |                           ;
a.cc:20:22: error: expected ';' before '<' token
   20 |       for (int k=0, k < children.size(), k++) {
      |                      ^~
      |                      ;
a.cc:20:23: error: expected primary-expression before '<' token
   20 |       for (int k=0, k < children.size(), k++) {
      |                       ^
a.cc:20:45: error: expected ';' before ')' token
   20 |       for (int k=0, k < children.size(), k++) {
      |                                             ^
      |                                             ;
a.cc:28:18: error: expected ';' before '<' token
   28 |   for (int i=0, i < children.size(), i++) {
      |                  ^~
      |                  ;
a.cc:28:19: error: expected primary-expression before '<' token
   28 |   for (int i=0, i < children.size(), i++) {
      |                   ^
a.cc:28:41: error: expected ';' before ')' token
   28 |   for (int i=0, i < children.size(), i++) {
      |                                         ^
      |                                         ;
Language: C++

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

int main() {
  int N,K,D,max=0,diff;
  cin >> N >>K;
  
  for(int i = 0;i < K;i++){
    cin >> D;
    if(D => max){
      max = D;
    }
    for(int j = 0;j < D;j++){
    cin >> diff;
    }
  }
    
  
  cout << N - max << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:10:11: error: expected primary-expression before '>' token
   10 |     if(D => max){
      |           ^
Language: C++

#include<bits/stdc++.h>

using namespace std;

int main(){

int n,k;

cin>>n>>k;

map<int,int>is;

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

  int d;

  cin>>d;

  int arr[d];

	for(int j=0;j<d;j++){

  cin>>arr[i];

	is[arr[i]]++;

}

  

}

cout<<abs(n-is.size());

}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:10: error: call of overloaded 'abs(std::map<int, int>::size_type)' is ambiguous
   33 | cout<<abs(n-is.size());
      |       ~~~^~~~~~~~~~~~~
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:1:
/usr/include/stdlib.h:980:12: note: candidate: 'int abs(int)'
  980 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
      |            ^~~
In file included from /usr/include/c++/14/cstdlib:81:
/usr/include/c++/14/bits/std_abs.h:137:3: note: candidate: 'constexpr __float128 std::abs(__float128)'
  137 |   abs(__float128 __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:85:3: note: candidate: 'constexpr __int128 std::abs(__int128)'
   85 |   abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:79:3: note: candidate: 'constexpr long double std::abs(long double)'
   79 |   abs(long double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:75:3: note: candidate: 'constexpr float std::abs(float)'
   75 |   abs(float __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:71:3: note: candidate: 'constexpr double std::abs(double)'
   71 |   abs(double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:61:3: note: candidate: 'long long int std::abs(long long int)'
   61 |   abs(long long __x) { return __builtin_llabs (__x); }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:56:3: note: candidate: 'long int std::abs(long int)'
   56 |   abs(long __i) { return __builtin_labs(__i); }
      |   ^~~
Language: C++

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

int main(){
  int n, k;
  cin >> n, k;
  vector<int> v(n, 0);
  for(int i = 0;i < k;i++){
    cin >> j;
    int l = 0;
    while(l < j){
      cin >> m;
      if(v.at(m - 1) == 0){
        v.at(m - 1) = 1;
        l++;
      }
    }
  }
  int sum = 0;
  for(int i = 0;i < n;i++){
    if(v.at(i) == 0){
      sum++;
    }
  }
  cout << sum << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:9:12: error: 'j' was not declared in this scope
    9 |     cin >> j;
      |            ^
a.cc:12:14: error: 'm' was not declared in this scope
   12 |       cin >> m;
      |              ^
Language: Java

import java.util.*;

public class Main {

  public static void main(String[] args) {

  	Map<Integer, String> map = new HashMap<>();

    // Scannerクラスのインスタンスを作成
    // 引数で標準入力System.inを指定する
    Scanner scanner = new Scanner(System.in);

    int sunuke_value = scanner.nextInt();
    int okashi_kind = scanner.nextInt();

    while (sc.hasNextLine()) {
    	int sunuke_has = scanner.nextInt();
    	int okashi_has = scanner.next();
    	map.put(sunuke_has, okashi_has);
    }

    System.out.println(sunuke_value - map.keySet().size());

  }

}

Compiler output:
Main.java:16: error: cannot find symbol
    while (sc.hasNextLine()) {
           ^
  symbol:   variable sc
  location: class Main
Main.java:18: error: incompatible types: String cannot be converted to int
    	int okashi_has = scanner.next();
    	                             ^
Main.java:19: error: incompatible types: int cannot be converted to String
    	map.put(sunuke_has, okashi_has);
    	                    ^
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
3 errors
Language: C

#include <iostream>
#include <vector>

using namespace std;

int main(){
   int N, K, count = 0, number;
   cin >> N >> K;
   int d;
   int array[N];
   for(int i = 0; i < N; i++){
       array[i] = 0;
   }
   vector<int> A;
   for(int i = 0; i < K; i++){
       A.resize(0);
       cin >> d;
       for(int j = 0; j < d; j++){
           cin >> number;
           A.push_back(number);
           array[A[j] - 1]++;
       }
   }
   for(int i = 0; i < N; i++){
       if(array[i] == 0){
           count++;
       }
   }
   cout << count << endl;
}

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,;
  string A
  cin >> N >> K  >> A;
  
  int sum;
  
  for(int i = 0;i < N;i++){
    
    if(A[i] == K){
      sum ++
    }
  }
  cout << N - sum << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:5:11: error: expected unqualified-id before ';' token
    5 |   int N,K,;
      |           ^
a.cc:7:3: error: expected initializer before 'cin'
    7 |   cin >> N >> K  >> A;
      |   ^~~
a.cc:13:8: error: 'A' was not declared in this scope
   13 |     if(A[i] == K){
      |        ^
a.cc:14:13: error: expected ';' before '}' token
   14 |       sum ++
      |             ^
      |             ;
   15 |     }
      |     ~
Language: C++

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

int main() {
	int N, K, tmp, cnt=0;
	cin >> N >> K;

	vector<int> d(K*N);

	for(int i=0;i<K;i++){
		cin >> tmp;
		for(int j=0; j<tmp; j++){
			cin >> d.at(cnt);
			cnt++;
		}
	}

	sort(d.begin(), d.end());
	d.erase(unique(d.begin(), d.end()), d.end());

	if(d.size != 1){
		cout << N - d.size() + 1 << endl;
	}else{
		cout << 0 << endl;
	}
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:14: error: invalid use of member function 'std::vector<_Tp, _Alloc>::size_type std::vector<_Tp, _Alloc>::size() const [with _Tp = int; _Alloc = std::allocator<int>; size_type = long unsigned int]' (did you forget the '()' ?)
   21 |         if(d.size != 1){
      |            ~~^~~~
      |                  ()
Language: C++

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

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

#include<bits/stdc++.h>
using namespace std;
bool k[105]={0};
int main(){
  int a,b;
  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]=1;
    }
  }
  for(int k=b-1;k>=0;k++){
    if(k[i]==0){
      cout<<i;
      return 0;
    }
  }
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:17:10: error: 'i' was not declared in this scope
   17 |     if(k[i]==0){
      |          ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() {
  int N, K;
  cin >> N >> K;
  vector<int> vec(N);
   for (int i = 1; i < N + 1; i++) {
   cin >> vec.at(i);
   }
  for (int i = 0;i < K;i++){
    int j, d;
    j = 0;
    d = 0;
    cin >> d;
    for (j = 0;j < d;j++){
      cin >> A;
      vec.at(A) = 0;
    }
  }
  int count = 0;
  for (int n = 0;n < N;i++){
    if(vec.at(n) != 0)
      count++;
  }
  cout << count << endl;
  
      
      


}


Compiler output:
a.cc: In function 'int main()':
a.cc:16:14: error: 'A' was not declared in this scope
   16 |       cin >> A;
      |              ^
a.cc:21:24: error: 'i' was not declared in this scope
   21 |   for (int n = 0;n < N;i++){
      |                        ^
Language: C

#include<iostream>

using namespace std;

int main(){
    int n,k,d,x;
    int ans=0;
    int sukenu[101];
    cin >> n >> k;
    for(int i=0;i<101;i++){
        sukenu[i]=0;
    }
    for(int i=0;i<k;i++){
        cin >> d;
        for(int k=0;k<d;k++){
            cin >> x;
            sukenu[x-1]=1;
        }
    }
    for(int i=0;i<n;i++){
        if(sukenu[i] == 0){
            ans +=1;
        }
    }
    cout <<ans<< endl;
    return 0;
}


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

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 人数の入力
		int ninzu = sc.nextInt();
		int okasi = sc.nextInt();
      	int[] sum = new int[ninzu];
      	for (int i=0; i<okasi; i++){
        	int c = sc.nextInt();
          	for (int j=0; j<c; j++){
              int d = sc.nextInt()
              sum[d] = 1;
            }
        }
      	int ans = 0;
      	for (int i=0; i<sum.length; i++) {
          if (sum[i] == 0) {
            ans += 1;
          }
        }
		// 出力
		System.out.println(ans);
	}
}

Compiler output:
Main.java:12: error: ';' expected
              int d = sc.nextInt()
                                  ^
1 error
Language: C++

#include<iostream>
using namespace std;
int main(){
  int n,k;
  cin >> n >> k;
  
  bool okasi[n];
  
  for (int i=0; i<k; i++)
  {
    int x;
    cin >> x;
    for(int j=0; j<x; j++)
    {
      okasi[y-1]=true;
      int y;
      cin >> y;
      okasi[y-1]=false;  
    }
  }
  
  int it =0;
  for (int i=0; i<n; i++)
  {
    if(okasi[i])
      it++;
  }
  cout << it;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:13: error: 'y' was not declared in this scope
   15 |       okasi[y-1]=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;

int main() {

  int n,k;
  cin >> n >> k;
  
  vector<int> t;
  
  rep(i,k) {
    int d;
    cin >> d;
    
    rep(j,d) {
      int a;
      cin >> a;
      t.push_back(a);
    }
  }
  
  sort(t.begin(), t.end());
  t.erase(unique(t.begin(), t.end()), t.end()); 
  
  cout << n - t.size() << endl;
  
  

}


Compiler output:
a.cc:1:1: error: stray '#' in program
    1 | ​#include <bits/stdc++.h>
      | ^
a.cc:1:1: error: '\U0000200b' does not name a type
    1 | ​#include <bits/stdc++.h>
      |  
a.cc: In function 'int main()':
a.cc:9:3: error: 'cin' was not declared in this scope
    9 |   cin >> n >> k;
      |   ^~~
a.cc:11:3: error: 'vector' was not declared in this scope
   11 |   vector<int> t;
      |   ^~~~~~
a.cc:11:10: error: expected primary-expression before 'int'
   11 |   vector<int> t;
      |          ^~~
a.cc:20:7: error: 't' was not declared in this scope
   20 |       t.push_back(a);
      |       ^
a.cc:24:8: error: 't' was not declared in this scope
   24 |   sort(t.begin(), t.end());
      |        ^
a.cc:24:3: error: 'sort' was not declared in this scope; did you mean 'short'?
   24 |   sort(t.begin(), t.end());
      |   ^~~~
      |   short
a.cc:25:11: error: 'unique' was not declared in this scope
   25 |   t.erase(unique(t.begin(), t.end()), t.end());
      |           ^~~~~~
a.cc:27:3: error: 'cout' was not declared in this scope
   27 |   cout << n - t.size() << endl;
      |   ^~~~
a.cc:27:27: error: 'endl' was not declared in this scope
   27 |   cout << n - t.size() << endl;
      |                           ^~~~
Language: Java

public class Main {
    public static void main(final String args[]) {
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int K = scan.nextInt();
        int d[];
        d = new int[K];
        int A[][];
        A = new int[K][N];
        for(int k = 0; k < K;k++){
            d[k] = scan.nextInt();
            for(int dc = 0;dc < d[k];dc++){
                A[k][dc] = scan.nextInt();
            }
        }
        int R = 0;
        for(int y = 0;y < N;y++){
            for(int x = 0;x < K;x++){
                if(A[x][y] != 0){
                    break;
                }else if(x == K-1){
                    R++;
                }
            }
        }
        System.out.println(R);
    }
}

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

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

int main() {
  int N,K;
  cin >> N >> K;
  int D;
  vector<int> A(D);
  map<int,int> record;
  for (int i = 0; i < K; i++) {
    cin >> D;
    for (int j =  0; j < D; j++) {
      cin >> A.at(i);
    }
    for (int x: A) {
      if (record.count(x)) {
        record[x]++;
      }
      else {
        record[x] = 1;
      }
    }
  }
  int ans = 0;
  for (int i = 1; i < N+1; i++) {
    if (scora.count(i)) {
      ans += 0;
    }
    else {
      ans++;
    }
  }
  cout << ans <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:26:9: error: 'scora' was not declared in this scope
   26 |     if (scora.count(i)) {
      |         ^~~~~
Language: C++

#include <iostream>
int main(){
  int n,k,d[99],a[99][99],b[99],i,j;
  cin >> n; cin >> k;
  for (i=0;i<k;i++){
    cin >> d[i];
    for (j=0;j<d[i];j++){
      cin >> a[i][j];
      if(b[a[i][j]] == 0){b[a[i][j]]=1;n--;}
    }
  }
  cout << "%d" << n;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> n; cin >> 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:12:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   cout << "%d" << n;
      |   ^~~~
      |   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>
int main(){
  int n,k,d[],a[][],b[],i,j;
  cin >> n; cin >> k;
  for (i=0;i<k;i++){
    cin >> d[i];
    for (j=0;j<d[i];j++){
      cin >> a[i][j];
      if(b[a[i][j]] == 0){b[a[i][j]]=1;n--;}
    }
  }
  cout << "%d" << n;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:3:11: error: storage size of 'd' isn't known
    3 |   int n,k,d[],a[][],b[],i,j;
      |           ^
a.cc:3:15: error: declaration of 'a' as multidimensional array must have bounds for all dimensions except the first
    3 |   int n,k,d[],a[][],b[],i,j;
      |               ^
a.cc:3:21: error: storage size of 'b' isn't known
    3 |   int n,k,d[],a[][],b[],i,j;
      |                     ^
a.cc:4:3: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
    4 |   cin >> n; cin >> 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:8:14: error: 'a' was not declared in this scope
    8 |       cin >> a[i][j];
      |              ^
a.cc:12:3: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
   12 |   cout << "%d" << n;
      |   ^~~~
      |   std::cout
/usr/include/c++/14/iostream:63:18: note: 'std::cout' declared here
   63 |   extern ostream cout;          ///< Linked to standard output
      |                  ^~~~
Language: C++

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

//マクロ
//forループ関係
//引数は、(ループ内変数,動く範囲)か(ループ内変数,始めの数,終わりの数)、のどちらか
//Dがついてないものはループ変数は1ずつインクリメントされ、Dがついてるものはループ変数は1ずつデクリメントされる
#define REP(i,n) for(ll i=0;i<(ll)(n);i++)
#define REPD(i,n) for(ll i=n-1;i>=0;i--)
#define FOR(i,a,b) for(ll i=a;i<=(ll)(b);i++)
#define FORD(i,a,b) for(ll i=a;i>=(ll)(b);i--)
//xにはvectorなどのコンテナ
#define ALL(x) (x).begin(),(x).end() //sortなどの引数を省略したい
#define SIZE(x) ((ll)(x).size()) //sizeをsize_tからllに直しておく
#define MAX(x) *max_element(ALL(x)) //最大値を求める
#define MIN(x) *min_element(ALL(x)) //最小値を求める
#define D()
//定数
#define INF 1000000000000 //10^12:極めて大きい値,∞
#define MOD 10000007 //10^9+7:合同式の法
#define MAXR 100000 //10^5:配列の最大のrange(素数列挙などで使用)
//略記
#define PB push_back //vectorヘの挿入
#define MP make_pair //pairのコンストラクタ
#define F first //pairの一つ目の要素
#define S second //pairの二つ目の要素

int main(void) {
     int N,K,d;
     int A;
     
    cin >> N >> K;ac
int B[N];
     for(int i=0;i<N;++i){
         B[i] = 0;
     }
for(int i=0;i<K;++i){
    cin >> d;
   for(int j = 0; j <d; ++j){
        cin >> A;
        B[A-1] = 1;
    }
} 
int g = 0;
for(int i=0;i<N;++i){
    //printf("%d ", B[i]);
    if(B[i] == 0){
         g = g + 1;
    }
}

printf("%d\n",g);
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:33:19: error: 'ac' was not declared in this scope
   33 |     cin >> N >> K;ac
      |                   ^~
a.cc:36:10: error: 'B' was not declared in this scope
   36 |          B[i] = 0;
      |          ^
a.cc:42:9: error: 'B' was not declared in this scope
   42 |         B[A-1] = 1;
      |         ^
a.cc:48:8: error: 'B' was not declared in this scope
   48 |     if(B[i] == 0){
      |        ^
Language: C++

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

  int n,k;
  cin >> n >> k ;
 
  int input(){
    for(j=0;j<100;j++){
    int d;
    cin >> d;
 vec<int> d1(d);   
    for(int i=0; i < d;i++){
      cin >> d1.at(i) 
     }
    }
    

int main() {
  input()
}

Compiler output:
a.cc:5:3: error: 'cin' does not name a type
    5 |   cin >> n >> k ;
      |   ^~~
a.cc: In function 'int input()':
a.cc:8:9: error: 'j' was not declared in this scope
    8 |     for(j=0;j<100;j++){
      |         ^
a.cc:11:2: error: 'vec' was not declared in this scope
   11 |  vec<int> d1(d);
      |  ^~~
a.cc:11:6: error: expected primary-expression before 'int'
   11 |  vec<int> d1(d);
      |      ^~~
a.cc:13:14: error: 'd1' was not declared in this scope; did you mean 'd'?
   13 |       cin >> d1.at(i)
      |              ^~
      |              d
a.cc:18:9: warning: empty parentheses were disambiguated as a function declaration [-Wvexing-parse]
   18 | int main() {
      |         ^~
a.cc:18:9: note: remove parentheses to default-initialize a variable
   18 | int main() {
      |         ^~
      |         --
a.cc:18:9: note: or replace parentheses with braces to value-initialize a variable
a.cc:18:12: error: a function-definition is not allowed here before '{' token
   18 | int main() {
      |            ^
a.cc:20:2: error: expected '}' at end of input
   20 | }
      |  ^
a.cc:7:14: note: to match this '{'
    7 |   int input(){
      |              ^
a.cc:20:2: warning: no return statement in function returning non-void [-Wreturn-type]
   20 | }
      |  ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  int n,k,d;
  cin>>n>>k;
  
  while(k--)
  {
  	int ans=0,maxi=0;
    cin>>d;
    ans=max(ans,d);
    int a;
    for(int i=0;i<d;i++)
    {
    	cin>>a;
    	maxi=max(maxi,a);

	}
	
 	}
 	cout<<abs(ans-maxi)<<endl;
	return 0;
}

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

#include <bits/stdc++.h>
using namespace std;
#define int long long
#define All(v) (v).begin(),(v).end()

signed main(){
    ios::sync_with_stdio(false);
    cin.tie(0);
    int n,k;
    cin>>n>>k;
    bool have[d5];
    fill(have,have+d5,true);
    for(int i=0;i<k;i++){
        int d;
        cin>>d;
        for(int j=0;j<d;j++){
            int x;
            cin>>x;
            x--;
            have[x]=false;
        }
    }
    int res=0;
    for(int i=0;i<n;i++)res+=have[i];
    cout<<res<<endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:15: error: 'd5' was not declared in this scope
   11 |     bool have[d5];
      |               ^~
a.cc:12:10: error: 'have' was not declared in this scope
   12 |     fill(have,have+d5,true);
      |          ^~~~
Language: C

#include<iostream>

using namespace std;

int main(){
    int n,k,d,x;
    int ans=0;
    int sukenu[101];
    cin >> n >> k;
    for(int i=0;i<101;i++){
        sukenu[i]=0;
    }
    for(int i=0;i<k;i++){
        cin >> d;
        for(int k=0;k<d;k++){
            cin >> x;
            sukenu[x]=1;
        }
    }
    for(int i=0;i<n;i++){
        if(sukenu[i] == 0){
            ans +=1;
        }
    }
    ans = ans-1;
    cout <<ans<<endl;
    return 0;
}


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

#include <bits/stdc++.h>

using namespace std;
using ll = long long;
using vi = vector<int>;

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

	int n, k;
	cin >> n >> k;

	vi d(k);
	vector<vector<int>> a;


	rep(i, k) {
		cin >> d[i];
		vi aa(d[i]);
		rep(j, d[i]) {
			cin >> aa[j];
		}
		a.emplace_back(aa);
	}

	int ha[100];
	rep(i, n)ha[i] = 1;


	for (int i = 0; i < a.size(); i++) {
		for (int j = 0; j < a[i].size(); j++) {
			ha[a[i][j] - 1] = 0;
		}
	}
	int ans = 0;
	rep(i, n) {
		if (ha[i] == 1) {
			ans++;
		}
	}

	cout << ans << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:13: error: 'i' was not declared in this scope
   18 |         rep(i, k) {
      |             ^
a.cc:18:9: error: 'rep' was not declared in this scope
   18 |         rep(i, k) {
      |         ^~~
Language: C++

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

int main()
{
	int n,k;
    cin>>n>>k;
  	vector<int> d,a;
  	while(k--)
    {
      int di,ai;
      cin>>di;
      for(int i=0;i<di;i++)
      {
		cin>>ai;
        a.push_back(ai);
      }
    }
  int count = 0;
     for(int i=1;i<=n;i++)
     {
		if(find(a.begin(),a.end(),i)==a.end())
        {
          count++;
        }
     }
  cout<<count<<endl;
      
      

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

#include <stdio.h>
int main(void){
  int n,k,d[],a[][],b[],i,j;
  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[i][j]);
      if(b[a[i][j]] == 0){b[a[i][j]]=1;n--;}
    }
  }
  printf("%d",n);
  return 0;
}
  

Compiler output:
main.c: In function 'main':
main.c:3:11: error: array size missing in 'd'
    3 |   int n,k,d[],a[][],b[],i,j;
      |           ^
main.c:3:15: error: array type has incomplete element type 'int[]'
    3 |   int n,k,d[],a[][],b[],i,j;
      |               ^
main.c:3:15: note: declaration of 'a' as multidimensional array must have bounds for all dimensions except the first
main.c:3:21: error: array size missing in 'b'
    3 |   int n,k,d[],a[][],b[],i,j;
      |                     ^
Language: C

#include<iostream>
#include<stdio.h>
#include<string.h>
#include<algorithm>
#include<vector>
#include<queue>
#include<map>
#include<set>
#include<iomanip>
#include<cmath>

#define REP(i,n) for (int i = 0; (i) < (n); ++ (i))
#define FOR(i,n) for (int i = 1; (i) <= (n); ++ (i))
#define dump(x)  cout << #x << " = " << (x) << endl;
#define pb push_back
#define int long long

const int INF = 1e18;
const int MOD = 1e9+7;
//const lint LINF = 1e18;
const double eps = 0.000000001;//もとの値の10^(-16)まで

using namespace std;

//typedef pair<int, int> P;
//priority_queue< P, vector<P>, greater<P> > q;//ダイクストラの時、greaterで小さい順
//cout << fixed << setprecision(10) << ans << endl;
//int gcd(int a,int b){return b?gcd(b,a%b):a;}

int kotae[200];


signed main(){
    int n,k;
    cin >> n >> k;
    REP(i,k){
        int d1;
        cin >> d1;
        REP(j,d1){
            int a1;
            cin >> a1;
            kotae[a1] ++;
        }
    }
    int ans = 0;
    REP(i,n){
        if(kotae[i+1]==0) ans ++;
    }
    cout << ans << endl;
    return 0;
}

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

#include<iostream>
#include<vector>
int main(){
    int N, K, d;
    std::cin >> N >> K;
    std::vector<int> vec;
    for(int i=0; i<N; i++){
        vec.push_back(i+1);
    }
    for(int i=0; i<K; i++){
        int tmp;
        std::cin >> d;
        for(int j=0; j<d; j++){
            std::cin >> tmp;
            vec.erase(std::remove(vec.begin(), vec.end(), tmp), vec.end());
        }
    }
    printf("%d\n", (int)vec.size());
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:15:44: error: cannot convert 'std::vector<int>::iterator' to 'const char*'
   15 |             vec.erase(std::remove(vec.begin(), vec.end(), tmp), vec.end());
      |                                   ~~~~~~~~~^~
      |                                            |
      |                                            std::vector<int>::iterator
In file included from /usr/include/c++/14/cstdio:42,
                 from /usr/include/c++/14/ext/string_conversions.h:45,
                 from /usr/include/c++/14/bits/basic_string.h:4154,
                 from /usr/include/c++/14/string:54,
                 from /usr/include/c++/14/bits/locale_classes.h:40,
                 from /usr/include/c++/14/bits/ios_base.h:41,
                 from /usr/include/c++/14/ios:44,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/stdio.h:158:32: note:   initializing argument 1 of 'int remove(const char*)'
  158 | extern int remove (const char *__filename) __THROW;
      |                    ~~~~~~~~~~~~^~~~~~~~~~
Language: C++

#incldue<iostream>
#include<vector>

using namespace std;

int main()
{
  int n,k;
  
  cin>>n>>k;
  
  vector<int> a;
  
  int d=0,buf_a=0;
  
  for(int i=0;i<k;i++)
  {
    cin>>d;
    
    for(int f=0;f<d;f++)
    {
		cin>>buf_a;
        a.push_back(buf_a);
    }
  }
  
  int ans=0;
  
  for(int i=1;i<=n;i++)
  {
    for(int j=0;j<a.size();j++)
    {
      if(i!=a[j])
        ans++;
    }
  }
  
  cout<<ans<<endl;
  
  return 0;
}

Compiler output:
a.cc:1:2: error: invalid preprocessing directive #incldue; did you mean #include?
    1 | #incldue<iostream>
      |  ^~~~~~~
      |  include
a.cc: In function 'int main()':
a.cc:10:3: error: 'cin' was not declared in this scope
   10 |   cin>>n>>k;
      |   ^~~
a.cc:3:1: note: 'std::cin' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
    2 | #include<vector>
  +++ |+#include <iostream>
    3 | 
a.cc:38:3: error: 'cout' was not declared in this scope
   38 |   cout<<ans<<endl;
      |   ^~~~
a.cc:38:3: note: 'std::cout' is defined in header '<iostream>'; this is probably fixable by adding '#include <iostream>'
a.cc:38:14: error: 'endl' was not declared in this scope
   38 |   cout<<ans<<endl;
      |              ^~~~
a.cc:3:1: note: 'std::endl' is defined in header '<ostream>'; this is probably fixable by adding '#include <ostream>'
    2 | #include<vector>
  +++ |+#include <ostream>
    3 |
Language: C++

#include<bits/stdc++.h>
//#define attrib +h /s /d
using namespace std;
int main(){

   long long int n,a,b,c,d,e,f=0,g=0,i,j,k,l,t,u,ar[1000];
   double res,arr[100][100];
   string x,y;
   char ch,ch1;
   vector<int> v;
   vector<int> v1;
   set<int> s;
   cin>>a>>b;
   while(b--){
     cin>>c;
     for(i=0;i<c;i++){
        cin>>d;
        s.insert(d);
     }
   }
   cout<<abs(a-s.size())<<endl;



   return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:21:13: error: call of overloaded 'abs(long long unsigned int)' is ambiguous
   21 |    cout<<abs(a-s.size())<<endl;
      |          ~~~^~~~~~~~~~~~
In file included from /usr/include/c++/14/cstdlib:79,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:42,
                 from a.cc:1:
/usr/include/stdlib.h:980:12: note: candidate: 'int abs(int)'
  980 | extern int abs (int __x) __THROW __attribute__ ((__const__)) __wur;
      |            ^~~
In file included from /usr/include/c++/14/cstdlib:81:
/usr/include/c++/14/bits/std_abs.h:137:3: note: candidate: 'constexpr __float128 std::abs(__float128)'
  137 |   abs(__float128 __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:85:3: note: candidate: 'constexpr __int128 std::abs(__int128)'
   85 |   abs(__GLIBCXX_TYPE_INT_N_0 __x) { return __x >= 0 ? __x : -__x; }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:79:3: note: candidate: 'constexpr long double std::abs(long double)'
   79 |   abs(long double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:75:3: note: candidate: 'constexpr float std::abs(float)'
   75 |   abs(float __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:71:3: note: candidate: 'constexpr double std::abs(double)'
   71 |   abs(double __x)
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:61:3: note: candidate: 'long long int std::abs(long long int)'
   61 |   abs(long long __x) { return __builtin_llabs (__x); }
      |   ^~~
/usr/include/c++/14/bits/std_abs.h:56:3: note: candidate: 'long int std::abs(long int)'
   56 |   abs(long __i) { return __builtin_labs(__i); }
      |   ^~~
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 人数の入力
		int ninzu = sc.nextInt();
		int okasi = sc.nextInt();
      	int[] sum = new int[ninzu];
      	for (int i=0; i<okasi; i++){
        	int c = sc.nextInt();
          	for (int j=0; j<c; j++){
              sum[sc.nextInt()] = 1;
            }
        }
      	int ans = 0;
      	for (int i=0; i<sum.length(); i++) {
          if (sum[i] != 1) {
            ans += 1;
          }
        }
		// 出力
		System.out.println(ans);
	}
}

Compiler output:
Main.java:16: error: cannot find symbol
      	for (int i=0; i<sum.length(); i++) {
      	                   ^
  symbol:   method length()
  location: variable sum of type int[]
1 error
Language: C++

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

int main(){
	int n,k,ans = 0;
	vector<int> v;

	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;
			v.push_back(a);
		}
	}

	for (int l = 1; l <= n; l++) {
		vector<int>::iterator itr = find(v.begin(), v.end(), l);
		if(itr == v.end()) {
			ans++;
		}
	}

	cout << ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:49: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, int&)'
   23 |                 vector<int>::iterator itr = find(v.begin(), v.end(), l);
      |                                             ~~~~^~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/14/bits/locale_facets.h:48,
                 from /usr/include/c++/14/bits/basic_ios.h:37,
                 from /usr/include/c++/14/ios:46,
                 from /usr/include/c++/14/ostream:40,
                 from /usr/include/c++/14/iostream:41,
                 from a.cc:1:
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
  435 |     find(istreambuf_iterator<_CharT> __first,
      |     ^~~~
/usr/include/c++/14/bits/streambuf_iterator.h:435:5: note:   template argument deduction/substitution failed:
a.cc:23:49: note:   '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' is not derived from 'std::istreambuf_iterator<_CharT>'
   23 |                 vector<int>::iterator itr = find(v.begin(), v.end(), l);
      |                                             ~~~~^~~~~~~~~~~~~~~~~~~~~~~
Language: C++

#include <iostream>

using namespace std;

int main() {

    int n1, k1, d1, a1;
    cin >> n1 >> k1;

    bool snack[n1] = {false};

    for (int i = 0; i < k1; i++) {
        cin >> d1;
        for (int j = 0; j < d1; j++) {
            cin >> a1;
            snack[a1 - 1] = true;
        }
    }

    int c1 = 0;
    for (int i = 0; i < n; i++) {
        if (!snack[i])
            c1++;
    }

    cout << c1;

    return 0;
}

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

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

int main(){
    int n,k;
    cin >> n >> k;
    int d[k];
    int a_buff;
    int sum[n];
    rep(i,n) sum[i] = 0;
    int cnt = 0;
    rep(i,k){
        cin >> d[i];
        rep(j,d[i]){
            cin >> a_buff;
            sum[a_buff-1]++;
        }
    }
    
    rep(i,n){
        if(sum[i] == 0){
            cnt++;
        }
    }

    cout << cnt << endl;

    return 0;
}

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++

#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);
  }
  
  vector<vector<int>> A(k, vector<int>(n));
  
  for(int j=0;j<k;j++){
    for(int m=0;m<n;m++){
       cin >> A.at(j).at(m);
    }
  }
  
  set<int> S;
  
  for(int j=0;j<k;j++){
    for(int m=0;m<n;m++){
       S.insert(A.at(j).at(m));
    }
  }
  
  S.insert(0);
  
  cout << N-S.size()+1 << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:33:11: error: 'N' was not declared in this scope
   33 |   cout << N-S.size()+1 << endl;
      |           ^
Language: C++

#include <iostream>

using namespace std;

int main(void){

    int N, K, *n, d, dn, count;

    cin >> N >> K;

    n = new int[N];
    n[0] = 7;
    for (i = 0; i < N; i++) {
        n[i + 1] = i + 1;
    }

    for (i = 0; i < K; i++) {
        cin >> d;
        for (i = 0; i < d; i++) {
            cin >> dn;
            if (n[dn] != 0) {
                n[dn] = 0;
            }
        }
    }

    count = 0;
    for (i = 0; i < N; i++) {
        if (n[i + 1] != 0) {
            count++;
        }
    }

    cout << count << endl;

    delete n;

    return 0;
}


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

#include <iostream>
using namespace std;

int main() {

    int n1, k1, d1, a1;
  
    cin >> n1 >> k1;

    bool snack[n1] = {false};

    for (int i = 0; i < k1; i++) {
        cin >> d1;
        for (int j = 0; j < d1; j++) {
            cin >> a1;
            snack[a1 - 1] = true;
        }
    }

    int c = 0;
    for (int i = 0; i < n1; i++) {
        if (!snack[i])
            c1++;
    }

    cout << c1;

    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:13: error: 'c1' was not declared in this scope; did you mean 'c'?
   23 |             c1++;
      |             ^~
      |             c
a.cc:26:13: error: 'c1' was not declared in this scope; did you mean 'c'?
   26 |     cout << c1;
      |             ^~
      |             c
Language: Java

import java.util.*;
public class Main {
	public static void main(String[] args){
		Scanner sc = new Scanner(System.in);
		// 人数の入力
		int ninzu = sc.nextInt();
		int okasi = sc.nextInt();
      	int[] sum = new int[ninzu];
      	for (int i=0; i<okasi; i++){
        	int c = sc.nextInt();
          	for (int j=0; j<c; j++){
              sum[sc.nextInt()] = 1;
            }
        }
      	int ans = 0;
      	for (int i=0; i+1<sum.size(); i++) {
          if (sum[i] != 1) {
            ans += 1;
          }
        }
		// 出力
		System.out.println(ans);
	}
}

Compiler output:
Main.java:16: error: cannot find symbol
      	for (int i=0; i+1<sum.size(); i++) {
      	                     ^
  symbol:   method size()
  location: variable sum of type int[]
1 error
Language: C++

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n, k;
  cin >> n >> k;
  
  vector<int> d(k);

  
  for(i=0;i<k;i++){
    cin >> d.at(i);
  }
  
  vector<vector<int>> A(k, vector<int>(n));
  
  for(j=0;j<k;j++){
    for(m=0;m<n;m++){
       cin >> A.at(j).at(m);
    }
  }
  
  set<int> S;
  
  for(j=0;j<k;j++){
    for(m=0;m<n;m++){
       S.insert(A.at(j).at(m));
    }
  }
  
  S.insert(0);
  
  cout << N-S.size()+1 << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:11:7: error: 'i' was not declared in this scope
   11 |   for(i=0;i<k;i++){
      |       ^
a.cc:17:7: error: 'j' was not declared in this scope
   17 |   for(j=0;j<k;j++){
      |       ^
a.cc:18:9: error: 'm' was not declared in this scope
   18 |     for(m=0;m<n;m++){
      |         ^
a.cc:25:7: error: 'j' was not declared in this scope
   25 |   for(j=0;j<k;j++){
      |       ^
a.cc:26:9: error: 'm' was not declared in this scope
   26 |     for(m=0;m<n;m++){
      |         ^
a.cc:33:11: error: 'N' was not declared in this scope
   33 |   cout << N-S.size()+1 << endl;
      |           ^