F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

0_0_19225950_22726.cpp:15:5: error: stray '#' in program
  LL;#pragma comment(linker, "/STACK:102400000,102400000") 
     ^
0_0_19225950_22726.cpp:15:6: error: 'pragma' does not name a type
  LL;#pragma comment(linker, "/STACK:102400000,102400000") 
      ^
0_0_19225950_22726.cpp:21:18: error: 'N' was not declared in this scope
 int N = 33;int f[N], c[N], m[N], d[N], w[N];vector<int> a[N], b[N];typedef pair<int, int> pii;map<pii, LL> g[2];map<pii, LL>:: iterator it;
                  ^
0_0_19225950_22726.cpp:21:24: error: 'N' was not declared in this scope
 int N = 33;int f[N], c[N], m[N], d[N], w[N];vector<int> a[N], b[N];typedef pair<int, int> pii;map<pii, LL> g[2];map<pii, LL>:: iterator it;
                        ^
0_0_19225950_22726.cpp:21:30: error: 'N' was not declared in this scope
 int N = 33;int f[N], c[N], m[N], d[N], w[N];vector<int> a[N], b[N];typedef pair<int, int> pii;map<pii, LL> g[2];map<pii, LL>:: iterator it;
                              ^
0_0_19225950_22726.cpp:21:36: error: 'N' was not declared in this scope
 int N = 33;int f[N], c[N], m[N], d[N], w[N];vector<int> a[N], b[N];typedef pair<int, int> pii;map<pii, LL> g[2];map<pii, LL>:: iterator it;
                                    ^
0_0_19225950_22726.cpp:21:42: error: 'N' was not declared in this scope
 int N = 33;int f[N], c[N], m[N], d[N], w[N];vector<int> a[N], b[N];typedef pair<int, int> pii;map<pii, LL> g[2];map<pii, LL>:: iterator it;
                                          ^
0_0_19225950_22726.cpp:21:59: error: 'N' was not declared in this scope
 int N = 33;int f[N], c[N], m[N], d[N], w[N];vector<int> a[N], b[N];typedef pair<int, int> pii;map<pii, LL> g[2];map<pii, LL>:: iterator it;
                                                           ^
0_0_19225950_22726.cpp:21:65: error: 'N' was not declared in this scope
 int N = 33;int f[N], c[N], m[N], d[N], w[N];vector<int> a[N], b[N];typedef pair<int, int> pii;map<pii, LL> g[2];map<pii, LL>:: iterator it;
                                                                 ^
0_0_19225950_22726.cpp: In function 'int main()':
0_0_19225950_22726.cpp:22:104: error: 'a' was not declared in this scope
 int main() { int n, T; scanf("%d", &T); while (T--) {  scanf("%d", &n);  for (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 (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;  int mask = 0, cnt = 0;  for (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;  }  int now = 0;  g[now].insert(mp(mp(0, 0), 1));  for (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 (int j = 0; j < a[i].size(); ++j) {     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_19225950_22726.cpp:22:118: error: 'b' was not declared in this scope
 int main() { int n, T; scanf("%d", &T); while (T--) {  scanf("%d", &n);  for (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 (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;  int mask = 0, cnt = 0;  for (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;  }  int now = 0;  g[now].insert(mp(mp(0, 0), 1));  for (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 (int j = 0; j < a[i].size(); ++j) {     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_19225950_22726.cpp:22:140: error: 'w' was not declared in this scope
 int main() { int n, T; scanf("%d", &T); while (T--) {  scanf("%d", &n);  for (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 (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;  int mask = 0, cnt = 0;  for (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;  }  int now = 0;  g[now].insert(mp(mp(0, 0), 1));  for (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 (int j = 0; j < a[i].size(); ++j) {     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_19225950_22726.cpp:22:166: error: 'd' was not declared in this scope
 int main() { int n, T; scanf("%d", &T); while (T--) {  scanf("%d", &n);  for (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 (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;  int mask = 0, cnt = 0;  for (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;  }  int now = 0;  g[now].insert(mp(mp(0, 0), 1));  for (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 (int j = 0; j < a[i].size(); ++j) {     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_19225950_22726.cpp:22:263: error: 'f' was not declared in this scope
 int main() { int n, T; scanf("%d", &T); while (T--) {  scanf("%d", &n);  for (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 (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;  int mask = 0, cnt = 0;  for (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;  }  int now = 0;  g[now].insert(mp(mp(0, 0), 1));  for (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 (int j = 0; j < a[i].size(); ++j) {     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_19225950_22726.cpp:22:270: error: 'c' was not declared in this scope
 int main() { int n, T; scanf("%d", &T); while (T--) {  scanf("%d", &n);  for (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 (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;  int mask = 0, cnt = 0;  for (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;  }  int now = 0;  g[now].insert(mp(mp(0, 0), 1));  for (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 (int j = 0; j < a[i].size(); ++j) {     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_19225950_22726.cpp:22:277: error: 'm' was not declared in this scope
 int main() { int n, T; scanf("%d", &T); while (T--) {  scanf(


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-12-24 07:52:42, Gzip enabled