0_0_30003712_18213.cpp:24:27: error: redefinition of 'int l'
int query(int l,int r,int l,int r,int rt){
^
0_0_30003712_18213.cpp:24:15: note: 'int l' previously declared here
int query(int l,int r,int l,int r,int rt){
^
0_0_30003712_18213.cpp:24:33: error: redefinition of 'int r'
int query(int l,int r,int l,int r,int rt){
^
0_0_30003712_18213.cpp:24:21: note: 'int r' previously declared here
int query(int l,int r,int l,int r,int rt){
^
0_0_30003712_18213.cpp: In function 'int query(int, int, int)':
0_0_30003712_18213.cpp:25:5: error: 'L' was not declared in this scope
if(L <= 1 && r<= R){
^
0_0_30003712_18213.cpp:25:19: error: 'R' was not declared in this scope
if(L <= 1 && r<= R){
^
0_0_30003712_18213.cpp:30:5: error: 'L' was not declared in this scope
if(L<= m) ret+=query(L,R,lson);
^
0_0_30003712_18213.cpp:30:25: error: 'R' was not declared in this scope
if(L<= m) ret+=query(L,R,lson);
^
0_0_30003712_18213.cpp:31:5: error: 'R' was not declared in this scope
if(R>=m) ret+=query(L,R,rson);
^
0_0_30003712_18213.cpp:31:22: error: 'L' was not declared in this scope
if(R>=m) ret+=query(L,R,rson);
^
0_0_30003712_18213.cpp: In function 'int main()':
0_0_30003712_18213.cpp:41:14: error: 'build' was not declared in this scope
build(1,n,1);
^
0_0_30003712_18213.cpp:48:4: error: 'else' without a previous 'if'
else if (op[0]=='S') update(a,-b,1,n,1);
^
|