0_0_25603318_32325.cpp:2:12: error: '__int64_t' does not name a type
#define ll __int64_t
^
0_0_25603318_32325.cpp:6:1: note: in expansion of macro 'll'
ll a[N],ans[M],C[N];
^
0_0_25603318_32325.cpp:2:12: error: '__int64_t' has not been declared
#define ll __int64_t
^
0_0_25603318_32325.cpp:19:19: note: in expansion of macro 'll'
void update(int x,ll val){ for(;x<=n;C[x]+=val,x+=lowbit(x));}
^
0_0_25603318_32325.cpp: In function 'void update(int, int)':
0_0_25603318_32325.cpp:19:38: error: 'C' was not declared in this scope
void update(int x,ll val){ for(;x<=n;C[x]+=val,x+=lowbit(x));}
^
0_0_25603318_32325.cpp: At global scope:
0_0_25603318_32325.cpp:2:12: error: '__int64_t' does not name a type
#define ll __int64_t
^
0_0_25603318_32325.cpp:20:1: note: in expansion of macro 'll'
ll getsum(int x){ll ret=0;for(;x>0;ret+=C[x],x-=lowbit(x));return ret;}
^
0_0_25603318_32325.cpp: In function 'int main()':
0_0_25603318_32325.cpp:25:43: error: 'a' was not declared in this scope
for(int i=1;i<=n;i++){scanf("%d",&a[i]);}
^
0_0_25603318_32325.cpp:33:16: error: 'C' was not declared in this scope
memset(C,0,sizeof(C));
^
0_0_25603318_32325.cpp:34:16: error: 'ans' was not declared in this scope
memset(ans,0,sizeof(ans));
^
0_0_25603318_32325.cpp:37:24: error: 'a' was not declared in this scope
if(vis[a[L]]){
^
0_0_25603318_32325.cpp:40:26: error: 'a' was not declared in this scope
update(L,a[L]);
^
0_0_25603318_32325.cpp:44:39: error: 'getsum' was not declared in this scope
ans[q[i].No]=getsum(q[i].r)-getsum(q[i].l-1);
^
|