0_0_30298071_3014.cpp:8:12: error: invalid operands of types 'double' and 'int' to binary 'operator<<'
LL tree[M<<2],lazy[M<<2],c,b,a;
^
0_0_30298071_3014.cpp:8:23: error: invalid operands of types 'double' and 'int' to binary 'operator<<'
LL tree[M<<2],lazy[M<<2],c,b,a;
^
0_0_30298071_3014.cpp: In function 'void build(long long int, long long int, long long int)':
0_0_30298071_3014.cpp:14:22: error: 'tree' was not declared in this scope
scanf("%lld",&tree[o]);
^
0_0_30298071_3014.cpp:20:5: error: 'tree' was not declared in this scope
tree[o]=tree[o<<1]+tree[o<<1|1];
^
0_0_30298071_3014.cpp: In function 'void update(long long int, long long int, long long int, long long int, long long int)':
0_0_30298071_3014.cpp:26:9: error: 'tree' was not declared in this scope
tree[o]=sqrt(tree[o]);
^
0_0_30298071_3014.cpp:29:20: error: 'tree' was not declared in this scope
if(L<=l&&r<=R&&tree[o]==r-l+1) return;
^
0_0_30298071_3014.cpp:33:5: error: 'tree' was not declared in this scope
tree[o]=tree[o<<1]+tree[o<<1|1];
^
0_0_30298071_3014.cpp: In function 'long long int query(long long int, long long int, long long int, long long int, long long int)':
0_0_30298071_3014.cpp:39:13: error: 'tree' was not declared in this scope
return tree[o];
^
0_0_30298071_3014.cpp: In function 'int main()':
0_0_30298071_3014.cpp:52:16: error: 'lazy' was not declared in this scope
memset(lazy,0,sizeof(lazy));
^
|