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_31695823_2244.cpp:9:11: error: redefinition of 'const int Max'
 const int Max = 5e5 + 6.66;
           ^
0_0_31695823_2244.cpp:8:11: note: 'const int Max' previously defined here
 const int Max = 1e5 + 6.66;
           ^
0_0_31695823_2244.cpp:47:21: error: 'MaxN' was not declared in this scope
 vector<int> tree[3][MaxN];
                     ^
0_0_31695823_2244.cpp:48:10: error: 'MaxN' was not declared in this scope
 int root[MaxN];
          ^
0_0_31695823_2244.cpp:49:7: error: 'MaxN' was not declared in this scope
 int l[MaxN], r[MaxN], par[MaxN];
       ^
0_0_31695823_2244.cpp:49:16: error: 'MaxN' was not declared in this scope
 int l[MaxN], r[MaxN], par[MaxN];
                ^
0_0_31695823_2244.cpp:49:27: error: 'MaxN' was not declared in this scope
 int l[MaxN], r[MaxN], par[MaxN];
                           ^
0_0_31695823_2244.cpp:50:10: error: 'MaxN' was not declared in this scope
 int bpar[MaxN];
          ^
0_0_31695823_2244.cpp:51:9: error: 'MaxN' was not declared in this scope
 int arr[MaxN];
         ^
0_0_31695823_2244.cpp: In function 'void dfs(int, int, int, int)':
0_0_31695823_2244.cpp:55:12: error: 'par' was not declared in this scope
   if(type) par[v] = p;
            ^
0_0_31695823_2244.cpp:56:3: error: 'root' was not declared in this scope
   root[v] = rot;
   ^
0_0_31695823_2244.cpp:57:3: error: 'l' was not declared in this scope
   l[v] = now++;
   ^
0_0_31695823_2244.cpp:58:16: error: 'tree' was not declared in this scope
   for(auto x : tree[1][v])
                ^
0_0_31695823_2244.cpp:60:3: error: 'r' was not declared in this scope
   r[v] = now;
   ^
0_0_31695823_2244.cpp:61:16: error: 'tree' was not declared in this scope
   for(auto x : tree[2][v])
                ^
0_0_31695823_2244.cpp:63:3: error: 'bpar' was not declared in this scope
   bpar[v] = now;
   ^
0_0_31695823_2244.cpp: In function 'int main()':
0_0_31695823_2244.cpp:73:40: error: 'arr' was not declared in this scope
     for(int i = 1; i <= n ;i++) cin >> arr[i];
                                        ^
0_0_31695823_2244.cpp:74:33: error: 'arr' was not declared in this scope
     for(int i = 1; i <= n; i++) arr[i] = __builtin_ctz(arr[i]);
                                 ^
0_0_31695823_2244.cpp:77:7: error: 'tree' was not declared in this scope
       tree[z][x].push_back(y);
       ^
0_0_31695823_2244.cpp:81:11: error: 'root' was not declared in this scope
       if(!root[i]) dfs(i, -1, i);
           ^
0_0_31695823_2244.cpp:86:24: error: 'l' was not declared in this scope
       seg.add(1, 0, N, l[i] + 1, r[i], arr[i]);
                        ^
0_0_31695823_2244.cpp:86:34: error: 'r' was not declared in this scope
       seg.add(1, 0, N, l[i] + 1, r[i], arr[i]);
                                  ^
0_0_31695823_2244.cpp:86:40: error: 'arr' was not declared in this scope
       seg.add(1, 0, N, l[i] + 1, r[i], arr[i]);
                                        ^
0_0_31695823_2244.cpp:87:10: error: 'par' was not declared in this scope
       if(par[i]) seg.add(1, 0, N, l[i], bpar[i], -arr[i]);
          ^
0_0_31695823_2244.cpp:87:41: error: 'bpar' was not declared in this scope
       if(par[i]) seg.add(1, 0, N, l[i], bpar[i], -arr[i]);
                                         ^
0_0_31695823_2244.cpp:94:26: error: 'l' was not declared in this scope
         seg.add(1, 0, N, l[b] + 1, r[b], -arr[b] + c);
                          ^
0_0_31695823_2244.cpp:94:36: error: 'r' was not declared in this scope
         seg.add(1, 0, N, l[b] + 1, r[b], -arr[b] + c);
                                    ^
0_0_31695823_2244.cpp:94:43: error: 'arr' was not declared in this scope
         seg.add(1, 0, N, l[b] + 1, r[b], -arr[b] + c);
                                           ^
0_0_31695823_2244.cpp:95:12: error: 'par' was not declared in this scope
         if(par[b]) seg.add(1, 0, N, l[b], bpar[b], arr[b] - c);
            ^
0_0_31695823_2244.cpp:95:43: error: 'bpar' was not declared in this scope
         if(par[b]) seg.add(1, 0, N, l[b], bpar[b], arr[b] - c);
                                           ^
0_0_31695823_2244.cpp:98:34: error: 'l' was not declared in this scope
         int t = seg.get(1, 0, N, l[b], l[b] + 1);
                                  ^
0_0_31695823_2244.cpp:99:36: error: 'root' was not declared in this scope
         int y = seg.get(1, 0, N, l[root[b]], bpar[root[b]]);
                                    ^
0_0_31695823_2244.cpp:99:46: error: 'bpar' was not declared in this scope
         int y = seg.get(1, 0, N, l[root[b]], bpar[root[b]]);
                                              ^
0_0_31695823_2244.cpp:105:26: error: 'MaxN' was not declared in this scope
       for(int j = 0; j < MaxN; j++) tree[i][j].clear();
                          ^
0_0_31695823_2244.cpp:105:37: error: 'tree' was not declared in this scope
       for(int j = 0; j < MaxN; j++) tree[i][j].clear();
                                     ^
0_0_31695823_2244.cpp:106:12: error: 'par' was not declared in this scope
     memset(par, 0, sizeof par);
            ^
0_0_31695823_2244.cpp:107:12: error: 'root' was not declared in this scope
     memset(root, 0, sizeof root);
            ^


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-06-26 18:40:09, Gzip enabled