0_0_30405589_10635.cpp: In function 'void update(int, int, int, int)':
0_0_30405589_10635.cpp:18:17: error: 'n' was not declared in this scope
seg[rt]=n+1;
^
0_0_30405589_10635.cpp: In function 'int query(int, int, int, int, int)':
0_0_30405589_10635.cpp:29:16: error: 'n' was not declared in this scope
return n+1;
^
0_0_30405589_10635.cpp:31:43: error: 'n' was not declared in this scope
int mid=(l+r)>>1,lc=rt<<1,rc=lc|1,res=n+1;
^
0_0_30405589_10635.cpp: In function 'int main()':
0_0_30405589_10635.cpp:46:9: error: 'ans' was not declared in this scope
ans=0;
^
0_0_30405589_10635.cpp:50:22: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
case "1":{
^
0_0_30405589_10635.cpp:50:22: error: '(int)((long long int)"1")' is not a constant expression
0_0_30405589_10635.cpp:55:22: error: invalid conversion from 'const char*' to 'int' [-fpermissive]
case "2":{
^
0_0_30405589_10635.cpp:55:22: error: '(int)((long long int)"2")' is not a constant expression
|