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;
^
|