0_0_19231271_12036.cpp:16:5: error: stray '#' in program
LL;#pragma comment(linker, "/STACK:102400000,102400000")
^
0_0_19231271_12036.cpp:16:6: error: 'pragma' does not name a type
LL;#pragma comment(linker, "/STACK:102400000,102400000")
^
0_0_19231271_12036.cpp:24:7: error: 'N' was not declared in this scope
int f[N], c[N], m[N], d[N], w[N];vector<int> a[N], b[N];
^
0_0_19231271_12036.cpp:24:13: error: 'N' was not declared in this scope
int f[N], c[N], m[N], d[N], w[N];vector<int> a[N], b[N];
^
0_0_19231271_12036.cpp:24:19: error: 'N' was not declared in this scope
int f[N], c[N], m[N], d[N], w[N];vector<int> a[N], b[N];
^
0_0_19231271_12036.cpp:24:25: error: 'N' was not declared in this scope
int f[N], c[N], m[N], d[N], w[N];vector<int> a[N], b[N];
^
0_0_19231271_12036.cpp:24:31: error: 'N' was not declared in this scope
int f[N], c[N], m[N], d[N], w[N];vector<int> a[N], b[N];
^
0_0_19231271_12036.cpp:24:48: error: 'N' was not declared in this scope
int f[N], c[N], m[N], d[N], w[N];vector<int> a[N], b[N];
^
0_0_19231271_12036.cpp:24:54: error: 'N' was not declared in this scope
int f[N], c[N], m[N], d[N], w[N];vector<int> a[N], b[N];
^
0_0_19231271_12036.cpp: In function 'int main()':
0_0_19231271_12036.cpp:29:26: error: 'a' was not declared in this scope
int i = 1; i <= 32; ++i) a[i].clear(), b[i].clear(); memset(w, 0, sizeof(w)); memset(d, 0, sizeof(d)); g[0].clear(), g[1].clear(); for (
^
0_0_19231271_12036.cpp:29:40: error: 'b' was not declared in this scope
int i = 1; i <= 32; ++i) a[i].clear(), b[i].clear(); memset(w, 0, sizeof(w)); memset(d, 0, sizeof(d)); g[0].clear(), g[1].clear(); for (
^
0_0_19231271_12036.cpp:29:62: error: 'w' was not declared in this scope
int i = 1; i <= 32; ++i) a[i].clear(), b[i].clear(); memset(w, 0, sizeof(w)); memset(d, 0, sizeof(d)); g[0].clear(), g[1].clear(); for (
^
0_0_19231271_12036.cpp:29:88: error: 'd' was not declared in this scope
int i = 1; i <= 32; ++i) a[i].clear(), b[i].clear(); memset(w, 0, sizeof(w)); memset(d, 0, sizeof(d)); g[0].clear(), g[1].clear(); for (
^
0_0_19231271_12036.cpp:30:45: error: 'f' was not declared in this scope
int i = 0; i < n; ++i) { scanf("%d%d%d", &f[i], &c[i], &m[i]); a[f[i]].pb(i), b[c[i]].pb(i); } bool ok = 1;
^
0_0_19231271_12036.cpp:30:52: error: 'c' was not declared in this scope
int i = 0; i < n; ++i) { scanf("%d%d%d", &f[i], &c[i], &m[i]); a[f[i]].pb(i), b[c[i]].pb(i); } bool ok = 1;
^
0_0_19231271_12036.cpp:30:59: error: 'm' was not declared in this scope
int i = 0; i < n; ++i) { scanf("%d%d%d", &f[i], &c[i], &m[i]); a[f[i]].pb(i), b[c[i]].pb(i); } bool ok = 1;
^
0_0_19231271_12036.cpp:30:68: error: 'a' was not declared in this scope
int i = 0; i < n; ++i) { scanf("%d%d%d", &f[i], &c[i], &m[i]); a[f[i]].pb(i), b[c[i]].pb(i); } bool ok = 1;
^
0_0_19231271_12036.cpp:30:83: error: 'b' was not declared in this scope
int i = 0; i < n; ++i) { scanf("%d%d%d", &f[i], &c[i], &m[i]); a[f[i]].pb(i), b[c[i]].pb(i); } bool ok = 1;
^
0_0_19231271_12036.cpp:32:34: error: 'b' was not declared in this scope
int i = 1; i <= 32; ++i) { if (b[i].size() == 1) { if (d[f[b[i][0]]]) ok = 0; mask ^= m[b[i][0]]; d[f[b[i][0]]] = 1; } else if (b[i].size() > 1) w[i] = cnt++; } if (!ok) { puts("0"); continue; }
^
0_0_19231271_12036.cpp:32:63: error: 'f' was not declared in this scope
int i = 1; i <= 32; ++i) { if (b[i].size() == 1) { if (d[f[b[i][0]]]) ok = 0; mask ^= m[b[i][0]]; d[f[b[i][0]]] = 1; } else if (b[i].size() > 1) w[i] = cnt++; } if (!ok) { puts("0"); continue; }
^
0_0_19231271_12036.cpp:32:95: error: 'm' was not declared in this scope
int i = 1; i <= 32; ++i) { if (b[i].size() == 1) { if (d[f[b[i][0]]]) ok = 0; mask ^= m[b[i][0]]; d[f[b[i][0]]] = 1; } else if (b[i].size() > 1) w[i] = cnt++; } if (!ok) { puts("0"); continue; }
^
0_0_19231271_12036.cpp:32:112: error: 'f' was not declared in this scope
int i = 1; i <= 32; ++i) { if (b[i].size() == 1) { if (d[f[b[i][0]]]) ok = 0; mask ^= m[b[i][0]]; d[f[b[i][0]]] = 1; } else if (b[i].size() > 1) w[i] = cnt++; } if (!ok) { puts("0"); continue; }
^
0_0_19231271_12036.cpp:34:35: error: 'a' was not declared in this scope
int i = 1; i <= 32; ++i) { if (!a[i].size() || d[i]) continue; g[now ^ 1] = g[now]; for (it = g[now].begin(); it != g[now].end(); it++) { pii st = it -> F; LL d = it -> S; for (
^
0_0_19231271_12036.cpp:35:16: error: 'a' was not declared in this scope
int j = 0; j < a[i].size(); ++j) {
^
0_0_19231271_12036.cpp:36:42: error: 'm' was not declared in this scope
int t = a[i][j]; pii tmp = mp(st.F ^ m[t], st.S | (1 << w[c[t]])); g[now ^ 1][tmp] += d; } } now ^= 1; } printf("%I64d\n", g[now][mp(mask, (1 << cnt) - 1)]); } return 0;}
^
0_0_19231271_12036.cpp:36:63: error: 'c' was not declared in this scope
int t = a[i][j]; pii tmp = mp(st.F ^ m[t], st.S | (1 << w[c[t]])); g[now ^ 1][tmp] += d; } } now ^= 1; } printf("%I64d\n", g[now][mp(mask, (1 << cnt) - 1)]); } return 0;}
^
|