0_0_24271210_18393.cpp:6:10: error: array bound is not an integer constant before ']' token
}s[maxn*3];
^
0_0_24271210_18393.cpp:7:11: error: array bound is not an integer constant before ']' token
int a[maxn];
^
0_0_24271210_18393.cpp: In function 'int tree(int, int, int)':
0_0_24271210_18393.cpp:10:17: error: 's' was not declared in this scope
s[v].l=s[v].r=l;
^
0_0_24271210_18393.cpp:11:27: error: 'a' was not declared in this scope
return s[v].c=a[l];
^
0_0_24271210_18393.cpp:13:9: error: 's' was not declared in this scope
s[v].l=l;
^
0_0_24271210_18393.cpp: In function 'void updata(int, int, int)':
0_0_24271210_18393.cpp:19:9: error: 's' was not declared in this scope
s[v].c+=num;
^
0_0_24271210_18393.cpp: In function 'int query(int, int, int)':
0_0_24271210_18393.cpp:32:11: error: 's' was not declared in this scope
if(l==s[v].l&&r==s[v].r){
^
0_0_24271210_18393.cpp:35:14: error: 's' was not declared in this scope
int mid=(s[v].l+s[v].r)/2;
^
0_0_24271210_18393.cpp: In function 'int main()':
0_0_24271210_18393.cpp:54:37: error: 'a' was not declared in this scope
scanf("%d",&a[i]);
^
|