F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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]);
                               ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-15 13:26:59, Gzip enabled