0_0_29445681_30600.cpp:14:1: error: expected unqualified-id before 'for'
for(int i=x;i<=(int)y; i++)
^
0_0_29445681_30600.cpp:14:13: error: 'i' does not name a type
for(int i=x;i<=(int)y; i++)
^
0_0_29445681_30600.cpp:14:24: error: 'i' does not name a type
for(int i=x;i<=(int)y; i++)
^
0_0_29445681_30600.cpp:18:3: error: 'maxn' was not declared in this scope
a[maxn<<2];
^
0_0_29445681_30600.cpp:20:8: error: 'maxn' was not declared in this scope
ll col[maxn<<2];
^
0_0_29445681_30600.cpp: In function 'void push_up(int)':
0_0_29445681_30600.cpp:29:1: error: 'a' was not declared in this scope
a[rt].cnt = a[ls].cnt+a[rs].cnt;
^
0_0_29445681_30600.cpp: In function 'void push_down(int)':
0_0_29445681_30600.cpp:32:4: error: 'col' was not declared in this scope
if(col[rt] > 1){
^
0_0_29445681_30600.cpp:35:1: error: 'a' was not declared in this scope
a[ls].sum = a[ls].sum*col[rt]%mod;
^
0_0_29445681_30600.cpp: In function 'void build(int, int, int)':
0_0_29445681_30600.cpp:40:1: error: 'a' was not declared in this scope
a[rt].sum = a[rt].cnt = 0;
^
0_0_29445681_30600.cpp:41:1: error: 'col' was not declared in this scope
col[rt] = 1;
^
0_0_29445681_30600.cpp: In function 'void mul(int, int, int, int, int)':
0_0_29445681_30600.cpp:48:1: error: 'a' was not declared in this scope
a[rt].sum = a[rt].sum*2%mod;
^
0_0_29445681_30600.cpp:49:1: error: 'col' was not declared in this scope
col[rt]=col[rt]*2%mod;
^
0_0_29445681_30600.cpp: In function 'int query_cnt(int, int, int, int, int)':
0_0_29445681_30600.cpp:58:8: error: 'a' was not declared in this scope
return a[rt].cnt;
^
0_0_29445681_30600.cpp: In function 'll query_sum(int, int, int, int, int)':
0_0_29445681_30600.cpp:66:8: error: 'a' was not declared in this scope
return a[rt].sum;
^
0_0_29445681_30600.cpp: In function 'void update(int, int, int, int, int)':
0_0_29445681_30600.cpp:75:1: error: 'a' was not declared in this scope
a[rt].cnt = 1;
^
0_0_29445681_30600.cpp: At global scope:
0_0_29445681_30600.cpp:85:4: error: 'maxn' was not declared in this scope
st[maxn];
^
0_0_29445681_30600.cpp: In function 'int main()':
0_0_29445681_30600.cpp:94:28: error: 'st' was not declared in this scope
rep1(i,1,n) scanf("%d %d",&st[i].a,&st[i].b),st[i].id = i;
^
0_0_29445681_30600.cpp:94:31: error: 'i' was not declared in this scope
rep1(i,1,n) scanf("%d %d",&st[i].a,&st[i].b),st[i].id = i;
^
|