Language: C++

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

#define IOS ios::sync_with_stdio(false); cin.tie(0);
using INT64 = long long;

int main(void)
{
    IOS
    int n,m;
    cin >> n>>m;
    vector<int> p(m);
    vector<bitset<11>> d;
    for(int i = 0; i < m; i++){
        bitset<11> bs(0);
        int k;
        cin >> k;
        for (int j = 0; j < k;j++) {
            int s;
            cin >> s;
            bs.set(s-1);
        }
        //cerr << bs << endl;
        d.push_back(bs);
    }
    for(int i = 0; i < m;i++) cin >> p[i];

    unsigned int sw = 1 << (n);

    int ans=0;
    for(unsigned int i = 1; i < sw;i++){
        bitset<11> ssw(i);
        cerr << ssw << endl;
        bool flag = true;
        for (int j = 0; j < m; j++) {
            bitset<10> sk = d[j];
            //cerr << sk << endl;
            sk &= ssw;
            int count = sk.count();
            //cerr << count << endl;
            if (count % 2 != p[j]) {
                flag = false;
                break;
            }
            if (!flag) break;
        }
        if (flag) ans++;
    }

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

Compiler output:
a.cc: In function 'int main()':
a.cc:38:32: error: conversion from 'bitset<11>' to non-scalar type 'bitset<10>' requested
   38 |             bitset<10> sk = d[j];
      |                                ^
a.cc:40:16: error: no match for 'operator&=' (operand types are 'std::bitset<10>' and 'std::bitset<11>')
   40 |             sk &= ssw;
      |             ~~~^~~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:52,
                 from a.cc:1:
/usr/include/c++/14/bitset:1048:7: note: candidate: 'std::bitset<_Nb>& std::bitset<_Nb>::operator&=(const std::bitset<_Nb>&) [with long unsigned int _Nb = 10]'
 1048 |       operator&=(const bitset<_Nb>& __rhs) _GLIBCXX_NOEXCEPT
      |       ^~~~~~~~
/usr/include/c++/14/bitset:1048:37: note:   no known conversion for argument 1 from 'std::bitset<11>' to 'const std::bitset<10>&'
 1048 |       operator&=(const bitset<_Nb>& __rhs) _GLIBCXX_NOEXCEPT
      |                  ~~~~~~~~~~~~~~~~~~~^~~~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:41:
/usr/include/c++/14/cstddef:173:3: note: candidate: 'constexpr std::byte& std::operator&=(byte&, byte)'
  173 |   operator&=(byte& __l, byte __r) noexcept
      |   ^~~~~~~~
/usr/include/c++/14/cstddef:173:20: note:   no known conversion for argument 1 from 'std::bitset<10>' to 'std::byte&'
  173 |   operator&=(byte& __l, byte __r) noexcept
      |              ~~~~~~^~~
In file included from /usr/include/c++/14/streambuf:43,
                 from /usr/include/c++/14/bits/streambuf_iterator.h:35,
                 from /usr/include/c++/14/iterator:66,
                 from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:54:
/usr/include/c++/14/bits/ios_base.h:109:3: note: candidate: 'constexpr const std::_Ios_Fmtflags& std::operator&=(_Ios_Fmtflags&, _Ios_Fmtflags)'
  109 |   operator&=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) _GLIBCXX_NOTHROW
      |   ^~~~~~~~
/usr/include/c++/14/bits/ios_base.h:109:29: note:   no known conversion for argument 1 from 'std::bitset<10>' to 'std::_Ios_Fmtflags&'
  109 |   operator&=(_Ios_Fmtflags& __a, _Ios_Fmtflags __b) _GLIBCXX_NOTHROW
      |              ~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/ios_base.h:159:3: note: candidate: 'constexpr const std::_Ios_Openmode& std::operator&=(_Ios_Openmode&, _Ios_Openmode)'
  159 |   operator&=(_Ios_Openmode& __a, _Ios_Openmode __b) _GLIBCXX_NOTHROW
      |   ^~~~~~~~
/usr/include/c++/14/bits/ios_base.h:159:29: note:   no known conversion for argument 1 from 'std::bitset<10>' to 'std::_Ios_Openmode&'
  159 |   operator&=(_Ios_Openmode& __a, _Ios_Openmode __b) _GLIBCXX_NOTHROW
      |              ~~~~~~~~~~~~~~~^~~
/usr/include/c++/14/bits/ios_base.h:206:3: note: candidate: 'constexpr const std::_Ios_Iostate& std::operator&=(_Ios_Iostate&, _Ios_Iostate)'
  206 |   operator&=(_Ios_Iostate& __a, _Ios_Iostate __b) _GLIBCXX_NOTHROW
      |   ^~~~~~~~
/usr/include/c++/14/bits/ios_base.h:206:28: note:   no known conversion for argument 1 from 'std::bitset<10>' to 'std::_Ios_Iostate&'
  206 |   operator&=(_Ios_Iostate& __a, _Ios_Iostate __b) _GLIBCXX_NOTHROW
      |              ~~~~~~~~~~~~~~^~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:176:
/usr/include/c++/14/future:181:18: note: candidate: 'constexpr std::launch& std::operator&=(launch&, launch)'
  181 |   inline launch& operator&=(launch& __x, launch __y) noexcept
      |                  ^~~~~~~~
/usr/include/c++/14/future:181:37: note:   no known conversion for argument 1 from 'std::bitset<10>' to 'std::launch&'
  181 |   inline launch& operator&=(launch& __x, launch __y) noexcept
      |                             ~~~~~~~~^~~
In file included from /usr/include/x86_64-linux-gnu/c++/14/bits/stdc++.h:198:
/usr/include/c++/14/charconv:650:3: note: candidate: 'constexpr std::chars_format& std::operator&=(chars_format&, chars_format)'
  650 |   operator&=(chars_format& __lhs, chars_format __rhs) noexcept
      |   ^~~~~~~~
/usr/include/c++/14/charconv:650:28: note:   no known conversion for argument 1 from 'std::bitset<10>' to 'std::chars_format&'
  650 |   operator&=(chars_format& __lhs, chars_format __rhs) noexcept
      |              ~~~~~~~~~~~~~~^~~~~