0_0_25602690_686.cpp:4:9: error: '__int64_t' does not name a type
typedef __int64_t ll;
^
0_0_25602690_686.cpp:8:1: error: 'll' does not name a type
ll C[Maxm],ans[Maxm];
^
0_0_25602690_686.cpp:10:1: error: 'll' does not name a type
ll lowbit(ll x){return x&(-x);}
^
0_0_25602690_686.cpp:11:1: error: 'll' does not name a type
ll getsum(ll x){ll ret=0; for( ;x>0;ret+=C[x],x-=lowbit(x) );return ret;}
^
0_0_25602690_686.cpp:12:1: error: 'll' does not name a type
ll update(ll x,ll val){for(;x<=Maxm;C[x]+=val,x+=lowbit(x));}
^
0_0_25602690_686.cpp: In function 'int main()':
0_0_25602690_686.cpp:24:16: error: 'C' was not declared in this scope
memset(C,0,sizeof(C));
^
0_0_25602690_686.cpp:41:39: error: 'update' was not declared in this scope
update(mp[a[j]],-x);
^
0_0_25602690_686.cpp:43:27: error: 'update' was not declared in this scope
update(j,x);
^
0_0_25602690_686.cpp:47:32: error: 'getsum' was not declared in this scope
int y=getsum(q[i].r),x=getsum(q[i].l-1);
^
0_0_25602690_686.cpp:48:13: error: 'ans' was not declared in this scope
ans[q[i].No]=y-x;
^
0_0_25602690_686.cpp:48:28: error: 'x' was not declared in this scope
ans[q[i].No]=y-x;
^
0_0_25602690_686.cpp:51:31: error: 'ans' was not declared in this scope
printf("%I64td\n",ans[i]);
^
|