0_0_36833407_6460.c:4:20: error: expected identifier or '(' before '/' token
ll mod = 998244353;//1e9+7
^
0_0_36833407_6460.c:2:21: error: expected expression before '/' token
#define maxn 100007//1e5+7
^
0_0_36833407_6460.c:34:8: note: in expansion of macro 'maxn'
ll arr[maxn];
^
0_0_36833407_6460.c:2:21: error: expected expression before '/' token
#define maxn 100007//1e5+7
^
0_0_36833407_6460.c:35:7: note: in expansion of macro 'maxn'
ll m2[maxn];
^
0_0_36833407_6460.c: In function 'hbit':
0_0_36833407_6460.c:44:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 30; i >= 0; i--) {
^
0_0_36833407_6460.c:44:2: note: use option -std=c99, -std=gnu99, -std=c11 or -std=gnu11 to compile your code
0_0_36833407_6460.c: In function 'init':
0_0_36833407_6460.c:53:2: error: 'm2' undeclared (first use in this function)
m2[0] = 1;
^
0_0_36833407_6460.c:53:2: note: each undeclared identifier is reported only once for each function it appears in
0_0_36833407_6460.c:54:2: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 1; i < maxn; i++) {
^
0_0_36833407_6460.c:2:21: error: expected expression before '/' token
#define maxn 100007//1e5+7
^
0_0_36833407_6460.c:54:22: note: in expansion of macro 'maxn'
for (int i = 1; i < maxn; i++) {
^
0_0_36833407_6460.c: At top level:
0_0_36833407_6460.c:2:21: error: expected expression before '/' token
#define maxn 100007//1e5+7
^
0_0_36833407_6460.c:61:7: note: in expansion of macro 'maxn'
}tree[maxn << 2];
^
0_0_36833407_6460.c: In function 'pushup':
0_0_36833407_6460.c:65:2: error: 'tree' undeclared (first use in this function)
tree[o].lb = (tree[lson].lb + tree[rson].lb) % mod;
^
0_0_36833407_6460.c: In function 'pushdown':
0_0_36833407_6460.c:72:6: error: 'tree' undeclared (first use in this function)
if (tree[o].lazy) {
^
0_0_36833407_6460.c:75:36: error: 'm2' undeclared (first use in this function)
tree[lson].hb = (tree[lson].hb * m2[tree[o].lazy]) % mod;
^
0_0_36833407_6460.c: In function 'build':
0_0_36833407_6460.c:84:3: error: 'tree' undeclared (first use in this function)
tree[o].hb = hbit(arr[l]);
^
0_0_36833407_6460.c:84:21: error: 'arr' undeclared (first use in this function)
tree[o].hb = hbit(arr[l]);
^
0_0_36833407_6460.c:87:3: error: expected expression before '/' token
//cout<<"hb "<<tree[o].hb<<" lb "<<tree[o].lb<<" cnt "<<tree[o].cnt<<endl;
^
0_0_36833407_6460.c: In function 'modify':
0_0_36833407_6460.c:98:7: error: 'tree' undeclared (first use in this function)
if (!tree[o].cnt) {
^
0_0_36833407_6460.c: In function 'update':
0_0_36833407_6460.c:124:7: error: 'tree' undeclared (first use in this function)
if (!tree[o].cnt) {
^
0_0_36833407_6460.c: In function 'query':
0_0_36833407_6460.c:145:7: error: 'tree' undeclared (first use in this function)
if (!tree[o].cnt) {
^
0_0_36833407_6460.c: In function 'main':
0_0_36833407_6460.c:170:3: error: 'for' loop initial declarations are only allowed in C99 or C11 mode
for (int i = 1; i <= n; i++) {
^
0_0_36833407_6460.c:171:4: error: 'arr' undeclared (first use in this function)
arr[i] = read();
^
|