0_0_29657881_8643.cpp:7:13: error: expected initializer before numeric constant
const int N 4e5+10;
^
0_0_29657881_8643.cpp:8:8: error: 'N' was not declared in this scope
ll sum[N];
^
0_0_29657881_8643.cpp:9:9: error: 'N' was not declared in this scope
int add[N];
^
0_0_29657881_8643.cpp: In function 'void pushdown(int, int)':
0_0_29657881_8643.cpp:12:8: error: 'add' was not declared in this scope
if(add[rt])
^
0_0_29657881_8643.cpp:16:9: error: 'sum' was not declared in this scope
sum[rt*2] += add[rt]*(m-m/2);
^
0_0_29657881_8643.cpp: In function 'void Build(int, int, int)':
0_0_29657881_8643.cpp:26:23: error: 'sum' was not declared in this scope
scanf("%lld",&sum[rt]);
^
0_0_29657881_8643.cpp:33:5: error: 'sum' was not declared in this scope
sum[rt] = sum[rt*2]+sum[rt*2+1];
^
0_0_29657881_8643.cpp: In function 'void change(int, int, int, int, int, int)':
0_0_29657881_8643.cpp:39:9: error: 'add' was not declared in this scope
add[rt] += c;
^
0_0_29657881_8643.cpp:40:9: error: 'sum' was not declared in this scope
sum[rt] +=(ll)c*(y-x+1);
^
0_0_29657881_8643.cpp:55:5: error: 'sum' was not declared in this scope
sum[rt] = sum[rt*2]+sum[rt*2+1];
^
0_0_29657881_8643.cpp: In function 'll query(int, int, int, int, int)':
0_0_29657881_8643.cpp:61:16: error: 'sum' was not declared in this scope
return sum[rt];
^
|