Language: C++

#include <bits/stdc++.h>
using namespace std;
#define rep(i,a,b) for(int i=a;i<b;i++)
#define rrep(i,a,b) for(int i=a;i>=b;i--)
#define fore(i,a) for(auto &i:a)
#define all(x) (x).begin(),(x).end()

typedef Long Long ll;
int g[15][15];

int main() {
    int n;
    cin >> n;
    rep(i, n)rep(j, n) g[i][j] = -1;
    rep(i, n){
        int m;
        cin >> m;
        rep(j, m) {
            int a, x;
            cin >> a >> x;
            --a;
            g[i][a] = x;
        }
    }
    int ans = 0;
    rep(i, 1 << n) {
        vector<int> d(n);
        rep(j, n) if (i >> j&1) {
            d[j] = 1;
        }
        bool ok = true;
        rep(j, n) {
            if (d[j]) {
                rep(k, n) {
                    if (g[j][k] == -1) continue;
                    if (g[j][k] != d[k]) ok = false;
                }
            }
        }
        if (ok) ans = max(ans, __builtin_popcount(i));
    }
    cout << ans << endl;
    return 0;


}

Compiler output:
a.cc:14:13: error: macro "rep" requires 3 arguments, but only 2 given
   14 |     rep(i, n)rep(j, n) g[i][j] = -1;
      |             ^
a.cc:3:9: note: macro "rep" defined here
    3 | #define rep(i,a,b) for(int i=a;i<b;i++)
      |         ^~~
a.cc:14:22: error: macro "rep" requires 3 arguments, but only 2 given
   14 |     rep(i, n)rep(j, n) g[i][j] = -1;
      |                      ^
a.cc:3:9: note: macro "rep" defined here
    3 | #define rep(i,a,b) for(int i=a;i<b;i++)
      |         ^~~
a.cc:15:13: error: macro "rep" requires 3 arguments, but only 2 given
   15 |     rep(i, n){
      |             ^
a.cc:3:9: note: macro "rep" defined here
    3 | #define rep(i,a,b) for(int i=a;i<b;i++)
      |         ^~~
a.cc:18:17: error: macro "rep" requires 3 arguments, but only 2 given
   18 |         rep(j, m) {
      |                 ^
a.cc:3:9: note: macro "rep" defined here
    3 | #define rep(i,a,b) for(int i=a;i<b;i++)
      |         ^~~
a.cc:26:18: error: macro "rep" requires 3 arguments, but only 2 given
   26 |     rep(i, 1 << n) {
      |                  ^
a.cc:3:9: note: macro "rep" defined here
    3 | #define rep(i,a,b) for(int i=a;i<b;i++)
      |         ^~~
a.cc:28:17: error: macro "rep" requires 3 arguments, but only 2 given
   28 |         rep(j, n) if (i >> j&1) {
      |                 ^
a.cc:3:9: note: macro "rep" defined here
    3 | #define rep(i,a,b) for(int i=a;i<b;i++)
      |         ^~~
a.cc:32:17: error: macro "rep" requires 3 arguments, but only 2 given
   32 |         rep(j, n) {
      |                 ^
a.cc:3:9: note: macro "rep" defined here
    3 | #define rep(i,a,b) for(int i=a;i<b;i++)
      |         ^~~
a.cc:34:25: error: macro "rep" requires 3 arguments, but only 2 given
   34 |                 rep(k, n) {
      |                         ^
a.cc:3:9: note: macro "rep" defined here
    3 | #define rep(i,a,b) for(int i=a;i<b;i++)
      |         ^~~
a.cc:8:9: error: 'Long' does not name a type; did you mean 'long'?
    8 | typedef Long Long ll;
      |         ^~~~
      |         long
a.cc: In function 'int main()':
a.cc:14:5: error: 'rep' was not declared in this scope
   14 |     rep(i, n)rep(j, n) g[i][j] = -1;
      |     ^~~
a.cc:15:8: error: expected ';' before '{' token
   15 |     rep(i, n){
      |        ^     ~
      |        ;
a.cc:26:8: error: expected ';' before '{' token
   26 |     rep(i, 1 << n) {
      |        ^           ~
      |        ;