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

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include <time.h>

#define _CRT_SECURE_NO_WARNINGS
#define TLong long long
#define TBMod 1000000007

int main(int argc, char const *argv[])
{
	int n,m;
	int k,t;
	int cnt[30],ans = 0;
	for (int i = 0; i < 30; ++i)	cnt[i] = 0;
	scanf("%d %d",&n,&m);
	for (int i = 1; i <= n; ++i){
		scanf(" %d",&k);
		for (int j = 1; j <= k; ++j){
			scanf(" %d",&t);
			++cnt[t - 1];
		}
	}
	for (int i = 0; i < m; ++i)
	{
		if(cnt[i] == n)	++ans;
	}
	printf("%d\n", ans);
	return 0;
}


Compiler output:
Main.java:1: error: illegal character: '#'
#include <stdio.h>
^
Main.java:1: error: class, interface, enum, or record expected
#include <stdio.h>
         ^
Main.java:2: error: illegal character: '#'
#include <stdlib.h>
^
Main.java:3: error: illegal character: '#'
#include <string.h>
^
Main.java:4: error: illegal character: '#'
#include <math.h>
^
Main.java:5: error: illegal character: '#'
#include <time.h>
^
Main.java:7: error: illegal character: '#'
#define _CRT_SECURE_NO_WARNINGS
^
Main.java:8: error: illegal character: '#'
#define TLong long long
^
Main.java:9: error: illegal character: '#'
#define TBMod 1000000007
^
Main.java:14: error: class, interface, enum, or record expected
	int k,t;
	^
Main.java:15: error: class, interface, enum, or record expected
	int cnt[30],ans = 0;
	^
Main.java:16: error: class, interface, enum, or record expected
	for (int i = 0; i < 30; ++i)	cnt[i] = 0;
	^
Main.java:16: error: class, interface, enum, or record expected
	for (int i = 0; i < 30; ++i)	cnt[i] = 0;
	                ^
Main.java:16: error: class, interface, enum, or record expected
	for (int i = 0; i < 30; ++i)	cnt[i] = 0;
	                        ^
Main.java:17: error: class, interface, enum, or record expected
	scanf("%d %d",&n,&m);
	^
Main.java:18: error: class, interface, enum, or record expected
	for (int i = 1; i <= n; ++i){
	^
Main.java:18: error: class, interface, enum, or record expected
	for (int i = 1; i <= n; ++i){
	                ^
Main.java:18: error: class, interface, enum, or record expected
	for (int i = 1; i <= n; ++i){
	                        ^
Main.java:20: error: class, interface, enum, or record expected
		for (int j = 1; j <= k; ++j){
		^
Main.java:20: error: class, interface, enum, or record expected
		for (int j = 1; j <= k; ++j){
		                ^
Main.java:20: error: class, interface, enum, or record expected
		for (int j = 1; j <= k; ++j){
		                        ^
Main.java:22: error: class, interface, enum, or record expected
			++cnt[t - 1];
			^
Main.java:23: error: class, interface, enum, or record expected
		}
		^
Main.java:25: error: class, interface, enum, or record expected
	for (int i = 0; i < m; ++i)
	                ^
Main.java:25: error: class, interface, enum, or record expected
	for (int i = 0; i < m; ++i)
	                       ^
Main.java:28: error: class, interface, enum, or record expected
	}
	^
Main.java:30: error: class, interface, enum, or record expected
	return 0;
	^
Main.java:31: error: class, interface, enum, or record expected
}
^
28 errors
Language: C++

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

int main(){
	int N, M, k, a;
	int count = 0;
	int data[30] = {};
	cin >> N >> M;
	for(int i = 0; i < N; i++){
		cin >> k;
		for(int j = 0; j < k; j++){
			cin >> a;
			data[a-1]++;
		}
	}
	for(int i = 0; i < M; i++){
		if(data[i] == n){
			counts++;
		}
	}
	cout << count << endl;
	return 0;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:17:31: error: 'n' was not declared in this scope
   17 |                 if(data[i] == n){
      |                               ^
a.cc:18:25: error: 'counts' was not declared in this scope; did you mean 'count'?
   18 |                         counts++;
      |                         ^~~~~~
      |                         count
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int n=sc.nextInt();
      int m=sc.nextInt();
      Map<Integer, Integer>map = new HashMap<>();
      List<int[]> intList = new ArrayList<>();
      for(int i=0; i<n; i++){
        int ki = sc.nextInt();
        int[] array = new int[ki];
        	for(int j=0; j<ki; j++){
              array[j] = sc.nextInt();
            }
        intList.add(array);
      }
      for(int i=1; i<=m; i++){
        map.put(i, o);
      }
      for(int[] array: intList){
        for(int i: array){
          int j = map.get(i) + 1;
          map.put(i, j);
        }
      }
    int count = 0;
      for(int i=1; i<=m; i++){
        if(map.get(i) == n){
          count++;
        }
      }
      System.out.println(count);
  }
}


Compiler output:
Main.java:18: error: cannot find symbol
        map.put(i, o);
                   ^
  symbol:   variable o
  location: class Main
1 error
Language: Java

import java.util.*;
public class Main{
  public static void main(String[] args){
      Scanner sc = new Scanner(System.in);
      int n=sc.nextInt();
      int m=sc.nextInt();
      Map<int, int>map = new HashMap<>();
      List<int[]> intList = new ArrayList<>();
      for(int i=0; i<n; i++){
        int ki = sc.nextInt();
        int[] array = new int[ki];
        	for(int j=0; j<ki; j++){
              array[j] = sc.nextInt();
            }
        intList.add(array);
      }
      for(i=1; i<=m; i++){
        map.put(i, o);
      }
      for(int[] array: intList){
        for(int i: array){
          int j = map.get(i) + 1;
          map.put(i, j);
        }
      }
    int count = 0;
      for(int i=1; i<=m; i++){
        if(map.get(i) == n){
          count++;
        }
      }
      System.out.println(count);
  }
}

Compiler output:
Main.java:7: error: unexpected type
      Map<int, int>map = new HashMap<>();
          ^
  required: reference
  found:    int
Main.java:7: error: unexpected type
      Map<int, int>map = new HashMap<>();
               ^
  required: reference
  found:    int
Main.java:17: error: cannot find symbol
      for(i=1; i<=m; i++){
          ^
  symbol:   variable i
  location: class Main
Main.java:17: error: cannot find symbol
      for(i=1; i<=m; i++){
               ^
  symbol:   variable i
  location: class Main
Main.java:17: error: cannot find symbol
      for(i=1; i<=m; i++){
                     ^
  symbol:   variable i
  location: class Main
Main.java:18: error: cannot find symbol
        map.put(i, o);
                ^
  symbol:   variable i
  location: class Main
Main.java:18: error: cannot find symbol
        map.put(i, o);
                   ^
  symbol:   variable o
  location: class Main
7 errors
Language: C++

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

int main(){
  int n, m;
  cin >> n >> m;
  vector<int>suki(m, 0);
  for(int i=0; i<n; i++){
    int k;
    cin >> k;
    for(int j=0; j<k; j++){
      cin >> a;
      suki[a]++;
    }
  }
  int cnt=0;
  for(int i=0; i<m; i++){
    if(suki[i]==n)cnt++;
  }
  cout << cnt;
  return 0;
}

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

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

int main(){
  int n, m;
  cin >> n >> m;
  vector<int>suki(m, 0);
  for(int i=0; i<n; i++){
    int k;
    cin >> k;
    for(int j=0; j<k; j++){
      cin >> a;
      suki[a]++;
    }
  }
  int cnt=0;
  for(int i=0; i<m; i++){
    if(suki[a]==n)cnt++;
  }
  cout << cnt;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:14: error: 'a' was not declared in this scope
   13 |       cin >> a;
      |              ^
a.cc:19:13: error: 'a' was not declared in this scope
   19 |     if(suki[a]==n)cnt++;
      |             ^
Language: C++

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

int main() {
   int N,M;
   cin >> N >> M;
   int cnt=0,ans=0;
   int like[30][30];

  //二次元配列likeを0ベクトルにする
   for(int i=0;i<30;i++){
     for(int j=0;j<30;j++){
       like[i][j]=0;
     }
   }

//0ベクトルになった配列likeのうちi人目がj番目を好きな場合(i,j)=1とする
  for(int i=0;i<N;i++){
   int K; cin >> K;
     for(int j=0;j<K;j++){
       int a;
       cin >> a;
       like[i][a-1] = 1;
     }
  }

//二次元配列likeのうち縦ベクトルがすべて１の列の数を数える。
  for(int j=0;j<M;j++){
    for(int i=0;i<N;i++){
      if(like[i][j] == 1){
       cnt++;
      }
    }
   if(cnt==N){
   ans++;
   }
   cnt=0;
  }

  cout << ans << endl;

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

#include<stdio.h>
2. 
3.int main(void)
4.{
5.        int n, m, k, a[1000]={0}, r, b=0;
6.        int i, j;
7. 
8.        scanf("%d%d", &n,&m);
9. 
10.        for(i = 0; i < n; i++) {
11.                scanf("%d", &k);
12.                for(j = 0; j < k; j++) {
13.                        scanf("%d", &r);
14.                        a[r]++;
15.                }
16.        }
17. 
18.        for(i = 0; i <= m; i++) {
19.                if(a[i] == n) {
20.                        b++;
21.                }
22.        }
23.        printf("%d", b);
24.        return 0;
25.}

#include<stdio.h>

int main(void)
{
        int n, m, k, a[1000]={0}, r, b=0;
        int i, j;

        scanf("%d%d", &n,&m);

        for(i = 0; i < n; i++) {
                scanf("%d", &k);
                for(j = 0; j < k; j++) {
                        scanf("%d", &r);
                        a[r]++;
                }
        }

        for(i = 0; i <= m; i++) {
                if(a[i] == n) {
                        b++;
                }
        }
        printf("%d", b);
        return 0;
}



Compiler output:
main.c:2:1: error: expected identifier or '(' before numeric constant
    2 | 2.
      | ^~
main.c:3:1: error: invalid suffix "int" on floating constant
    3 | 3.int main(void)
      | ^~~~~
Language: C

#include <stdio.h>

int main(void)
{
        int i,j,N,M,K,z,x=0;

        int A[1000]={0};

        scanf("%d%d",&N,&M);


        for(i=0;i<N;i++){
                scanf("%d",&K);
                for(j=0;j<K;j++){
                        scanf("%d",&z);
                        A[z]+=1;

                }

        }

        for(i=0;i<M;i++){
                if(A[i]==N)x++;
        }

        printf("%d\n",x);

        return 0;
}


~                                                                
~                                                                
~                                                                
~          

Compiler output:
main.c:32:1: error: expected identifier or '(' before '~' token
   32 | ~
      | ^
Language: C

#include <stdio.h>

int main(void)
{
        int i,j,N,M,K,z,x=0;

        int A[1000]={0};

        scanf("%d%d",&N,&M);


        for(i=0;i<N;i++){
                scanf("%d",&K);
                for(j=0;j<K;j++){
                        scanf("%d",&z);
                        A[z]+=1;

                }

        }

        for(i=0;i<M;i++){
                printf("%d\n",A[i]);
        }

        for(i=0;i<M;i++){
                if(A[i]==M)x++;
        }

        printf("%d\n",x);

        return 0;
}


~                                                                    
~                                                                    
~                                                                    
~              

Compiler output:
main.c:36:1: error: expected identifier or '(' before '~' token
   36 | ~
      | ^
Language: C

#include <stdio.h>

int main(void)
{
        int i,j,N,M,K,z,x=0;

        scanf("%d%d",&N,&M);

        int A[M];

        for(i=0;i<N;i++){
                scanf("%d",&K);
                for(j=0;j<K;j++){
                        scanf("%d",&z);
                        A[z]++;
                }

        }

        for(i=0;i<M;i++){
                if(A[i]==M)x++;
        }

        printf("%d\n",x);

        return 0;
}


~               

Compiler output:
main.c:30:1: error: expected identifier or '(' before '~' token
   30 | ~
      | ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
  int m,n;
  cin >> n,m;
  bool fugaout = bool[n];
  for(int i = 0 ; i < n ; i ++)
  {
    fugaout[i] = false;
  }
  for(int i = 0 ; i < n ; i ++)
  {
    int j;
    cin >> j;
    for(int k = 0 ; k < j ; k ++)
    {
      int tmp;
      cin >> tmp;
      fugaout[tmp-1] = false;
    }
  }
  int ans = 0;
  for(int i = 0 ; i < n ; i ++)
  {
	if (fugaout[i])
    {
      ans ++;
    }
  }
  cout <<ans <<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:18: error: expected primary-expression before 'bool'
    7 |   bool fugaout = bool[n];
      |                  ^~~~
a.cc:10:12: error: invalid types 'bool[int]' for array subscript
   10 |     fugaout[i] = false;
      |            ^
a.cc:20:14: error: invalid types 'bool[int]' for array subscript
   20 |       fugaout[tmp-1] = false;
      |              ^
a.cc:26:20: error: invalid types 'bool[int]' for array subscript
   26 |         if (fugaout[i])
      |                    ^
Language: C++

#include <iostream>
using namespace std;
int main()
{
  int m,n;
  cin >> m,n;
  bool fugaout[] = bool[n];
  for(int i = 0 ; i < n ; i ++)
  {
    fugaout[i] = false;
  }
  for(int i = 0 ; i < n ; i ++)
  {
    int j;
    cin >> j;
    for(int k = 0 ; k < j ; k ++)
    {
      int tmp;
      cin >> tmp;
      fugaout[tmp-1] = false;
    }
  }
  int ans = 0;
  for(int i = 0 ; i < n ; i ++)
  {
	if (fugaout[i])
    {
      ans ++;
    }
  }
  cout <<ans <<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:20: error: expected primary-expression before 'bool'
    7 |   bool fugaout[] = bool[n];
      |                    ^~~~
Language: C++

#include <iostream>
using namespace std;
int main()
{
  int m,n;
  cin >> m,n;
  bool[] fugaout = bool[n];
  for(int i = 0 ; i < n ; i ++)
  {
    fugaout[i] = false;
  }
  for(int i = 0 ; i < n ; i ++)
  {
    int j;
    cin >> j;
    for(int k = 0 ; k < j ; k ++)
    {
      int tmp;
      cin >> tmp;
      fugaout[tmp-1] = false;
    }
  }
  int ans = 0;
  for(int i = 0 ; i < n ; i ++)
  {
	if (fugaout[i])
    {
      ans ++;
    }
  }
  cout <<ans <<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: structured binding declaration cannot have type 'bool'
    7 |   bool[] fugaout = bool[n];
      |       ^~
a.cc:7:7: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:7:7: error: empty structured binding declaration
a.cc:7:10: error: expected initializer before 'fugaout'
    7 |   bool[] fugaout = bool[n];
      |          ^~~~~~~
a.cc:10:5: error: 'fugaout' was not declared in this scope
   10 |     fugaout[i] = false;
      |     ^~~~~~~
a.cc:20:7: error: 'fugaout' was not declared in this scope
   20 |       fugaout[tmp-1] = false;
      |       ^~~~~~~
a.cc:26:13: error: 'fugaout' was not declared in this scope
   26 |         if (fugaout[i])
      |             ^~~~~~~
Language: C++

#include <iostream>
using namespace std;
int main()
{
  int m,n;
  cin >> m,n;
  bool[n] fugaout;
  for(int i = 0 ; i < n ; i ++)
  {
    fugaout[i] = false;
  }
  for(int i = 0 ; i < m ; i ++)
  {
    int[i] = i+1;
  }
  for(int i = 0 ; i < n ; i ++)
  {
    int j;
    cin >> j;
    for(int k = 0 ; k < j ; k ++)
    {
      int tmp;
      cin >> tmp;
      fugaout[tmp-1] = false;
    }
  }
  int ans = 0;
  for(int i = 0 ; i < n ; i ++)
  {
	if (fugaout[i])
    {
      ans ++;
    }
  }
  cout <<ans <<endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:7: error: structured binding declaration cannot have type 'bool'
    7 |   bool[n] fugaout;
      |       ^~~
a.cc:7:7: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:7:8: error: conflicting declaration 'auto n'
    7 |   bool[n] fugaout;
      |        ^
a.cc:5:9: note: previous declaration as 'int n'
    5 |   int m,n;
      |         ^
a.cc:7:11: error: expected initializer before 'fugaout'
    7 |   bool[n] fugaout;
      |           ^~~~~~~
a.cc:10:5: error: 'fugaout' was not declared in this scope
   10 |     fugaout[i] = false;
      |     ^~~~~~~
a.cc:14:8: error: structured binding declaration cannot have type 'int'
   14 |     int[i] = i+1;
      |        ^~~
a.cc:14:8: note: type must be cv-qualified 'auto' or reference to cv-qualified 'auto'
a.cc:14:9: error: redeclaration of 'auto i'
   14 |     int[i] = i+1;
      |         ^
a.cc:12:11: note: 'int i' previously declared here
   12 |   for(int i = 0 ; i < m ; i ++)
      |           ^
a.cc:14:14: error: use of 'i' before deduction of 'auto'
   14 |     int[i] = i+1;
      |              ^
a.cc:24:7: error: 'fugaout' was not declared in this scope
   24 |       fugaout[tmp-1] = false;
      |       ^~~~~~~
a.cc:30:13: error: 'fugaout' was not declared in this scope
   30 |         if (fugaout[i])
      |             ^~~~~~~
Language: C++

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

int main(){

  int N, M; cin >> N >> M;
  vector<int> cnt(M, 0);

  for(int i = 0 ; i < N ; ++i){
    int K; cin >> K;
    for(int j = 0 ; j < K ; ++j){
      int A; cin >> A; --A;
      ++cnt[A];
    }
  }

  int ans = 0;
  for(int i = 0 ; i < M ; ++i){
    if(cnt[i] == N){
      ++ans;
    }
  }

  cout << ans << endl;

}

Compiler output:
a.cc:1:1: error: 'include' does not name a type
    1 | include <bits/stdc++.h>
      | ^~~~~~~
a.cc: In function 'int main()':
a.cc:6:13: error: 'cin' was not declared in this scope
    6 |   int N, M; cin >> N >> M;
      |             ^~~
a.cc:7:3: error: 'vector' was not declared in this scope
    7 |   vector<int> cnt(M, 0);
      |   ^~~~~~
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   vector<int> cnt(M, 0);
      |          ^~~
a.cc:13:9: error: 'cnt' was not declared in this scope; did you mean 'int'?
   13 |       ++cnt[A];
      |         ^~~
      |         int
a.cc:19:8: error: 'cnt' was not declared in this scope; did you mean 'int'?
   19 |     if(cnt[i] == N){
      |        ^~~
      |        int
a.cc:24:3: error: 'cout' was not declared in this scope
   24 |   cout << ans << endl;
      |   ^~~~
a.cc:24:18: error: 'endl' was not declared in this scope
   24 |   cout << ans << endl;
      |                  ^~~~
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() {
  cin.tie(0);
  ios::sync_with_stdio(false);
  int N, M;
  int ans = 0;
  cin >> N >> M;
  map<int, int> mp;
  for(int i = 1; i <= M; i++) {
    mp[i] == 0;
  }

  REP(i, N) {
    int K;
    cin >> K;
    REP(j, K) {
      int b;
      cin >> b;
      mp[b]++;
    }
  }

  for(auto x : mp) {
    if(x._2 == N) {
      ans++;
    }
  }
  cout << ans << endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:28:10: error: 'struct std::pair<const int, int>' has no member named '_2'
   28 |     if(x._2 == N) {
      |          ^~
Language: C++

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

bool search(int A[], int n, int key){
    int i=0;
    A[n]=key;
    while ( A[i] != key ) i++;
    return i != n;
}

int main(){
    int n, m, K[n], M[m]; cin >> n >> m;
    for (int i=0; i < m; i++) M[i]=0;

    for (int i=0; i < n ;i++){
        cin >> K[i];
        int A[K[i]];
        for (int j=0; j < K[i] ; j++) cin >> A[j];
        for (int j=0; j < m ; j++) {
            if (!( search(A, K[i], j+1))){　
                M[j]+=1; 
            }
        }

    }

    int sum=0;
    for (int i=0; i < m ; i++){
        if ( M[i] == 0 )  sum++;
    }

    cout << sum <<endl;

}

Compiler output:
a.cc:20:43: error: extended character 　 is not valid in an identifier
   20 |             if (!( search(A, K[i], j+1))){　
      |                                           ^
a.cc: In function 'int main()':
a.cc:20:43: error: '\U00003000' was not declared in this scope
   20 |             if (!( search(A, K[i], j+1))){　
      |                                           ^~
Language: C++

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

bool search(int A[], int n, int key){
    int i=0;
    A[n]=key;
    while ( A[i] != key ) i++;
    return i != n;
}

int main(){
    int n, m, K[n], M[m]; cin >> n >> m;
    for (int i=0; i < m; i++) M[i]=0;

    for (int i=0; i < n ;i++){
        cin >> K[i];
        int A[K[i]];
        for (int j=0; j < K[i] ; j++) cin >> A[j];
        for (int j=0; j < m ; j++) {
            if (!( search(A, K[i], j+1))){　//添え字は０オリジンだから１ずれる！
                M[j]+=1; 
            }
        }

    }

    int sum=0;
    for (int i=0; i < m ; i++){
        if ( M[i] == 0 )  sum++;
    }

    cout << sum <<endl;

}

Compiler output:
a.cc:20:43: error: extended character 　 is not valid in an identifier
   20 |             if (!( search(A, K[i], j+1))){　//添え字は０オリジンだから１ずれる！
      |                                           ^
a.cc: In function 'int main()':
a.cc:20:43: error: '\U00003000' was not declared in this scope
   20 |             if (!( search(A, K[i], j+1))){　//添え字は０オリジンだから１ずれる！
      |                                           ^~
Language: C++

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

bool search(int A[], int n, int key){
    int i=0;
    A[n]=key;
    while ( A[i] != key ) i++;
    return i != n;
}

int main(){
    int n, m, K[n], M[m]; cin >> n >> m;
    for (int i=o; i < m; i++) M[i]=1;

    for (int i=0; i < n ;i++){
        cin >> K[i];
        int A[K[i]];
        for (int j=0; j < K[i] ; j++) cin >> A[j];
        for (int j=0; j < m ; j++) {
            if (!( search(A, K[i], m))){
                M[j]-=1
            }
        }

    }

    int sum=0;
    for (int i=0; i < m ; i++){
        if ( search(M, m, 1)) sum++;
    }

    cout << sum <<endl;

}

Compiler output:
a.cc: In function 'int main()':
a.cc:13:16: error: 'o' was not declared in this scope
   13 |     for (int i=o; i < m; i++) M[i]=1;
      |                ^
a.cc:21:24: error: expected ';' before '}' token
   21 |                 M[j]-=1
      |                        ^
      |                        ;
   22 |             }
      |             ~
Language: C++

#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
#define REP(i,n)  for(int i=0;i<(n);++i)
#define ALL(x) (x).begin(),(x).end()
ll gcd(ll x,ll y){return y?gcd(y,x%y):x;}

int main() {
  int N, M;
  cin >> N >> M;
  int K;
  vector<vector<bool>> A(N, vector<bool>(M, false));
  REP(i, N) {
    cin >> K;
    REP(j, K) {
      int a;
      cin >> a;
      A.at(a - 1) = true;
    }
  }
  
  int count = 0;
  REP(i, M) {
    REP(j, N) {
      if (!(A.at(i).at(j))) {
        break;
      }
      count++;
    }
  }
  cout << count << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:18:21: error: no match for 'operator=' (operand types are '__gnu_cxx::__alloc_traits<std::allocator<std::vector<bool> >, std::vector<bool> >::value_type' {aka 'std::vector<bool>'} and 'bool')
   18 |       A.at(a - 1) = true;
      |                     ^~~~
In file included from /usr/include/c++/14/vector:67,
                 from /usr/include/c++/14/functional:64,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:53,
                 from a.cc:1:
/usr/include/c++/14/bits/stl_bvector.h:894:7: note: candidate: 'std::vector<bool, _Alloc>& std::vector<bool, _Alloc>::operator=(const std::vector<bool, _Alloc>&) [with _Alloc = std::allocator<bool>]'
  894 |       operator=(const vector& __x)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_bvector.h:894:31: note:   no known conversion for argument 1 from 'bool' to 'const std::vector<bool>&'
  894 |       operator=(const vector& __x)
      |                 ~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_bvector.h:926:7: note: candidate: 'std::vector<bool, _Alloc>& std::vector<bool, _Alloc>::operator=(std::vector<bool, _Alloc>&&) [with _Alloc = std::allocator<bool>]'
  926 |       operator=(vector&& __x) noexcept(_Bit_alloc_traits::_S_nothrow_move())
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_bvector.h:926:26: note:   no known conversion for argument 1 from 'bool' to 'std::vector<bool>&&'
  926 |       operator=(vector&& __x) noexcept(_Bit_alloc_traits::_S_nothrow_move())
      |                 ~~~~~~~~~^~~
/usr/include/c++/14/bits/stl_bvector.h:952:7: note: candidate: 'std::vector<bool, _Alloc>& std::vector<bool, _Alloc>::operator=(std::initializer_list<bool>) [with _Alloc = std::allocator<bool>]'
  952 |       operator=(initializer_list<bool> __l)
      |       ^~~~~~~~
/usr/include/c++/14/bits/stl_bvector.h:952:40: note:   no known conversion for argument 1 from 'bool' to 'std::initializer_list<bool>'
  952 |       operator=(initializer_list<bool> __l)
      |                 ~~~~~~~~~~~~~~~~~~~~~~~^~~
Language: C++

#include<bits/stdc++.h>
#define all(x) (x).begin(),(x).end()
typedef long long ll;
#define rep(i,n) for(ll i=0, i##_len=(n); i<i##_len; ++i)
using namespace std;
#define sz(x) ((int)(x).size())
#define ZERO(a) memset(a,0,sizeof(a))
#define MINUS(a) memset(a,0xff,sizeof(a))
#define MEMSET(v, h) memset((v), h, sizeof(v))
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
#define pb push_back
#define mp make_pair
#define y0 y3487465
#define y1 y8687969
#define j0 j1347829
#define j1 j234892
ll gcd(ll a,ll b){return b?gcd(b,a%b):a;}
const ll INF = 1LL<<60;
 
int main() {
	ll n,m,k;
  	cin >> n >> m;
  	vector<ll> tab(m) = (m , 0);
  	ll ans = 0;
  	rep(i,n){
      cin >> k;
      vector<ll> a(k);
      rep(j,k) {
        cin >> a[j];
        ++tab[a[j]];
      }
    }
  
  	for(auto itr = tab.begin(); itr != tab.end(); ++itr){
      if(*itr == n){
        ++ans;
      }
    }
  	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:27: error: expected ',' or ';' before '=' token
   24 |         vector<ll> tab(m) = (m , 0);
      |                           ^
Language: C++

#include<bits/stdc++.h>
#define all(x) (x).begin(),(x).end()
typedef long long ll;
#define rep(i,n) for(ll i=0, i##_len=(n); i<i##_len; ++i)
using namespace std;
#define sz(x) ((int)(x).size())
#define ZERO(a) memset(a,0,sizeof(a))
#define MINUS(a) memset(a,0xff,sizeof(a))
#define MEMSET(v, h) memset((v), h, sizeof(v))
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
#define pb push_back
#define mp make_pair
#define y0 y3487465
#define y1 y8687969
#define j0 j1347829
#define j1 j234892
ll gcd(ll a,ll b){return b?gcd(b,a%b):a;}
const ll INF = 1LL<<60;
 
int main() {
	ll n,m,k;
  	cin >> n >> m;
  	vector<ll> tab(m) = (5 , 0);
  	ll ans = 0;
  	rep(i,n){
      cin >> k;
      vector<ll> a(k);
      rep(j,k) {
        cin >> a[j];
        ++tab[a[j]];
      }
    }
  
  	for(auto itr = tab.begin(); itr != tab.end(); ++itr){
      if(*itr == n){
        ++ans;
      }
    }
  	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:27: error: expected ',' or ';' before '=' token
   24 |         vector<ll> tab(m) = (5 , 0);
      |                           ^
Language: C++

#include<bits/stdc++.h>
#define all(x) (x).begin(),(x).end()
typedef long long ll;
#define rep(i,n) for(ll i=0, i##_len=(n); i<i##_len; ++i)
using namespace std;
#define sz(x) ((int)(x).size())
#define ZERO(a) memset(a,0,sizeof(a))
#define MINUS(a) memset(a,0xff,sizeof(a))
#define MEMSET(v, h) memset((v), h, sizeof(v))
template<class T>bool chmax(T &a, const T &b) { if (a<b) { a=b; return 1; } return 0; }
template<class T>bool chmin(T &a, const T &b) { if (b<a) { a=b; return 1; } return 0; }
#define pb push_back
#define mp make_pair
#define y0 y3487465
#define y1 y8687969
#define j0 j1347829
#define j1 j234892
ll gcd(ll a,ll b){return b?gcd(b,a%b):a;}
const ll INF = 1LL<<60;
 
int main() {
	ll n,m,k;
  	cin >> n >> m;
  	vector<ll> tab(m) = {0};
  	ll ans = 0;
  	rep(i,n){
      cin >> k;
      vector<ll> a(k);
      rep(j,k) {
        cin >> a[j];
        ++tab[a[j]];
      }
    }
  
  	for(auto itr = tab.begin(); itr != tab.end(); ++itr){
      if(*itr == n){
        ++ans;
      }
    }
  	cout << ans << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:24:27: error: expected ',' or ';' before '=' token
   24 |         vector<ll> tab(m) = {0};
      |                           ^
Language: C++

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

Compiler output:
a.cc: In function 'int main()':
a.cc:6:3: error: 'vector' was not declared in this scope
    6 |   vector<int> cnt(m + 1, 0);
      |   ^~~~~~
a.cc:2:1: note: 'std::vector' is defined in header '<vector>'; this is probably fixable by adding '#include <vector>'
    1 | #include <iostream>
  +++ |+#include <vector>
    2 | using namespace std;
a.cc:6:10: error: expected primary-expression before 'int'
    6 |   vector<int> cnt(m + 1, 0);
      |          ^~~
a.cc:13:7: error: 'cnt' was not declared in this scope; did you mean 'int'?
   13 |       cnt[x] += 1;
      |       ^~~
      |       int
a.cc:18:8: error: 'cnt' was not declared in this scope; did you mean 'int'?
   18 |     if(cnt[i] == n) {
      |        ^~~
      |        int
Language: C++

#include <iostream>
#include <vector>
using namespace std;
int main() {
  int N = 0;
  int M = 0;
  std::cin >> N >> M;
  std::string str;  //今回は15文字入力と予めわかっている
  std::vector<int> j_row(M, 0);
  std::vector<std::vector<int>> v(N, j_row);
  int K[40];

  std::vector<int> a_row(40, 0);
  std::vector<std::vector<int>> A(40, j_row);

  for (int i = 0; i < N; i++) {
    cin >> K[i];
    for (int j = 0; j < K[i]; ++j) {
      cin >> A[i][j];
    }
  }

  for (int i = 0; i < N; i++) {
    for (int j = 0; j < A[i].size(); j++) {
      std::cout << A[i][j] << " ";
    }
    std::cout << std::endl;
  }

  int counter_2 = 0;
  for (int m = 1; m < M; m++) {
    int counter = 0;
    for (int i = 0; i < N; i++) {
      auto itr = std::find(A[i].begin(), A[i].end(), m);
      //  最初の要素5へのイテレータを返す
      if (itr != A[i].end()) {
        counter += 1;
      }
    }

    if (counter == N) {
      // std::cout << m << std::endl;
      counter_2 += 1;
    }
  }

  std::cout << counter_2 << std::endl;
  return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:34:27: error: no matching function for call to 'find(std::vector<int>::iterator, std::vector<int>::iterator, int&)'
   34 |       auto itr = std::find(A[i].begin(), A[i].end(), m);
      |                  ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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:34:27: note:   '__gnu_cxx::__normal_iterator<int*, std::vector<int> >' is not derived from 'std::istreambuf_iterator<_CharT>'
   34 |       auto itr = std::find(A[i].begin(), A[i].end(), m);
      |                  ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Language: C

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

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


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

#include <stdio.h>

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

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

#include<iostream>
using namespace std;

int main() {
  int N, M; cin >> N >> M;
  int K[M], A[N][M];
  for (int i = 0; i < N; ++i) {
    cin >> K[i];
    for (int j = 0; j < K[i]; ++j) cin >> A[i][j];
  }
  int contain_list[M]; for (var i = 0; i < M; ++i) contain_list[i] = true;
  for (int i = 0; i < N; ++i) {
    int counter = 0, flag = 0;
    for (int j = 1; j < M; ++j) {
      if ((flag == 0) && (j == A[i][counter])) {
        ++counter;
        if (counter >= K[i]) flag = 1;
      } else {
        contain_list[j - 1] = false;
      }
    }
  }
  int res = 0;
  for (int i = 0; i < M; ++i) {
    if (contain_list[i] == true) ++res;
  }
  cout << res << endl;
}


Compiler output:
a.cc: In function 'int main()':
a.cc:11:29: error: 'var' was not declared in this scope
   11 |   int contain_list[M]; for (var i = 0; i < M; ++i) contain_list[i] = true;
      |                             ^~~
a.cc:11:40: error: 'i' was not declared in this scope
   11 |   int contain_list[M]; for (var i = 0; i < M; ++i) contain_list[i] = true;
      |                                        ^
Language: C

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

int main(){
    int N,ans=0;
    int M;
    scanf("%d %d",&N,&M);
    int menu[M+1];
    for(i=1;i<=M;i++) menu[i]=0;
    int i,j,t;
    for(i=0;i<N;i++){
        int K;
        scanf("%d",&K);
        for(j=0;j<K;j++){
            scanf("%d",&t);
            menu[t] += 1;
        }
    }
    for(i=1;i<=M;i++) if(menu[i]==N) ans+=1;
    printf("%d",ans);
    return 0;
}

Compiler output:
main.c: In function 'main':
main.c:11:9: error: 'i' undeclared (first use in this function)
   11 |     for(i=1;i<=M;i++) menu[i]=0;
      |         ^
main.c:11:9: note: each undeclared identifier is reported only once for each function it appears in
Language: C++

#include<iostream>
using namespace std;

int main() {
  int N, M; cin >> N >> M;
  int K[M], A[N][M];
  for (var i = 0; i < N; ++i) {
    cin >> K[i];
    for (var j = 0; j < K[i]; ++j) cin >> A[i][j];
  }
  int contain_list[M]; for (var i = 0; i < M; ++i) contain_list[i] = true;
  for (var i = 0; i < N; ++i) {
    int counter = 0, flag = 0;
    for (var j = 0; j < M; ++j) {
      if ((flag == 1) && (j == A[i][counter])) {
        ++counter;
        if (counter >= K[i]) flag = 1;
      } else {
        contain_list[j] = false;
      }
    }
  }
  int res = 0;
  for (var i = 0; i < M; ++i) {
    if (contain_list[i] == true) ++res;
  }
  cout << res << endl;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:8: error: 'var' was not declared in this scope
    7 |   for (var i = 0; i < N; ++i) {
      |        ^~~
a.cc:7:19: error: 'i' was not declared in this scope
    7 |   for (var i = 0; i < N; ++i) {
      |                   ^
a.cc:9:13: error: expected ';' before 'j'
    9 |     for (var j = 0; j < K[i]; ++j) cin >> A[i][j];
      |             ^~
      |             ;
a.cc:9:21: error: 'j' was not declared in this scope
    9 |     for (var j = 0; j < K[i]; ++j) cin >> A[i][j];
      |                     ^
a.cc:11:29: error: 'var' was not declared in this scope
   11 |   int contain_list[M]; for (var i = 0; i < M; ++i) contain_list[i] = true;
      |                             ^~~
a.cc:11:40: error: 'i' was not declared in this scope
   11 |   int contain_list[M]; for (var i = 0; i < M; ++i) contain_list[i] = true;
      |                                        ^
a.cc:12:8: error: 'var' was not declared in this scope
   12 |   for (var i = 0; i < N; ++i) {
      |        ^~~
a.cc:12:19: error: 'i' was not declared in this scope
   12 |   for (var i = 0; i < N; ++i) {
      |                   ^
a.cc:14:13: error: expected ';' before 'j'
   14 |     for (var j = 0; j < M; ++j) {
      |             ^~
      |             ;
a.cc:14:21: error: 'j' was not declared in this scope
   14 |     for (var j = 0; j < M; ++j) {
      |                     ^
a.cc:24:8: error: 'var' was not declared in this scope
   24 |   for (var i = 0; i < M; ++i) {
      |        ^~~
a.cc:24:19: error: 'i' was not declared in this scope
   24 |   for (var i = 0; i < M; ++i) {
      |                   ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main() 
{
  int N,M; 
  cin>>N>>M;
  vector<int> cnt(M,0);
  for(int i=0;i<N;++i){
     int K; cin>>K;
     for(int j=0;j<K;++j){
      int S; cin>>S;
      ++cnt[S-1];
       }
 }
  int T=0;
  for(int f=0;f<M;++f){
     if(cnt[f]==N){
         ++T;
     }
   }
  cout<<T<<end1;
}

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

#include <bits/stdc++.h>
using namespace std;
int main()
{
  int N,M; 
  cin>>N>>M;
  vector<int> cnt(M,0);
  for(int i=0;i>N;i++){
     int K; cin>>K;
     for(int j=0;j>K;j++){
      int S; cin>>S;
      ++cnt[S-1];
       }
  int T=0;
  for(int f=0;f<M;f++){
     if(cnt[f]==N){
         T++;
     }
   }
  cout<<T<<end1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:12: error: 'end1' was not declared in this scope
   20 |   cout<<T<<end1;
      |            ^~~~
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main()
{
  int N,M; 
  cin>>N>>M;
  vector<int> cnt(M,0);
  for(int i=0;i>N;i++){
     int K; cin>>K;
     for(int j=0;j>K;j++){
      int S; cin>>S;
      ++cnt[S-1];
       }
  int T=0;
  for(int f=0;f<M;f++){
     if(cnt[f]==N){
         T++;
     }
   }
  cout<<T;
}

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

#include <bits/stdc++.h>
using namespace std;
int main( )
{
  int N,M; 
  cin>>N>>M;
  vector<int> cnt(M,0);
  for(int i=0;i>N;i++){
     int K; cin>>K;
     for(int j=0;j>K;j++){
      int S; cin>>S;
      ++cnt[S-1];
       }
  int T=0;
  for(int f=0;f<M;f++){
     if(cnt[f]==N){
         T++;
     }
   }
  cout<<T<<end1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:12: error: 'end1' was not declared in this scope
   20 |   cout<<T<<end1;
      |            ^~~~
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(void)
{
  int N,M; 
  cin>>N>>M;
  vector<int> cnt(M,0);
  for(int i=0;i>N;i++){
     int K; cin>>K;
     for(int j=0;j>K;j++){
      int S; cin>>S;
      ++cnt[S-1];
       }
  int T=0;
  for(int f=0;f<M;f++){
     if(cnt[f]==N){
         T++;
     }
   }
  cout<<T<<end1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:20:12: error: 'end1' was not declared in this scope
   20 |   cout<<T<<end1;
      |            ^~~~
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <bits/stdc++.h>
using namespace std;
int main(void)
{
  int N,M; 
  cin>>N>>M;
  vector(int) cnt(M,0);
  for(int i=0;i>N;i++){
     int K; cin>>K;
     for(int j=0;j>K;j++){
      int S; cin>>S;
      ++cnt[S-1];
       }
  int T=0;
  for(int f=0;f<M;f++){
     if(cnt[f]==N){
         T++;
     }
   }
  cout<<T<<end1;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:7:9: error: missing template arguments before '(' token
    7 |   vector(int) cnt(M,0);
      |         ^
a.cc:7:10: error: expected primary-expression before 'int'
    7 |   vector(int) cnt(M,0);
      |          ^~~
a.cc:12:9: error: 'cnt' was not declared in this scope; did you mean 'int'?
   12 |       ++cnt[S-1];
      |         ^~~
      |         int
a.cc:16:9: error: 'cnt' was not declared in this scope; did you mean 'int'?
   16 |      if(cnt[f]==N){
      |         ^~~
      |         int
a.cc:20:12: error: 'end1' was not declared in this scope
   20 |   cout<<T<<end1;
      |            ^~~~
a.cc:21:2: error: expected '}' at end of input
   21 | }
      |  ^
a.cc:4:1: note: to match this '{'
    4 | {
      | ^
Language: C++

#include <bits/stdc+/h>
using namespace std;
int main(void)
{
  int N,M; 
  cin>>N>>M;
  vector(int) cnt(M,0);
  for(int i=0;i>N;i++){
     int K; cin>>K;
     for(int j=0;j>K;j++){
      int S; cin>>S;
      ++cnt[S-1];
       }
  int T=0;
  for(int f=0;f<M;f++){
     if(cnt[f]==N){
         T++;
     }
   }
  cout<<T<<end1;
}

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

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

int main() {
	int N, M;
	cin >> N, M;
	vector<int>vec(M, 0);
	for (int i = 0; i < N; i++) {
		int K;
		cin >> K;
		for (int j = 0; j < K; j++) {
			int A;
			cin >> A;
			A = A - 1;
			++vec[A];
		}
	}

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

#include <bits/stdc++.h>
#define fi first
#define se second
#define rep(i,n) for(int i = 0; i < (n); ++i)
#define rrep(i,n) for(int i = 1; i <= (n); ++i)
#define drep(i,n) for(int i = (n)-1; i >= 0; --i)
#define srep(i,s,t) for (int i = s; i < t; ++i)
#define rng(a) a.begin(),a.end()
#define maxs(x,y) (x = max(x,y))
#define mins(x,y) (x = min(x,y))
#define limit(x,l,r) max(l,min(x,r))
#define lims(x,l,r) (x = max(l,min(x,r)))
#define isin(x,l,r) ((l) <= (x) && (x) < (r))
#define pb push_back
#define sz(x) (int)(x).size()
#define pcnt __builtin_popcountll
#define uni(x) x.erase(unique(rng(x)),x.end())
#define snuke srand((unsigned)clock()+(unsigned)time(NULL));
#define show(x) cout<<#x<<" = "<<x<<endl;
#define PQ(T) priority_queue<T,v(T),greater<T> >
#define bn(x) ((1<<x)-1)
#define dup(x,y) (((x)+(y)-1)/(y))
#define newline puts("")
#define v(T) vector<T>
#define vv(T) v(v(T))
using namespace std;
typedef long long int ll;
typedef unsigned uint;
typedef unsigned long long ull;
typedef pair<int,int> P;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef vector<ll> vl;
typedef vector<P> vp;
inline int in() { int x; scanf("%d",&x); return x;}
template<typename T>inline istream& operator>>(istream&i,v(T)&v)
{rep(j,sz(v))i>>v[j];return i;}
template<typename T>string join(const v(T)&v)
{stringstream s;rep(i,sz(v))s<<' '<<v[i];return s.str().substr(1);}
template<typename T>inline ostream& operator<<(ostream&o,const v(T)&v)
{if(sz(v))o<<join(v);return o;}
template<typename T1,typename T2>inline istream& operator>>(istream&i,pair<T1,T2>&v)
{return i>>v.fi>>v.se;}
template<typename T1,typename T2>inline ostream& operator<<(ostream&o,const pair<T1,T2>&v)
{return o<<v.fi<<","<<v.se;}
template<typename T>inline ll suma(const v(T)& a) { ll res(0); for (auto&& x : a) res += x; return res;}
const double eps = 1e-10;
const ll LINF = 1001002003004005006ll;
const int INF = 1001001001;
#define dame { puts("-1"); return 0;}
#define yn {puts("Yes");}else{puts("No");}
const int MX = 200005;
#define RET(ans) {cout<<ans<<endl;return 0;} 

    // 二次元ベクターの基本
    /*
    vector<vector<int>> dp; // 宣言
    dp.resize(n); // 1次元めの要素数決定
    dp[i].push_back(int); // プッシュバック
    rep(i,n){
        sort(dp[i].begin(),dp[i].end()); // 二次元めを昇順ソート
    }
    */

    // 整数スキャン（複数）
    /*
    int x,y,z;
    scanf("%d%d%d",&x,&y,&z);

    // n個の整数のスキャン
    /*
    ll a[n] = {};
    rep(i,n){
        scanf("%lld",&a[i]);
    }
    */

    // 文字列スキャン
    /*
    string s; cin >> s;
    */

    // n個の文字列スキャン
    /*
    vector<string> slist;
    rep(i,n){
        string s; cin >> s;
        slist.push_back(s);
    }
    */

int main() {
    int n,m;
    cin >> n >> m;
    x[m] = {};

    ll ans = 0;
    rep(i,n){
        int k;
        cin >> k;
        rep(i,k){
            int a;
            cin >> a;
            x[a]++;
        }
    }
    rep(i,m){
        if(x[i]==n)ans++;
    }

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


Compiler output:
a.cc: In function 'int main()':
a.cc:95:5: error: 'x' was not declared in this scope
   95 |     x[m] = {};
      |     ^
Language: C++

# include < bits / stdc ++. h >
using namespace std ;
int main () {
	int N , M ; cin >> N >> M ;
	vector <int > cnt (M , 0);
	for ( int i = 0; i < N ; ++ i ) {
		int K; cin >> K ;
		for ( int j = 0; j < K ; ++ j ) {
			int A; cin >> A ; --A ;
			++ cnt [ A ];
		}
	}
int ans = 0;
	for ( int i = 0; i < M ; ++ i ) {
		if ( cnt [ i ] == N ) {
			++ ans ;
			}
		}
	cout << ans << endl ;
}

Compiler output:
a.cc:1:11: 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,m,k,f;
  	cin >> n >> m;
  	int a[n][m]={0};
  	for(int i=0;i<n;i++){
    	cin >> k
          for(int j=0;j<k;j++){
            cin >> f;
          a[i][f-1]=1;
          }
    }
  	int ans=0;
  	for(int i=0;i<m;i++){
    	bool falg=true;
      	for(int j=0;j<n;j++){
        	if(a[j][i]!=1){
            	falg=false;
              	break;
            }
        }
      if(falg)
        ans++;
    }
  	cout << ans << '\n';
  	return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:10:17: error: expected ';' before 'for'
   10 |         cin >> k
      |                 ^
      |                 ;
   11 |           for(int j=0;j<k;j++){
      |           ~~~    
a.cc:11:23: error: 'j' was not declared in this scope
   11 |           for(int j=0;j<k;j++){
      |                       ^
Language: C++

#include <iostream>
using namespace std;

int main() {
    int N, M;
    cin >> N >> M;
    int count[M+1];
    memset(count,0,sizeof(count));
    for (int i = 1; i <= N; i++) {
        int K;
        cin >> K;
        for (int j = 1; j <= K; j++) {
            int A;
            cin >> A;
            count[A]++;
        }
    }
    int result = 0;
    for (int i = 1; i <= M; i++) {
        if (count[i] == N) {
            result++; 
        }
    }
    cout << result << endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:8:5: error: 'memset' was not declared in this scope
    8 |     memset(count,0,sizeof(count));
      |     ^~~~~~
a.cc:2:1: note: 'memset' is defined in header '<cstring>'; this is probably fixable by adding '#include <cstring>'
    1 | #include <iostream>
  +++ |+#include <cstring>
    2 | using namespace std;
Language: C

include<stdio.h>
  
int main(){
  int N, M, K, A, check[30] = {0}, i, j, count = 0;
  
  scanf("%d %d", &N, &M);
  
  for (i = 0; i < N; i++){
    scanf("%d", &K);
    for (j = 0; j < K; j++){
      scanf("%d", A);
      check[A - 1]++;
    }
  }
  
  for (i = 0; i < N; i++){
    if(check[i] == N){
      count++;
    }
  }
  
  printf("%d\n", count);
  
  return 0;
}

Compiler output:
main.c:1:8: error: expected '=', ',', ';', 'asm' or '__attribute__' before '<' token
    1 | include<stdio.h>
      |        ^