0_0_33239338_25976.cpp:7:1: error: expected initializer before 'long'
long long op[(1<<maxm)+5];
^
0_0_33239338_25976.cpp: In function 'void init(int)':
0_0_33239338_25976.cpp:13:13: error: 'tree' was not declared in this scope
if(rt>half)tree[rt]=rt-half;
^
0_0_33239338_25976.cpp:15:6: error: 'op' was not declared in this scope
if(op[rt]==1){
^
0_0_33239338_25976.cpp:16:4: error: 'tree' was not declared in this scope
tree[rt]=(tree[rt<<1]*tree[rt<<1|1])%MOD;
^
0_0_33239338_25976.cpp:18:4: error: 'tree' was not declared in this scope
tree[rt]=(tree[rt<<1]+tree[rt<<1|1])%MOD;
^
0_0_33239338_25976.cpp: In function 'void change(int, int)':
0_0_33239338_25976.cpp:24:2: error: 'tree' was not declared in this scope
tree[rt]=x;
^
0_0_33239338_25976.cpp:27:6: error: 'op' was not declared in this scope
if(op[rt]==1){
^
0_0_33239338_25976.cpp: In function 'int query(int)':
0_0_33239338_25976.cpp:39:5: error: 'op' was not declared in this scope
if(op[f]){
^
0_0_33239338_25976.cpp:40:19: error: 'tree' was not declared in this scope
return rt%2==0?(tree[rt+1]*query(f))%MOD:(tree[rt-1]*query(f))%MOD;
^
0_0_33239338_25976.cpp: In function 'int main()':
0_0_33239338_25976.cpp:50:10: error: 'op' was not declared in this scope
memset(op,-1,sizeof(op));
^
0_0_33239338_25976.cpp:51:10: error: 'tree' was not declared in this scope
memset(tree,0,sizeof(tree));
^
|