Language: C++

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

int main(){
    ll n,m,k,c=0,a=0;
    cin>>n>>m;
    vector<vector<ll>> s(m);
    for(ll i=0;i<m;i++){
        cin>>k;
        s[i].resize(k);
        for(ll j=0;j<k;j++){
            cin>>s[i][j];
            s[i][j]--;
        }
    }
    vector<ll> p(m);
    for(ll i=0;i<m;i++) cin>>p[i];
    for(ll i=0;i<(1<<n);i++){
        for(ll j=0;j<m;j++){
            for(auto sw:s[j]){
                if((i>>sw)&1) c++;
            }
            if(c%2!=p[j]) break;
            if(j==m-1) a++;
            c=0;
        }
    }
    cout<<a<<endl;
    return 0;
}

Compiler output:
a.cc: In function 'int main()':
a.cc:5:5: error: 'll' was not declared in this scope
    5 |     ll n,m,k,c=0,a=0;
      |     ^~
a.cc:6:10: error: 'n' was not declared in this scope; did you mean 'yn'?
    6 |     cin>>n>>m;
      |          ^
      |          yn
a.cc:6:13: error: 'm' was not declared in this scope; did you mean 'tm'?
    6 |     cin>>n>>m;
      |             ^
      |             tm
a.cc:7:19: error: template argument 2 is invalid
    7 |     vector<vector<ll>> s(m);
      |                   ^~
a.cc:7:21: error: template argument 1 is invalid
    7 |     vector<vector<ll>> s(m);
      |                     ^~
a.cc:7:21: error: template argument 2 is invalid
a.cc:8:11: error: expected ';' before 'i'
    8 |     for(ll i=0;i<m;i++){
      |           ^~
      |           ;
a.cc:8:16: error: 'i' was not declared in this scope
    8 |     for(ll i=0;i<m;i++){
      |                ^
a.cc:9:14: error: 'k' was not declared in this scope
    9 |         cin>>k;
      |              ^
a.cc:11:15: error: expected ';' before 'j'
   11 |         for(ll j=0;j<k;j++){
      |               ^~
      |               ;
a.cc:11:20: error: 'j' was not declared in this scope
   11 |         for(ll j=0;j<k;j++){
      |                    ^
a.cc:16:14: error: template argument 2 is invalid
   16 |     vector<ll> p(m);
      |              ^
a.cc:17:11: error: expected ';' before 'i'
   17 |     for(ll i=0;i<m;i++) cin>>p[i];
      |           ^~
      |           ;
a.cc:17:16: error: 'i' was not declared in this scope
   17 |     for(ll i=0;i<m;i++) cin>>p[i];
      |                ^
a.cc:18:11: error: expected ';' before 'i'
   18 |     for(ll i=0;i<(1<<n);i++){
      |           ^~
      |           ;
a.cc:18:16: error: 'i' was not declared in this scope
   18 |     for(ll i=0;i<(1<<n);i++){
      |                ^
a.cc:19:15: error: expected ';' before 'j'
   19 |         for(ll j=0;j<m;j++){
      |               ^~
      |               ;
a.cc:19:20: error: 'j' was not declared in this scope
   19 |         for(ll j=0;j<m;j++){
      |                    ^
a.cc:21:31: error: 'c' was not declared in this scope
   21 |                 if((i>>sw)&1) c++;
      |                               ^
a.cc:23:16: error: 'c' was not declared in this scope
   23 |             if(c%2!=p[j]) break;
      |                ^
a.cc:24:24: error: 'a' was not declared in this scope
   24 |             if(j==m-1) a++;
      |                        ^
a.cc:25:13: error: 'c' was not declared in this scope
   25 |             c=0;
      |             ^
a.cc:28:11: error: 'a' was not declared in this scope
   28 |     cout<<a<<endl;
      |           ^