0_0_28176033_9779.cpp:55:2: error: stray '#' in program
}#define lson l , m , rt << 1
^
0_0_28176033_9779.cpp:55:3: error: 'define' does not name a type
}#define lson l , m , rt << 1
^
0_0_28176033_9779.cpp:61:1: error: 'Tree' does not name a type
Tree tree[4*N];
^
0_0_28176033_9779.cpp: In function 'void PushUp(int)':
0_0_28176033_9779.cpp:64:9: error: expected unqualified-id before '[' token
tree[rt].sum =tree[rt<<1].sum + tree[rt<<1|1].sum;
^
0_0_28176033_9779.cpp: In function 'void PushDown(int, int)':
0_0_28176033_9779.cpp:68:13: error: expected primary-expression before '[' token
if (tree[rt].add)
^
0_0_28176033_9779.cpp:70:13: error: expected unqualified-id before '[' token
tree[rt<<1].add += tree[rt].add;
^
0_0_28176033_9779.cpp:71:13: error: expected unqualified-id before '[' token
tree[rt<<1|1].add += tree[rt].add;
^
0_0_28176033_9779.cpp:72:13: error: expected unqualified-id before '[' token
tree[rt<<1].sum += tree[rt].add * (m - (m >> 1));
^
0_0_28176033_9779.cpp:73:13: error: expected unqualified-id before '[' token
tree[rt<<1|1].sum += tree[rt].add * (m >> 1);
^
0_0_28176033_9779.cpp:74:13: error: expected unqualified-id before '[' token
tree[rt].add = 0;
^
0_0_28176033_9779.cpp: In function 'void build(int, int, int)':
0_0_28176033_9779.cpp:79:9: error: expected unqualified-id before '[' token
tree[rt].add = 0;
^
0_0_28176033_9779.cpp:80:9: error: expected unqualified-id before '[' token
tree[rt].l=l;
^
0_0_28176033_9779.cpp:81:9: error: expected unqualified-id before '[' token
tree[rt].r=r;
^
0_0_28176033_9779.cpp:84:13: error: expected unqualified-id before '[' token
tree[rt].sum = coss[rankk[l]];
^
0_0_28176033_9779.cpp:88:11: error: 'lson' was not declared in this scope
build(lson);
^
0_0_28176033_9779.cpp: In function 'void update(int, int, int, int, int, int)':
0_0_28176033_9779.cpp:96:13: error: expected unqualified-id before '[' token
tree[rt].add += c;
^
0_0_28176033_9779.cpp:97:13: error: expected unqualified-id before '[' token
tree[rt].sum += c * (r - l + 1);
^
0_0_28176033_9779.cpp:103:28: error: 'lson' was not declared in this scope
update(L , R , c , lson);
^
0_0_28176033_9779.cpp: In function 'int query(int, int, int, int, int)':
0_0_28176033_9779.cpp:130:20: error: expected primary-expression before '[' token
return tree[rt].sum;
^
0_0_28176033_9779.cpp:136:29: error: 'lson' was not declared in this scope
ret = query(L , R , lson);
^
|