0_0_30196998_5476.cpp:11:14: error: template declaration of 'int root [100005]'
int root[maxn],wh[maxn];
^
0_0_30196998_5476.cpp:22:2: error: 'ct' does not name a type
}ct;
^
0_0_30196998_5476.cpp:87:1: error: expected '}' at end of input
}
^
0_0_30196998_5476.cpp: In member function 'int Chairman_Tree::main()':
0_0_30196998_5476.cpp:62:2: error: 't' was not declared in this scope
t=0,now=0;
^
0_0_30196998_5476.cpp:62:6: error: 'now' was not declared in this scope
t=0,now=0;
^
0_0_30196998_5476.cpp:65:5: error: 'ct' was not declared in this scope
ct.build(1,n,root[0]);
^
0_0_30196998_5476.cpp:65:18: error: 'root' was not declared in this scope
ct.build(1,n,root[0]);
^
0_0_30196998_5476.cpp:70:13: error: 'wh' was not declared in this scope
wh[++now]=++t;
^
0_0_30196998_5476.cpp:76:27: error: 'l' was not declared in this scope
scanf("%d%d",&l,&r);
^
0_0_30196998_5476.cpp:76:30: error: 'r' was not declared in this scope
scanf("%d%d",&l,&r);
^
0_0_30196998_5476.cpp:82:49: error: 'wh' was not declared in this scope
printf("%lld\n",ct.ask(l,r,1,n,root[wh[k]]));
^
0_0_30196998_5476.cpp:84:23: error: 'read' was not declared in this scope
else now=read(),root[++t]=root[wh[now]];
^
0_0_30196998_5476.cpp:84:40: error: 'wh' was not declared in this scope
else now=read(),root[++t]=root[wh[now]];
^
0_0_30196998_5476.cpp: At global scope:
0_0_30196998_5476.cpp:87:1: error: expected unqualified-id at end of input
}
^
|