0_0_36833413_20465.c:4:27: error: expected expression before '/' token
long long mod = 998244353//1e9+7
^
0_0_36833413_20465.c:2:21: error: expected expression before '/' token
#define maxn 100007//1e5+7
^
0_0_36833413_20465.c:41:15: note: in expansion of macro 'maxn'
long long arr[maxn];
^
0_0_36833413_20465.c:2:21: error: expected expression before '/' token
#define maxn 100007//1e5+7
^
0_0_36833413_20465.c:42:14: note: in expansion of macro 'maxn'
long long m2[maxn];
^
0_0_36833413_20465.c: In function 'init':
0_0_36833413_20465.c:62:2: error: 'm2' undeclared (first use in this function)
m2[0] = 1;
^
0_0_36833413_20465.c:62:2: note: each undeclared identifier is reported only once for each function it appears in
0_0_36833413_20465.c:2:21: error: expected expression before '/' token
#define maxn 100007//1e5+7
^
0_0_36833413_20465.c:63:18: note: in expansion of macro 'maxn'
for (i = 1; i < maxn; i++) {
^
0_0_36833413_20465.c: At top level:
0_0_36833413_20465.c:2:21: error: expected expression before '/' token
#define maxn 100007//1e5+7
^
0_0_36833413_20465.c:70:7: note: in expansion of macro 'maxn'
}tree[maxn << 2];
^
0_0_36833413_20465.c: In function 'pushup':
0_0_36833413_20465.c:74:2: error: 'tree' undeclared (first use in this function)
tree[o].lb = (tree[lson].lb + tree[rson].lb) % mod;
^
0_0_36833413_20465.c: In function 'pushdown':
0_0_36833413_20465.c:81:6: error: 'tree' undeclared (first use in this function)
if (tree[o].lazy) {
^
0_0_36833413_20465.c:84:36: error: 'm2' undeclared (first use in this function)
tree[lson].hb = (tree[lson].hb * m2[tree[o].lazy]) % mod;
^
0_0_36833413_20465.c: In function 'build':
0_0_36833413_20465.c:93:3: error: 'tree' undeclared (first use in this function)
tree[o].hb = hbit(arr[l]);
^
0_0_36833413_20465.c:93:21: error: 'arr' undeclared (first use in this function)
tree[o].hb = hbit(arr[l]);
^
0_0_36833413_20465.c:96:3: error: expected expression before '/' token
//cout<<"hb "<<tree[o].hb<<" lb "<<tree[o].lb<<" cnt "<<tree[o].cnt<<endl;
^
0_0_36833413_20465.c: In function 'modify':
0_0_36833413_20465.c:107:7: error: 'tree' undeclared (first use in this function)
if (!tree[o].cnt) {
^
0_0_36833413_20465.c: In function 'update':
0_0_36833413_20465.c:133:7: error: 'tree' undeclared (first use in this function)
if (!tree[o].cnt) {
^
0_0_36833413_20465.c: In function 'query':
0_0_36833413_20465.c:154:7: error: 'tree' undeclared (first use in this function)
if (!tree[o].cnt) {
^
0_0_36833413_20465.c: In function 'main':
0_0_36833413_20465.c:181:4: error: 'arr' undeclared (first use in this function)
arr[i] = read();
^
|