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_26029759_3150.cpp:9:10: error: 'maxd' was not declared in this scope
 int lson[maxd];
          ^
0_0_26029759_3150.cpp:10:10: error: 'maxd' was not declared in this scope
 int rson[maxd];
          ^
0_0_26029759_3150.cpp: In function 'int ins(int, int, int, int)':
0_0_26029759_3150.cpp:2:12: error: 'lson' was not declared in this scope
 #define ls lson[x]
            ^
0_0_26029759_3150.cpp:16:5: note: in expansion of macro 'ls'
     ls = lson[root];
     ^
0_0_26029759_3150.cpp:3:12: error: 'rson' was not declared in this scope
 #define rs rson[x]
            ^
0_0_26029759_3150.cpp:17:5: note: in expansion of macro 'rs'
     rs = rson[root];
     ^
0_0_26029759_3150.cpp: In function 'int mer(int, int, int, int, int)':
0_0_26029759_3150.cpp:2:12: error: 'lson' was not declared in this scope
 #define ls lson[x]
            ^
0_0_26029759_3150.cpp:35:5: note: in expansion of macro 'ls'
     ls = mer(l,mid,ls,lson[rt2],now);
     ^
0_0_26029759_3150.cpp:3:12: error: 'rson' was not declared in this scope
 #define rs rson[x]
            ^
0_0_26029759_3150.cpp:36:5: note: in expansion of macro 'rs'
     rs = mer(mid+1,r,rs,rson[rt2],now);
     ^
0_0_26029759_3150.cpp: In function 'int main()':
0_0_26029759_3150.cpp:95:9: error: 'lson' was not declared in this scope
         lson[rt[i]] = rson[rt[i]] = 0;
         ^
0_0_26029759_3150.cpp:95:23: error: 'rson' was not declared in this scope
         lson[rt[i]] = rson[rt[i]] = 0;
                       ^


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-11-23 06:38:18, Gzip enabled