0_0_25477520_29315.cpp:7:7: error: 'MAX' was not declared in this scope
int s[MAX];
^
0_0_25477520_29315.cpp:10:7: error: 'MAX' was not declared in this scope
}tree[MAX*4];
^
0_0_25477520_29315.cpp: In function 'void push_up(int)':
0_0_25477520_29315.cpp:12:5: error: 'tree' was not declared in this scope
tree[node].sum=tree[node<<1].sum+tree[node<<1|1].sum;
^
0_0_25477520_29315.cpp: In function 'void push_down(int, int, int)':
0_0_25477520_29315.cpp:15:8: error: 'tree' was not declared in this scope
if(tree[node].add){
^
0_0_25477520_29315.cpp: In function 'void init(int, int, int)':
0_0_25477520_29315.cpp:24:5: error: 'tree' was not declared in this scope
tree[node].add=0;
^
0_0_25477520_29315.cpp:26:24: error: 's' was not declared in this scope
tree[node].sum=s[l];
^
0_0_25477520_29315.cpp: In function 'int query(int, int, int, int, int)':
0_0_25477520_29315.cpp:35:28: error: 'tree' was not declared in this scope
if(l==x&&r==y) return tree[node].sum;
^
0_0_25477520_29315.cpp: In function 'void updata_tree(int, int, int, int, int, int)':
0_0_25477520_29315.cpp:45:9: error: 'tree' was not declared in this scope
tree[node].add+=num;
^
0_0_25477520_29315.cpp:54:94: error: invalid operands of types 'void' and 'void' to binary 'operator+'
return updata_tree(node<<1,l,mid,x,mid,num)+updata_tree(node<<1|1,mid+1,r,mid+1,y,num);
^
0_0_25477520_29315.cpp:54:94: error: return-statement with a value, in function returning 'void' [-fpermissive]
0_0_25477520_29315.cpp: At global scope:
0_0_25477520_29315.cpp:57:27: error: expected identifier before ',' token
void updata_node(int node,,int l,int r,int locat,int num){
^
0_0_25477520_29315.cpp: In function 'void updata_node(int, int, int, int, int, int)':
0_0_25477520_29315.cpp:59:9: error: 'tree' was not declared in this scope
tree[node].sum=num;
^
0_0_25477520_29315.cpp:64:44: error: too few arguments to function 'void updata_node(int, int, int, int, int, int)'
updata_node(node<<1,l,mid,locat,num);
^
0_0_25477520_29315.cpp:57:6: note: declared here
void updata_node(int node,,int l,int r,int locat,int num){
^
0_0_25477520_29315.cpp:66:48: error: too few arguments to function 'void updata_node(int, int, int, int, int, int)'
updata_node(node<<1|1,mid+1,r,locat,num);
^
0_0_25477520_29315.cpp:57:6: note: declared here
void updata_node(int node,,int l,int r,int locat,int num){
^
|