0_0_16249048_27165.cpp:5:1: error: 'constint' does not name a type
constint maxn =55555;
^
0_0_16249048_27165.cpp:6:9: error: 'maxn' was not declared in this scope
int sum[maxn<<2];
^
0_0_16249048_27165.cpp: In function 'void PushUP(int)':
0_0_16249048_27165.cpp:8:2: error: 'sum' was not declared in this scope
sum[rt]= sum[rt<<1]+ sum[rt<<1|1];
^
0_0_16249048_27165.cpp: In function 'void build(int, int, int)':
0_0_16249048_27165.cpp:12:15: error: 'sum' was not declared in this scope
scanf("%d",&sum[rt]);
^
0_0_16249048_27165.cpp: In function 'void update(int, int, int, int, int)':
0_0_16249048_27165.cpp:22:3: error: 'sum' was not declared in this scope
sum[rt]+= add;
^
0_0_16249048_27165.cpp: In function 'int query(int, int, int, int, int)':
0_0_16249048_27165.cpp:32:10: error: 'sum' was not declared in this scope
return sum[rt];
^
0_0_16249048_27165.cpp: In function 'int main()':
0_0_16249048_27165.cpp:53:21: error: 'elseif' was not declared in this scope
elseif(op[0]=='S') update(a , -b , 1 , n , 1);
^
0_0_16249048_27165.cpp:54:4: error: 'else' without a previous 'if'
else update(a , b , 1 , n , 1);
^
0_0_16249048_27165.cpp:57:2: error: 'return0' was not declared in this scope
return0;
^
|