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

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


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

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

    map<int, int> m;
    for(int i = 1; k >= i; i++){
        m[i];
    }

    for(int i = 0; k > i; i++){{
        cin >> d;
        while(--d){
            cin >> a;
            m[a] = 1;
        }
    }

    for(auto p: m){
        if(p.second == 0)
            cout << p.first << endl;
    }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:2: error: expected '}' at end of input
   25 | }
      |  ^
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,ans = 0;
  cin >> N >> K;
  vector<int> vec(K+1) = {};
  for(int i=0; i<K; i++){
    int d;
    cin >> d;
    for(int j=0; j<d; j++){
      int a;
      cin >> a;
      vec[a-1] = 1;
    }
  }
  for(int i=0; i<N; i++){
    if(vec[i] == 0){
      ans++;
    }
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:7:24: error: expected ',' or ';' before '=' token
    7 |   vector<int> vec(K+1) = {};
      |                        ^
Language: C++

#include<iostream>
using namespace std;
int main()
{
    int n, k, ans = 0;
    cin >> n >> k;
    int a[200][200], d[200];
    for(int i = 0; i < k; i++)
    {
        cin >> d[i];
        for(int j = 0; j < d[i]; j++)
        {
            cin >> a[i][j];
        }
    }
    for(int i = 1; i <= n; i++)
    {
        bool have = false;
        for(int j = 0; j < k; j++)
        {
            for(int v = 0; v < d[j]; v++)
                
        }

        if(!have)
            ans++;
    }
    cout << ans;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:23:9: error: expected primary-expression before '}' token
   23 |         }
      |         ^
Language: C++

#include <bits/stdc++.h>
#define REP(i,n) for (int i = 0; i < (n); i++)
#define RREP(i, s, n) for (int i = s; i < (n); i++)
#define ALL(a) a.begin(), a.end()
#define RALL(a) a.rbegin(), a.rend()
template<class T> inline bool chmax(T& a, T b) { if (a < b) { a = b; return 1; } return 0; }
template<class T> inline bool chmin(T& a, T b) { if (a > b) { a = b; return 1; } return 0; }
using namespace std;
using ll = long long;
typedef pair<int, int> pint;
typedef pair<ll, ll> pll;
const ll MOD = 1000000007;
const ll INF = MOD * MOD;
const int inf = (1<<29);

int main() {

    int n, k;
    cin >> n >> k;
    
    bool snuke(n, false);

    for(int i = 0; i < k; i++) {
        int d;
        cin >> d;
        for(int j = 0; j < d; j++) {
            int A;
            cin >> A;
            snuke[A-1] = true;
        }
    }

    int res = 0;
    for(int i = 0; i < n; i++) {
        if (snuke[i] == false) res++;
    }

    cout << res << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:21:24: error: expression list treated as compound expression in initializer [-fpermissive]
   21 |     bool snuke(n, false);
      |                        ^
a.cc:29:18: error: invalid types 'bool[int]' for array subscript
   29 |             snuke[A-1] = true;
      |                  ^
a.cc:35:18: error: invalid types 'bool[int]' for array subscript
   35 |         if (snuke[i] == false) res++;
      |                  ^
Language: C++



#include <bits/stdc++.h>
#include <string.h>
#include <vector>
//s#define rep(i, n) for (int i = 0; i < (n); i++)
#define MAX 10000

using namespace std;

#define ll long long
#define pb push_back
#define mp make_pair
#define all(a) (a).begin(),(a).end()
#define rep(i,a,n) for(int i=a; i<n; i++)
#define r0 return 0
#define INF (int)1e15
#define MOD 1000000007

#define access(i) a[i/3][i%3]
int gcd(int x, int y)
{
    if(y==0)
        return x;
    return gcd(y, x%y);
}

 long long numbers[500005];

//int a[100005];

 int main(){

 long long n,k;
 cin>>n>>k;

 int done[n] = {0};

 while(k--)
 {
  int d,x;
   cin>>d;

   for(int i=0;i<d;i++){
        cin>>x;
     done[--x] = 1;
   }
 }

 int cnt=0;

 for(int i=0;i<n;i++){
    //    cout<<done[i]<<"  ";
    if(done[i] == 0){
        cnt++;
    }
 }

 cout<<cnt<<endl;

 return 0;
 }


#include <bits/stdc++.h>
#include <string.h>
#include <vector>
//s#define rep(i, n) for (int i = 0; i < (n); i++)
#define MAX 10000

using namespace std;

#define ll long long
#define pb push_back
#define mp make_pair
#define all(a) (a).begin(),(a).end()
#define rep(i,a,n) for(int i=a; i<n; i++)
#define r0 return 0
#define INF (int)1e15
#define MOD 1000000007

#define access(i) a[i/3][i%3]
int gcd(int x, int y)
{
    if(y==0)
        return x;
    return gcd(y, x%y);
}

 long long numbers[500005];

//int a[100005];

 int main(){

 long long n,k;
 cin>>n>>k;

 int done[n] = {0};

 while(k--)
 {
  int d,x;
   cin>>d;

   for(int i=0;i<d;i++){
        cin>>x;
     done[--x] = 1;
   }
 }

 int cnt=0;

 for(int i=0;i<n;i++){
    //    cout<<done[i]<<"  ";
    if(done[i] == 0){
        cnt++;
    }
 }

 cout<<cnt<<endl;

 return 0;
 }


Compiler output:
a.cc:83:5: error: redefinition of 'int gcd(int, int)'
   83 | int gcd(int x, int y)
      |     ^~~
a.cc:21:5: note: 'int gcd(int, int)' previously defined here
   21 | int gcd(int x, int y)
      |     ^~~
a.cc:90:12: error: redefinition of 'long long int numbers [500005]'
   90 |  long long numbers[500005];
      |            ^~~~~~~
a.cc:28:12: note: 'long long int numbers [500005]' previously declared here
   28 |  long long numbers[500005];
      |            ^~~~~~~
a.cc:94:6: error: redefinition of 'int main()'
   94 |  int main(){
      |      ^~~~
a.cc:32:6: note: 'int main()' previously defined here
   32 |  int main(){
      |      ^~~~
Language: C++

#include <algorithm>
#include <bitset>
#include <tuple>
#include <cstdint>
#include <cstdio>
#include <cctype>
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
#include <cassert>
#include <cfloat>
#include <climits>
#include <cmath>
#include <complex>
#include <ctime>
#include <deque>
#include <fstream>
#include <functional>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <limits>
#include <map>
#include <memory>
#include <queue>
#include <random>
#include <set>
#include <stack>
#include <string>
#include <unordered_map>
#include <unordered_set>
#include <utility>
#include <vector>
#include <math.h>

// ===============================================================

using namespace std;
using ll = long long;
using vl = vector<long long>;
using vll = vector<vector<long long>>;
using vs = vector<string>;
using vc = vector<char>;
using vcc = vector<vector<char>>;
using vm = vector<short>;
using vmm = vector<vector<short>>;
using pii = pair<int, int>;
using psi = pair<string, int>;
using ld = long double;
using ull = unsigned long long;

// ===============================================================

ll gcd(ll a, ll b) //最大公約数
{
	if (a % b == 0)
	{
		return(b);
	}
	else
	{
		return(gcd(b, a % b));
	}
}

ll lcm(ll a, ll b) //最小公倍数
{
	return a * b / gcd(a, b);
}

ll box(double a) //doubleの切り捨て
{
	ll b = a;
	return b;
}

ll fff(double a) //doubleの四捨五入
{
	ll b = a + 0.5;
	return b;
}

ll sum(ll n) { //整数sまでの合計
	if (n == 0) {
		return 0;
	}

	int s = sum(n - 1);
	return s + n;
}

bool prime(ll num)//素数判定、primeならtrue,違うならfalse
{
	if (num < 2) return false;
	else if (num == 2) return true;
	else if (num % 2 == 0) return false;
	double sqrtNum = sqrt(num);
	for (int i = 3; i <= sqrtNum; i += 2)
	{
		if (num % i == 0)
		{
			return false;
		}
	}

	// 素数である
	return true;
}

// ===============================================================

int main() {
	ll n;
	cin >> n;
	ll k;
	cin >> k;
	vl ans(n+1);
	for (int i = 0; i < k; i++) {
		ll a;
		cin >> a;
		for (int j = 0; j < a; j++) {
			ll b;
			cin >> b;
			ans[b]++;
		}
	}
	ll kotae = 0;
	for (int i = 1; i <= n; i++) {
		if (ans[i] == 0) {
			kotae++;
		}
	}
	cout << kotae << endl;/*٩(๑òωó๑)۶ [/*٩(๑òωó๑)۶ [/*٩(๑òωó๑)۶ [/*٩(๑òωó๑)۶ [/*٩(๑òωó๑)۶ [/*٩(๑òωó๑)۶ [
}

Compiler output:
a.cc:134:31: error: unterminated comment
  134 |         cout << kotae << endl;/*٩(๑òωó๑)۶ [/*٩(๑òωó๑)۶ [/*٩(๑òωó๑)۶ [/*٩(๑òωó๑)۶ [/*٩(๑òωó๑)۶ [/*٩(๑òωó๑)۶ [
      |                               ^
a.cc: In function 'int main()':
a.cc:134:31: error: expected '}' at end of input
a.cc:113:12: note: to match this '{'
  113 | int main() {
      |            ^
Language: C++

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

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

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

import java.util.*;
 public class Main {
	public static void main(String[] args){
      int N = 3;
      int K = 2;

      int[] d;
      int[] a;

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


            }
     }
   }

Compiler output:
Main.java:11: error: not a statement
         int
         ^
Main.java:11: error: ';' expected
         int
            ^
2 errors
Language: C++

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

int main() {
  int N,K;
  cin >> N >> K;
  vector<bool>data(N+1,false);
  for(int i=0;i<K;i++){
    int a;
    cin >> a;
    for(int j=0;j<a;j++){
      int b;
      cin >> b;
      data.at(b)=true;
    }
  }
  int ans=0;
  for(int i=1;i<N+1){
    if(!data.at(i)) ans++;
  }
  cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:18:20: error: expected ';' before ')' token
   18 |   for(int i=1;i<N+1){
      |                    ^
      |                    ;
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main(){
  int n,k;
  cin >> n >> k;
  int a[n]={false};
  for(int i=0;i<k;i++){
    cin >> s;
    for(int j=0;j<s;j++){
      cin >> A;
      a[A]=true;
    }
  }
  int count=0;
  for(int i=0;i<n;i++){
    if(a[i]==false)count++;
  }
  cout << count << endl;
}
    


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

#include<iostream>
using namespace std;

int main(){
    int N,K;
  	int d;
    int list[101]={};	
    cin>> N, K;
   	int ans=N;
	for(int i=0; i< K; i++){
      cin >> d;
      for(int j = 0; j< d; j++){
        int input;
        cin >>input;
        if (list[input]==0) ans -=ans;
      	list[input] =list[input]+1;
      }
    }
    cout << (a+b+c) << " " << s<< endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:19:14: error: 'a' was not declared in this scope
   19 |     cout << (a+b+c) << " " << s<< endl;
      |              ^
a.cc:19:16: error: 'b' was not declared in this scope
   19 |     cout << (a+b+c) << " " << s<< endl;
      |                ^
a.cc:19:18: error: 'c' was not declared in this scope
   19 |     cout << (a+b+c) << " " << s<< endl;
      |                  ^
a.cc:19:31: error: 's' was not declared in this scope
   19 |     cout << (a+b+c) << " " << s<< endl;
      |                               ^
Language: C++

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

int N, K;
map<int, int> A[110];

int main(){
  cin >> N >> K;
  rep(i, K){
    int d;
    cin >> d;
    rep(j, d){
      int a;
      cin >> a;
      a--;
      A[a]++;
    }
  }
  int ans = 0;
  for (auto a : A){
    if (a.second == 0) ans++;
  }
  cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:20:11: error: no 'operator++(int)' declared for postfix '++' [-fpermissive]
   20 |       A[a]++;
      |       ~~~~^~
a.cc:25:11: error: 'class std::map<int, int>' has no member named 'second'
   25 |     if (a.second == 0) ans++;
      |           ^~~~~~
Language: C

#include<bits/stdc++.h>

using namespace std;

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

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

#include <bits/stdc++.h>
const double PI = acos(-1);
#define rep(i, n) for (int i = 0; i < (int)(n); i++ )
using namespace std;
int main() {
    int n, k;
    cin >> n >> k;
    vector<int> num(n);
    rep(i,k){
        int d;
        cin >> d;
        vector<int> a(d);
        rep(i,d) cin >> a.at(i);
        rep(i,d){
            rep(j,n+1){
                if(a.at(i) == j+1) num.at(j)++;
            }
        }
    }
    int ans = 0;
    rep(i,n){
        if(num.at(i) == 0) ans++;A
    }
    cout << ans << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:22:34: error: 'A' was not declared in this scope
   22 |         if(num.at(i) == 0) ans++;A
      |                                  ^
Language: C++

#include <bits/stdc++.h>
const double PI = acos(-1);
#define rep(i, n) for (int i = 0; i < (int)(n); i++ )
using namespace std;
int main() {
    int n, k;
    cin >> n >> k;
    vector<int> num(n);
    rep(i,k){
        int d;
        cin >> d;
        vector<int> a(d);
        rep(i,d) cin >> a.at(i);
        rep(i,d){
            rep(j,n+1){
                if(a.at(i) == j+1) num.at(j)++;
            }
        }
    }
    int ans = 0;
    rep(i,n){
        if(num.at(i) == 0) ans++;
    }
    cout << ans << endl;
}
#include <bits/stdc++.h>
const double PI = acos(-1);
#define rep(i, n) for (int i = 0; i < (int)(n); i++ )
using namespace std;
int main() {
    int n, k;
    cin >> n >> k;
    vector<int> num(n);
    rep(i,k){
        int d;
        cin >> d;
        vector<int> a(d);
        rep(i,d) cin >> a.at(i);
        rep(i,d){
            rep(j,n+1){
                if(a.at(i) == j+1) num.at(j)++;
            }
        }
    }
    int ans = 0;
    rep(i,n){
        if(num.at(i) == 0) ans++;
    }
    cout << ans << endl;
}


Compiler output:
a.cc:27:14: error: redefinition of 'const double PI'
   27 | const double PI = acos(-1);
      |              ^~
a.cc:2:14: note: 'const double PI' previously defined here
    2 | const double PI = acos(-1);
      |              ^~
a.cc:30:5: error: redefinition of 'int main()'
   30 | int main() {
      |     ^~~~
a.cc:5:5: note: 'int main()' previously defined here
    5 | int main() {
      |     ^~~~
Language: C

#include<stdio.h>
int main(void)
{
	int n,k,a,d,cnt,i,flg[101]={0};
	scanf("%d %d",&n,&k);
	for(i=0;i<k;i++){
		scanf("%d",&d);
		for(j=0;j<d;j++){
			scanf("%d",&a);
			flg[a]=1;
		}
	}
	for(i=1;i<=n;i++){
		if(flg[i]==0){
			cnt++;
		}
	}
	printf("%d\n",cnt);
	return 0;
}

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

#include <bits/stdc++.h>


using namespace std;
//typedef long long unsigned int ll;

#define EPS (1e-7)
#define INF (1e9)
#define PI (acos(-1))

class BTrickOrTreat {
public:
void solve(std::istream& cin, std::ostream& cout) {
    int N,K;
    int ans = 0;
    //string ans = "";
    cin >> N >> K;
    int n = N;
    vector<int> vec;
    for(int i = 0;i < K; i++){
        int d;
        cin >> d;
        for(int j = 0; j < d;  j++){
            int tmp;
            cin >> tmp;
            vec.push_back(tmp);
        }
    }

    int a[n];
    for (int i = 0; i <= n; i++){ a[i] = 0; };
    for(int i = 0; i < vec.size(); i++){
        int num = vec.at(i);
        a[num - 1]++;
    }
    ans = count(a, a + N, 0);

    cout << ans << endl;
}
};


Compiler output:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/14/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x17): undefined reference to `main'
collect2: error: ld returned 1 exit status
Language: C++

#include <iostream>
#include <set>
using namespace std;
 
int main(){
    int N,K;
    cin>>N>>K;
    set<int> st;
    int d,tmp;
    for(int i=0; i<K; i++){
    	cin>>d;
        for(int j=0; j<d; j++){
            cin>>tmp;
        	set.insert(tmp);
        }
    }
    
    cout<<N-set.size();
}

Compiler output:
a.cc: In function 'int main()':
a.cc:14:20: error: expected unqualified-id before '.' token
   14 |                 set.insert(tmp);
      |                    ^
a.cc:18:16: error: missing template arguments before '.' token
   18 |     cout<<N-set.size();
      |                ^
Language: C++

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

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

Compiler output:
a.cc: In function 'int main()':
a.cc:10:20: error: 'k' was not declared in this scope
   10 |     for(int i=0; i<k; i++){
      |                    ^
a.cc:14:20: error: expected unqualified-id before '.' token
   14 |                 set.insert(tmp);
      |                    ^
a.cc:18:16: error: missing template arguments before '.' token
   18 |     cout<<N-set.size();
      |                ^
Language: C++

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

int main() {
	int n, k;
	cin >> n >> k;
	int d[k];
	for (int i = 0; i < n; i++) {
		cin >> d[i];
	}

	int A[k, d[]; ];
	
	for (int i = 0; i < k; i++) {
		for (int j = 0; j < d[i]; j++) {
			cin >> A[i][j];
		}
	}

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

	int ans[n] = { 0 };

	for (int i = 0; i < k; i++) {
		for (int j = 0; j < d[i]; j++) {
			for (int l = 0; l < n; l++) {
				if (A[i][j] == count[l]) {
					ans[l] += 1;
				}
			}
		}
	}

	int op = 0;

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

	cout << op << endl;

	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:12:16: error: expected ']' before ',' token
   12 |         int A[k, d[]; ];
      |                ^
      |                ]
a.cc:12:18: error: redeclaration of 'int d []'
   12 |         int A[k, d[]; ];
      |                  ^
a.cc:7:13: note: 'int d [k]' previously declared here
    7 |         int d[k];
      |             ^
a.cc:12:23: error: expected primary-expression before ']' token
   12 |         int A[k, d[]; ];
      |                       ^
a.cc:16:32: error: 'A' was not declared in this scope
   16 |                         cin >> A[i][j];
      |                                ^
a.cc:30:37: error: 'A' was not declared in this scope
   30 |                                 if (A[i][j] == count[l]) {
      |                                     ^
Language: C++

#include "stdc++.h"
using namespace std;

int main() {
	int n, k;
	cin >> n >> k;
	int d[k];
	for (int i = 0; i < n; i++) {
		cin >> d[i];
	}

	int A[k, d[]; ];
	
	for (int i = 0; i < k; i++) {
		for (int j = 0; j < d[i]; j++) {
			cin >> A[i][j];
		}
	}

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

	int ans[n] = { 0 };

	for (int i = 0; i < k; i++) {
		for (int j = 0; j < d[i]; j++) {
			for (int l = 0; l < n; l++) {
				if (A[i][j] == count[l]) {
					ans[l] += 1;
				}
			}
		}
	}

	int op = 0;

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

	cout << op << endl;

	return 0;
}

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

#include<iostream>
#include<algorithm>
#include<string>
#include<vector>
#include<math.h>
#include<map>
using namespace std;

int n,k;
vector<int> d;
vector<vector<int>> a;

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

void input(){
    cin >> n >> k;
    d.resize(k);
    a.resize(k, vector<int>());
    for(int i=0;i<k;i++){
        cin >> d[i];
        a[i].resize(d[i]);
        for(int j=0;j<d[i];j++){
            cin >> a[i][j];
        }
    }
}

void solve(){
    int ans=0;
    for(int i=1;i<=n;i++){
        bool have = false;
        for(auto v : a){
            for(auto p : v){
                if(p == 1){
                    have = true;
                }
            }
        }
        if(!have)ans++;
    }
    cout << ans << endl;
}

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

#include <bits/stdc++.h>
using namespace std;
 
int main() {
  int n, k;
  cin >> n >> k;
  
  vector<int> d(k);
  vector<vector<int>> a(k,vector<int>(n));
  
  for(int i=0; i<k; i++){
    cin >> d[i];
  for(int j=0; j<k; j++){  
    cin >> a[i][j];
  }
  }
 
  set<int> s;
  for(int x=0; x<k; x++){
    for(int y=0; y<k; y++){
      s.insert(a[x][y]);
    }
  }
  
  if(s!.count(0)){
  cout << n-s.size() << endl;
  }
  else{
    cout << n-s.size()-1 << endl;
  }
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:7: error: expected ')' before '!' token
   25 |   if(s!.count(0)){
      |     ~ ^
      |       )
a.cc:25:6: error: could not convert 's' from 'std::set<int>' to 'bool'
   25 |   if(s!.count(0)){
      |      ^
      |      |
      |      std::set<int>
Language: Java

import java.util.*;
public class Solution {
	public static void main(String[] args) {
      Scanner in = new Scanner(System.in);
      int n = in.nextInt(), k = in.nextInt();
      int arr[] = new int[n + 1];
      for(int i = 0; i < k; i ++) {
      	int d = in.nextInt();
        for(int j =0; j < d; j++) {
        	int sn = in.nextInt();
            arr[sn]++;
        }
      }
      int count = 0;
      for(int i = 0; i < n; i++) {
      	if (arr[i] == 0 ) count++;
      }
      System.out.println(count);
    }
}

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

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

int main() {
  int N , K ;
  cin >> N >> K ;
  vector<int>d(N);
  for(int i=0; i < K ; i++){
    int m;
    cin >> m;
    for(int j=0 ; j < m ; j++){
      int a;
      cin >> a;
      d.at(a-1)=1;
    }
  }
  int ans=0;
  for(i =0; i<N ;i++){
    if(d.at(i)==0){
      ans++;
    }
  }
  cout << ans << endl;
}
    
    
    
    

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

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

int main() {
  int N , K ;
  cin >> N >> K ;
  vector<int>d(K);
  for(int i=0; i < K ; i++){
    cin >> d.at(i);
    for(int j=0; j < d.at(i) ; j++){
      vector<int>Ai(d.at(i));
      cin >> Ai.at(j);
    }
  }
  vector<int>F(N);
  int Y=0;
  for(int i=0; i < K ; i++){
    for(int j=0; j < d.at(i) ; j++){
      F.at(Ai.at(j)-1)++;
    }
  }
  
  for(int i=0; i<N ; i++){
    if(F.at(i)==0){
      Y++;
    }
  }
  cout << Y <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:19:12: error: 'Ai' was not declared in this scope; did you mean 'i'?
   19 |       F.at(Ai.at(j)-1)++;
      |            ^~
      |            i
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 j=0; j < d.at(i) ; j++){
      vector<int>A[i](d.at(i));
      cin >> A[i].at(j);
    }
  }
  vector<int>F(N);
  int Y=0;
  for(int i=0; i < K ; i++){
    for(int j=0; j < d.at(i) ; j++){
      F.at(A[i].at(j)-1)++;
    }
  }
  
  for(int i=0; i<N ; i++){
    if(F.at(i)==0){
      Y++;
    }
  }
  cout << Y <<endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:27: error: array must be initialized with a brace-enclosed initializer
   11 |       vector<int>A[i](d.at(i));
      |                       ~~~~^~~
a.cc:19:12: error: 'A' was not declared in this scope
   19 |       F.at(A[i].at(j)-1)++;
      |            ^
Language: C++

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


Compiler output:
a.cc: In function 'int main()':
a.cc:6:27: error: invalid declarator before 'data'
    6 |   int vector<vector<int>> data(K, vector<int>(N)), vector<int> r (N,0) ,d;
      |                           ^~~~
a.cc:8:12: error: 'd' was not declared in this scope
    8 |     cin >> d ;
      |            ^
a.cc:10:14: error: 'a' was not declared in this scope
   10 |       cin >> a.at(i)(j) ;
      |              ^
a.cc:11:7: error: 'r' was not declared in this scope
   11 |       r.at(a.at(i)(j)) = 1
      |       ^
a.cc:15:7: error: 'r' was not declared in this scope
   15 |    if(r.at(i) == 1) count ++;
      |       ^
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  bool n[102];
  int p,k;
  cin>>p>>k;
  while(k--)
  {
    int tem;
    cin>>tem;
    while(temp--)
    {
      int l;
      cin>>l;
      n[l]=1;
    }
  }
  int ans=0;
  for(int i=1;i<=p;i++)if(!i)ans++;
  cout<<ans;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: 'temp' was not declared in this scope; did you mean 'tem'?
   12 |     while(temp--)
      |           ^~~~
      |           tem
Language: C++

#include<bits/stdc++.h>
using namespace std;
int main()
{
  bool n[102];
  int p,k;
  cin>>p>>k;
  while(k--)
  {
    int tem;
    cin>>tem;
    while(temp)
    {
      int l;
      cin>>l;
      n[l]=1;
    }
  }
  int ans=0;
  for(int i=1;i<=p;i++)if(!i)ans++;
  cout<<ans;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:12:11: error: 'temp' was not declared in this scope; did you mean 'tem'?
   12 |     while(temp)
      |           ^~~~
      |           tem
Language: Java

import java.util.*;
import java.math.*;
public class Main {
	public static void main(String[] args){
		
		Scanner sc = new Scanner(System.in);
		int N = sc.nextInt();
		int K = sc.nextInt();
       // int d = new int[K];
        Arraylist<Integer> a = new ArrayList<>();
        for (int i = 0; i < K; i++) {
            int d = sc.nextInt();
			for (int j = 0 ; j < d ;j++){
				int c = sc.nextInt();
			if (!a.contains(c))	a.add(c);
            }
        }
			
	
        }
		System.out.println(N-a.size)();
	}
}

Compiler output:
Main.java:21: error: <identifier> expected
		System.out.println(N-a.size)();
		                  ^
Main.java:21: error: <identifier> expected
		System.out.println(N-a.size)();
		                    ^
Main.java:23: error: class, interface, enum, or record expected
}
^
3 errors
Language: C

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

using namespace std;

int main()
{
    int N, K;
    scanf("%d %d", &N, &K);
    int A[N];
    for (int i = 0; i < N; i++)
        A[i] = 0;
    for (int i = 0; i < K; i++)
    {
        int d;
        scanf("%d", &d);
        for (int j = 0; j < d; j++)
        {
            int x;
            scanf("%d", &x);
            A[x - 1] += 1;
        }
    }
    int ans = 0;
    for (int i = 0; i < N; i++)
    {
        if (A[i] == 0)
            ans++;
    }

    cout << ans << endl;
    return 0;
}

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

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


Compiler output:
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'sacnf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |   sacnf("%d%d",&n,&k);
      |   ^~~~~
      |   scanf
Language: C

#include<stdio.h>
int main(void)
{
  int n,k,p,d,a[101]={0},i,j;
  sacnf("%d%d",&n,&k);
  for(i=0;i<n;i++){
    scanf("%d",&p);
    for(j=0;j<p;j++){
      scanf("%d",&d);
      a[d]=1;
    }
  }

Compiler output:
main.c: In function 'main':
main.c:5:3: error: implicit declaration of function 'sacnf'; did you mean 'scanf'? [-Wimplicit-function-declaration]
    5 |   sacnf("%d%d",&n,&k);
      |   ^~~~~
      |   scanf
main.c:12:3: error: expected declaration or statement at end of input
   12 |   }
      |   ^
Language: C++

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

	int n, k;
  	vector<int> d;
  	vector<vector<int>> a;

	int ans = 0;

int main(void){
  	cin >> n >> k;
    d.resize(k);
    a.resize(k, vector<int>());
  	for(int i=0; i<k; i++){
      	cin >> d[i];
        a[i].resize(d[i]);
    	for(int j=0; j<d[i]; j++){
          cin >> a[i][j];
        }
    }
    
 	for(int i=1, i<=n, i++){
    	bool have = false;
      	for(auto v : a){
        	for(auto p : v){
            	if(p == i) have = true;
            }
        }
      	if(!have) ans++;
    }
  	cout << ans;
	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:25:23: error: expected ';' before '<=' token
   25 |         for(int i=1, i<=n, i++){
      |                       ^~
      |                       ;
a.cc:25:23: error: expected primary-expression before '<=' token
   25 |         for(int i=1, i<=n, i++){
      |                       ^~
a.cc:25:31: error: expected ';' before ')' token
   25 |         for(int i=1, i<=n, i++){
      |                               ^
      |                               ;
Language: C++

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

	int n, k;
  	vector<int> d;
  	vector<vector<int>> a;

	int ans = 0;

int main(void){
  	cin >> n >> k;
    d.resize(k);
    a.resize(k, vector<int>());
  	for(int i=0; i<k; i++){
      	cin >> d[i];
        a[i].resize(d[i]);
    	for(int j=0; j<d[i]; j++) cin >> a[i][j];
    }
    
 	for(int i=0, i<k, i++){
    	bool have = false;
      	for(auto v : a){
        	for(auto p : v){
            	if(p == i) have = true;
            }
        }
      	if(!have) ans++;
    }
  	cout << ans;
	return 0;
}

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

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

int main(){
  int N,K;
  cin>>N>>K;
  
  int d;
  vector<int>A(110);
  
  for(int i = 0;i < K ;i++){
    cin>>d;
    
    for(int j = 0;j < d ;j++){
      int tmp = 0;
      cin>>tmp;
      A[tmp] = 1;
    }
  }
  
  int res = 0;
  
  for(int i = 1;i < N+1 ;i++){
    if(A[i]==0)res++;
  }
  cout<<res;
  

return 0;

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

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

int N,K;
vector<int> d;
vector<vector<int>> A;

void input(){
	cin >> N >> K;
	d.resize(K);
	A.resize(K, vector<int>());
	for(int i = 0; i<K; i++){
		cin >> d[i];
		A[i].resize(d[i]);
		for(int j = 0; j < d[i]; j++){
			cin >> A[i][j];
		}
	}
}

void solve(){
	int ans = 0;
	for(int i = 1; i<=N; i++){
		bool have = false;
		for(auto v : A ) {
			for(auto v : v){
				if(p == 1) have = true;
			}
		}
		if(!have) ans++;
	}
	cout << ans << endl;
}


int main() {
	input();
	solve();
}

Compiler output:
a.cc: In function 'void solve()':
a.cc:27:36: error: 'p' was not declared in this scope
   27 |                                 if(p == 1) have = true;
      |                                    ^
Language: C++

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

int N,K;
vector<int> d;
vector<vector<int>> A:

void input(){
	cin >> N >> K;
	d.resize(K);
	A.resize(K, vector<int>());
	for(int i = 0; i<K; i++){
		cin >> d[i];
		A[i].resize(d[i]);
		for(int j = 0; j < d[i]; j++){
			cin >> A[i][j];
		}
	}
}

void solve(){
	int ans = 0;
	for(int i = 1; i<=N; i++){
		bool have = false;
		for(auto v : A ) {
			for(auto v : v){
				if(p == 1) have = true;
			}
		}
		if(!have) ans++;
	}
	cout << ans << endl;
}


int main() {
	input();
	solve();
}

Compiler output:
a.cc:6:22: error: expected initializer before ':' token
    6 | vector<vector<int>> A:
      |                      ^
a.cc: In function 'void solve()':
a.cc:25:30: error: 'A' was not declared in this scope
   25 |                 for(auto v : A ) {
      |                              ^
a.cc:27:36: error: 'p' was not declared in this scope
   27 |                                 if(p == 1) have = true;
      |                                    ^
a.cc: In function 'int main()':
a.cc:37:9: error: 'input' was not declared in this scope; did you mean 'int'?
   37 |         input();
      |         ^~~~~
      |         int
Language: Java

import java.util.ArrayList;
import java.util.Scanner;

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

        int n = scan.nextInt();
        int k = scan.nextInt();
        int c = 0;
        ArrayList<ArrayList<Integer>> b_list = new ArrayList<ArrayList<Integer>>(n);
        int count_treat = 0;

        for(int i = 0;i < n;i++) {
            b_list.add(new ArrayList<Integer>());
        }

        for(int i = 0;i < (2 * k);i++) {
            if(i % 2 == 0) {
                c = scan.nextInt();
            }else {
                for(int j = 0;j < c;j++) {
                    b_list.get(scan.nextInt() - 1).add(i);
                }
            }
        }

        for(int i = 0;i < n;i++) {
            if(b_list.get(i).size() == 0) {
                count_treat += 1;
            }
        }

        System.out.println(count_treat);
    }
}

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

import java.util.ArrayList;
import java.util.Scanner;

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

        int N = scanner.nextInt();
        int K = scanner.nextInt();
        int d = 0;
        ArrayList<ArrayList<Integer>> arraylist = new ArrayList<ArrayList<Integer>>(N);
        
        for(int i = 0;i < N;i++) {
            arraylist.add(new ArrayList<Integer>());
        }

        for(int i = 0; i < (2 * K); i++){
            if(i % 2 == 0){
                d = scanner.nextInt();
            }else{
                for(int s = 0; s < d; s++){
                    arraylist.get(scan.nextInt() - 1).add(i);
                }
            }
        }
        
        int count = 0;
        for(int i = 0;i < N;i++) {
            if(arraylist.get(i).size() == 0) {
                count += 1;
            }
        }

        System.out.println(count);
    }
}

Compiler output:
Main.java:22: error: cannot find symbol
                    arraylist.get(scan.nextInt() - 1).add(i);
                                  ^
  symbol:   variable scan
  location: class Main
1 error
Language: Java

import java.util.ArrayList;
import java.util.Scanner;
public class Main{
    public static void main(String[] args){
        Scanner scanner = new Scanner(System.in);

        int N = scanner.nextInt();
        int K = scanner.nextInt();
        int d = 0;
        ArrayList<ArrayList<Integer>> arraylist = new ArrayList<ArrayList<Integer>>(N);
        
        for(int i = 0;i < N;i++) {
            arraylist.add(new ArrayList<Integer>());
        }

        for(int i = 0; i < (2 * K); i++){
            if(i % 2 == 0){
                d = scanner.nextInt();
            }else{
                for(int s = 0; s < d; s++){
                    arraylist.get(scan.nextInt() - 1).add(i);
                }
            }
        }
        
        int count = 0;
        for(int i = 0;i < N;i++) {
            if(arraylist.get(i).size() == 0) {
                count += 1;
            }
        }

        System.out.println(count);
    }
}

Compiler output:
Main.java:21: error: cannot find symbol
                    arraylist.get(scan.nextInt() - 1).add(i);
                                  ^
  symbol:   variable scan
  location: class Main
1 error
Language: Java

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

        int N = scanner.nextInt();
        int K = scanner.nextInt();
        int d = 0;
        ArrayList<ArrayList<Integer>> arraylist = new ArrayList<ArrayList<Integer>>(N);
        
        for(int i = 0;i < N;i++) {
            arraylist.add(new ArrayList<Integer>());
        }

        for(int i = 0; i < (2 * K); i++){
            if(i % 2 == 0){
                d = scanner.nextInt();
            }else{
                for(int s = 0; s < d; s++){
                    arraylist.get(scan.nextInt() - 1).add(i);
                }
            }
        }
        
        int count = 0;
        for(int i = 0;i < N;i++) {
            if(arraylist.get(i).size() == 0) {
                count += 1;
            }
        }

        System.out.println(count);
    }
}

Compiler output:
Main.java:9: error: cannot find symbol
        ArrayList<ArrayList<Integer>> arraylist = new ArrayList<ArrayList<Integer>>(N);
        ^
  symbol:   class ArrayList
  location: class Main
Main.java:9: error: cannot find symbol
        ArrayList<ArrayList<Integer>> arraylist = new ArrayList<ArrayList<Integer>>(N);
                  ^
  symbol:   class ArrayList
  location: class Main
Main.java:9: error: cannot find symbol
        ArrayList<ArrayList<Integer>> arraylist = new ArrayList<ArrayList<Integer>>(N);
                                                      ^
  symbol:   class ArrayList
  location: class Main
Main.java:9: error: cannot find symbol
        ArrayList<ArrayList<Integer>> arraylist = new ArrayList<ArrayList<Integer>>(N);
                                                                ^
  symbol:   class ArrayList
  location: class Main
Main.java:12: error: cannot find symbol
            arraylist.add(new ArrayList<Integer>());
                              ^
  symbol:   class ArrayList
  location: class Main
Main.java:20: error: cannot find symbol
                    arraylist.get(scan.nextInt() - 1).add(i);
                                  ^
  symbol:   variable scan
  location: class Main
6 errors
Language: Java

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

        int N = scanner.nextInt();
        int K = scanner.nextInt();
        ArrayList<ArrayList<Integer>> arraylist = new ArrayList<ArrayList<Integer>>(N);
        
        for(int i = 0;i < N;i++) {
            arraylist.add(new ArrayList<Integer>());
        }

        for(int i = 0; i < (2*K); i++){
            if(i % 2 == 0){
                int d = scanner.nextInt();
            }else{
                for(int s = 0; s <= d; s++){
                    arraylist.get(scan.nextInt() - 1).add(i);
                }
            }
        }
        
        int count_treat = 0;
        for(int i = 0;i < n;i++) {
            if(b_list.get(i).size() == 0) {
                count_treat += 1;
            }
        }

        System.out.println(count_treat);
    }
}

Compiler output:
Main.java:8: error: cannot find symbol
        ArrayList<ArrayList<Integer>> arraylist = new ArrayList<ArrayList<Integer>>(N);
        ^
  symbol:   class ArrayList
  location: class Main
Main.java:8: error: cannot find symbol
        ArrayList<ArrayList<Integer>> arraylist = new ArrayList<ArrayList<Integer>>(N);
                  ^
  symbol:   class ArrayList
  location: class Main
Main.java:8: error: cannot find symbol
        ArrayList<ArrayList<Integer>> arraylist = new ArrayList<ArrayList<Integer>>(N);
                                                      ^
  symbol:   class ArrayList
  location: class Main
Main.java:8: error: cannot find symbol
        ArrayList<ArrayList<Integer>> arraylist = new ArrayList<ArrayList<Integer>>(N);
                                                                ^
  symbol:   class ArrayList
  location: class Main
Main.java:11: error: cannot find symbol
            arraylist.add(new ArrayList<Integer>());
                              ^
  symbol:   class ArrayList
  location: class Main
Main.java:18: error: cannot find symbol
                for(int s = 0; s <= d; s++){
                                    ^
  symbol:   variable d
  location: class Main
Main.java:19: error: cannot find symbol
                    arraylist.get(scan.nextInt() - 1).add(i);
                                  ^
  symbol:   variable scan
  location: class Main
Main.java:25: error: cannot find symbol
        for(int i = 0;i < n;i++) {
                          ^
  symbol:   variable n
  location: class Main
Main.java:26: error: cannot find symbol
            if(b_list.get(i).size() == 0) {
               ^
  symbol:   variable b_list
  location: class Main
9 errors
Language: Java

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

        ArrayList<Integer> arrayList1 = new ArrayList<Integer>();
        ArrayList<Integerr> arrayList2 = new ArrayList<Integer>();
        int N = scanner.nextInt();
        int K = scanner.nextInt();
        
        for(int i = 1; i <= K; i++){
            int d = scanner.nextInt();
            for(int s = 0; s <= d; s++){
                int A = scanner.nextInt();
                arrayList2.add(A-1);
            }
            arrayList1.add(arrayList2);
        }
        
        int count_treat = 0;
        for(int i = 0;i < n;i++) {
            if(b_list.get(i).size() == 0) {
                count_treat += 1;
            }
        }

        System.out.println(count_treat);
    }
}

Compiler output:
Main.java:6: error: cannot find symbol
        ArrayList<Integer> arrayList1 = new ArrayList<Integer>();
        ^
  symbol:   class ArrayList
  location: class Main
Main.java:6: error: cannot find symbol
        ArrayList<Integer> arrayList1 = new ArrayList<Integer>();
                                            ^
  symbol:   class ArrayList
  location: class Main
Main.java:7: error: cannot find symbol
        ArrayList<Integerr> arrayList2 = new ArrayList<Integer>();
        ^
  symbol:   class ArrayList
  location: class Main
Main.java:7: error: cannot find symbol
        ArrayList<Integerr> arrayList2 = new ArrayList<Integer>();
                  ^
  symbol:   class Integerr
  location: class Main
Main.java:7: error: cannot find symbol
        ArrayList<Integerr> arrayList2 = new ArrayList<Integer>();
                                             ^
  symbol:   class ArrayList
  location: class Main
Main.java:21: error: cannot find symbol
        for(int i = 0;i < n;i++) {
                          ^
  symbol:   variable n
  location: class Main
Main.java:22: error: cannot find symbol
            if(b_list.get(i).size() == 0) {
               ^
  symbol:   variable b_list
  location: class Main
7 errors
Language: Java

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

        List<Integer> arrayList1 = new ArrayList<Integer>();
        List<Integerr> arrayList2 = new ArrayList<Integer>();
        int N = scanner.nextInt();
        int K = scanner.nextInt();
        
        for(int i = 1; i <= K; i++){
            int d = scanner.nextInt();
            for(int s = 0; s <= d; s++){
                int A = scanner.nextInt();
                arrayList2.add(A-1);
            }
            arrayList1.add(arrayList2);
        }
        
        int count_treat = 0;
        for(int i = 0;i < n;i++) {
            if(b_list.get(i).size() == 0) {
                count_treat += 1;
            }
        }

        System.out.println(count_treat);
    }
}

Compiler output:
Main.java:6: error: cannot find symbol
        List<Integer> arrayList1 = new ArrayList<Integer>();
        ^
  symbol:   class List
  location: class Main
Main.java:6: error: cannot find symbol
        List<Integer> arrayList1 = new ArrayList<Integer>();
                                       ^
  symbol:   class ArrayList
  location: class Main
Main.java:7: error: cannot find symbol
        List<Integerr> arrayList2 = new ArrayList<Integer>();
        ^
  symbol:   class List
  location: class Main
Main.java:7: error: cannot find symbol
        List<Integerr> arrayList2 = new ArrayList<Integer>();
             ^
  symbol:   class Integerr
  location: class Main
Main.java:7: error: cannot find symbol
        List<Integerr> arrayList2 = new ArrayList<Integer>();
                                        ^
  symbol:   class ArrayList
  location: class Main
Main.java:21: error: cannot find symbol
        for(int i = 0;i < n;i++) {
                          ^
  symbol:   variable n
  location: class Main
Main.java:22: error: cannot find symbol
            if(b_list.get(i).size() == 0) {
               ^
  symbol:   variable b_list
  location: class Main
7 errors