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_25602598_13911.cpp:5:9: error: '__int64_t' does not name a type
 typedef __int64_t ll;
         ^
0_0_25602598_13911.cpp:10:1: error: 'll' does not name a type
 ll ans[maxM];
 ^
0_0_25602598_13911.cpp:26:1: error: 'll' does not name a type
 ll tree[maxN];
 ^
0_0_25602598_13911.cpp: In function 'void update(int, int, int)':
0_0_25602598_13911.cpp:32:5: error: 'tree' was not declared in this scope
     tree[curl] += value;
     ^
0_0_25602598_13911.cpp: At global scope:
0_0_25602598_13911.cpp:37:1: error: 'll' does not name a type
 ll getSum(int curl)
 ^
0_0_25602598_13911.cpp: In function 'int main()':
0_0_25602598_13911.cpp:75:12: error: 'tree' was not declared in this scope
     memset(tree,0,sizeof(tree));
            ^
0_0_25602598_13911.cpp:108:9: error: 'ans' was not declared in this scope
         ans[asks[i].id] = getSum(asks[i].r) - getSum(asks[i].l - 1);
         ^
0_0_25602598_13911.cpp:108:43: error: 'getSum' was not declared in this scope
         ans[asks[i].id] = getSum(asks[i].r) - getSum(asks[i].l - 1);
                                           ^
0_0_25602598_13911.cpp:113:25: error: 'ans' was not declared in this scope
         printf("%lld\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 16:53:38, Gzip enabled