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_23175442_23962.cpp:91:1: error: 'code' does not name a type
 code???????
 ^
0_0_23175442_23962.cpp:106:2: error: 'tree' does not name a type
 }tree[4*max]; 
  ^
0_0_23175442_23962.cpp: In function 'void build_tree(int, int, int)':
0_0_23175442_23962.cpp:114:5: error: 'tree' was not declared in this scope
     tree[p].sum = 0; 
     ^
0_0_23175442_23962.cpp: In function 'void add(int, int, int)':
0_0_23175442_23962.cpp:138:14: error: 'tree' was not declared in this scope
     int m = (tree[p].l+tree[p].r)/2; 
              ^
0_0_23175442_23962.cpp: In function 'int query(int, int, int)':
0_0_23175442_23962.cpp:176:14: error: 'tree' was not declared in this scope
     int m = (tree[p].l+tree[p].r)/2; 
              ^
0_0_23175442_23962.cpp: In function 'int main()':
0_0_23175442_23962.cpp:198:5: error: redefinition of 'int main()'
 int main() 
     ^
0_0_23175442_23962.cpp:51:5: note: 'int main()' previously defined here
 int main() 
     ^


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-30 02:33:11, Gzip enabled