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_18093189_30412.cpp: In function 'void update(int, int)':
0_0_18093189_30412.cpp:4:7: error: 'cnt' was not declared in this scope
   if (cnt[ch[o][1]] == 1 && cnt[ch[o][1]] == 1) {
       ^
0_0_18093189_30412.cpp:4:11: error: 'ch' was not declared in this scope
   if (cnt[ch[o][1]] == 1 && cnt[ch[o][1]] == 1) {
           ^
0_0_18093189_30412.cpp:5:5: error: 'max_min' was not declared in this scope
     max_min[o] = val[ch[o][0]] ^ val[ch[o][1]];
     ^
0_0_18093189_30412.cpp:5:18: error: 'val' was not declared in this scope
     max_min[o] = val[ch[o][0]] ^ val[ch[o][1]];
                  ^
0_0_18093189_30412.cpp:7:5: error: 'max_min' was not declared in this scope
     max_min[o] = get_min(ch[o][1], val[ch[o][0]], dig - 1) + (1<<(dig-1));
     ^
0_0_18093189_30412.cpp:7:36: error: 'val' was not declared in this scope
     max_min[o] = get_min(ch[o][1], val[ch[o][0]], dig - 1) + (1<<(dig-1));
                                    ^
0_0_18093189_30412.cpp:7:58: error: 'get_min' was not declared in this scope
     max_min[o] = get_min(ch[o][1], val[ch[o][0]], dig - 1) + (1<<(dig-1));
                                                          ^
0_0_18093189_30412.cpp:9:5: error: 'max_min' was not declared in this scope
     max_min[o] = get_min(ch[o][0], val[ch[o][1]], dig - 1) + (1<<(dig-1));
     ^
0_0_18093189_30412.cpp:9:36: error: 'val' was not declared in this scope
     max_min[o] = get_min(ch[o][0], val[ch[o][1]], dig - 1) + (1<<(dig-1));
                                    ^
0_0_18093189_30412.cpp:9:58: error: 'get_min' was not declared in this scope
     max_min[o] = get_min(ch[o][0], val[ch[o][1]], dig - 1) + (1<<(dig-1));
                                                          ^
0_0_18093189_30412.cpp:11:5: error: 'max_min' was not declared in this scope
     max_min[o] = max(max_min[ch[o][0]], max_min[ch[o][1]]);
     ^
0_0_18093189_30412.cpp:11:58: error: 'max' was not declared in this scope
     max_min[o] = max(max_min[ch[o][0]], max_min[ch[o][1]]);
                                                          ^
0_0_18093189_30412.cpp:13:5: error: 'max_min' was not declared in this scope
     max_min[o] = max_min[ch[o][1]];
     ^
0_0_18093189_30412.cpp:15:5: error: 'max_min' was not declared in this scope
     max_min[o] = max_min[ch[o][0]];
     ^
0_0_18093189_30412.cpp:17:5: error: 'max_min' was not declared in this scope
     max_min[o] = 0;
     ^
0_0_18093189_30412.cpp:19:3: error: 'cnt' was not declared in this scope
   cnt[o] = cnt[ch[o][0]] + cnt[ch[o][1]];
   ^
0_0_18093189_30412.cpp:19:16: error: 'ch' was not declared in this scope
   cnt[o] = cnt[ch[o][0]] + cnt[ch[o][1]];
                ^
0_0_18093189_30412.cpp: In function 'int merge(int, int, int)':
0_0_18093189_30412.cpp:28:5: error: 'cnt' was not declared in this scope
     cnt[p] += cnt[q];
     ^
0_0_18093189_30412.cpp:29:5: error: 'max_min' was not declared in this scope
     max_min[p] = 0;
     ^
0_0_18093189_30412.cpp:32:3: error: 'ch' was not declared in this scope
   ch[p][0] = merge(ch[p][0], ch[q][0], dig - 1);
   ^
0_0_18093189_30412.cpp:35:11: error: 'stderr' was not declared in this scope
   fprintf(stderr, "merge:%d %d %d\n", p, q, max_min[p]);
           ^
0_0_18093189_30412.cpp:35:45: error: 'max_min' was not declared in this scope
   fprintf(stderr, "merge:%d %d %d\n", p, q, max_min[p]);
                                             ^
0_0_18093189_30412.cpp:35:55: error: 'fprintf' was not declared in this scope
   fprintf(stderr, "merge:%d %d %d\n", p, q, max_min[p]);
                                                       ^
0_0_18093189_30412.cpp: In function 'void insert(int&, int, int)':
0_0_18093189_30412.cpp:42:9: error: 'sz' was not declared in this scope
   o = ++sz;
         ^
0_0_18093189_30412.cpp:43:3: error: 'ch' was not declared in this scope
   ch[o][0] = ch[o][1] = max_min[o] = 0;
   ^
0_0_18093189_30412.cpp:43:25: error: 'max_min' was not declared in this scope
   ch[o][0] = ch[o][1] = max_min[o] = 0;
                         ^
0_0_18093189_30412.cpp:44:3: error: 'cnt' was not declared in this scope
   cnt[o] = 1;
   ^
0_0_18093189_30412.cpp:45:3: error: 'val' was not declared in this scope
   val[o] = v;
   ^
0_0_18093189_30412.cpp: At global scope:
0_0_18093189_30412.cpp:54:8: error: 'N' was not declared in this scope
 int le[N], pe[N<<1], ev[N<<1], ecnt;
        ^
0_0_18093189_30412.cpp:54:15: error: 'N' was not declared in this scope
 int le[N], pe[N<<1], ev[N<<1], ecnt;
               ^
0_0_18093189_30412.cpp:54:25: error: 'N' was not declared in this scope
 int le[N], pe[N<<1], ev[N<<1], ecnt;
                         ^
0_0_18093189_30412.cpp: In function 'void addEdge(int, int)':
0_0_18093189_30412.cpp:57:3: error: 'pe' was not declared in this scope
   pe[ecnt] = le[u];
   ^
0_0_18093189_30412.cpp:57:14: error: 'le' was not declared in this scope
   pe[ecnt] = le[u];
              ^
0_0_18093189_30412.cpp:58:3: error: 'ev' was not declared in this scope
   ev[ecnt] = v;
   ^
0_0_18093189_30412.cpp: In function 'void debug_print(int, int)':
0_0_18093189_30412.cpp:68:15: error: 'ch' was not declared in this scope
   debug_print(ch[o][0], dig - 1);
               ^
0_0_18093189_30412.cpp: At global scope:
0_0_18093189_30412.cpp:72:10: error: 'N' was not declared in this scope
 int root[N], w[N], ans[N];
          ^
0_0_18093189_30412.cpp:72:16: error: 'N' was not declared in this scope
 int root[N], w[N], ans[N];
                ^
0_0_18093189_30412.cpp:72:24: error: 'N' was not declared in this scope
 int root[N], w[N], ans[N];
                        ^
0_0_18093189_30412.cpp: In function 'void dfs(int, int)':
0_0_18093189_30412.cpp:74:10: error: 'root' was not declared in this scope
   insert(root[u], w[u], DIG);
          ^
0_0_18093189_30412.cpp:74:19: error: 'w' was not declared in this scope
   insert(root[u], w[u], DIG);
                   ^
0_0_18093189_30412.cpp:74:25: error: 'DIG' was not declared in this scope
   insert(root[u], w[u], DIG);
                         ^
0_0_18093189_30412.cpp:75:8: error: 'ERR' was not declared in this scope
   ERR(u);
        ^
0_0_18093189_30412.cpp:78:16: error: 'le' was not declared in this scope
   for (int i = le[u]; i; i = pe[i]) {
                ^
0_0_18093189_30412.cpp:78:30: error: 'pe' was not declared in this scope
   for (int i = le[u]; i; i = pe[i]) {
                              ^
0_0_18093189_30412.cpp:79:14: error: 'ev' was not declared in this scope
     int &v = ev[i];
              ^
0_0_18093189_30412.cpp:88:7: error: 'cnt' was not declared in this scope
   if (cnt[root[u]] > 1)
       ^
0_0_18093189_30412.cpp:89:5: error: 'ans' was not declared in this scope
     ans[u] = max_min[root[u]];
     ^
0_0_18093189_30412.cpp:89:14: error: 'max_min' was not declared in this scope
     ans[u] = max_min[root[u]];
              ^
0_0_18093189_30412.cpp:91:5: error: 'ans' was not declared in this scope
     ans[u] = -1;
     ^
0_0_18093189_30412.cpp: In function 'int main()':
0_0_18093189_30412.cpp:100:17: error: 'scanf' was not declared in this scope
   scanf("%d", &T);
                 ^
0_0_18093189_30412.cpp:101:8: error: 'kase' was not declared in this scope
   FOR (kase, T) {
        ^
0_0_18093189_30412.cpp:101:15: error: 'FOR' was not declared in this scope
   FOR (kase, T) {
               ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.001000(s) query 1, Server time : 2025-01-10 21:12:02, Gzip enabled