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_34724149_19554.cpp:6:1: error: 'int64' does not name a type
 int64 c[1000005];  //树状数组
 ^
0_0_34724149_19554.cpp:10:1: error: 'int64' does not name a type
 int64 ans[1000005]; //记录结果;
 ^
0_0_34724149_19554.cpp: In function 'void update(int, int)':
0_0_34724149_19554.cpp:32:9: error: 'c' was not declared in this scope
         c[n]+=x;
         ^
0_0_34724149_19554.cpp: At global scope:
0_0_34724149_19554.cpp:36:1: error: 'int64' does not name a type
 int64 getsum(int m)
 ^
0_0_34724149_19554.cpp: In function 'int main()':
0_0_34724149_19554.cpp:54:16: error: 'c' was not declared in this scope
         memset(c,0,sizeof(c));
                ^
0_0_34724149_19554.cpp:79:13: error: 'ans' was not declared in this scope
             ans[f[i].num]=getsum(f[i].r)-getsum(f[i].l-1);
             ^
0_0_34724149_19554.cpp:79:40: error: 'getsum' was not declared in this scope
             ans[f[i].num]=getsum(f[i].r)-getsum(f[i].l-1);
                                        ^
0_0_34724149_19554.cpp:83:30: error: 'ans' was not declared in this scope
             printf("%I64d\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-23 09:03:39, Gzip enabled