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_3892291_22464.cpp:127: error: redefinition of `struct seg_tree'
0_0_3892291_22464.cpp:4: error: previous definition of `struct seg_tree'
0_0_3892291_22464.cpp:133: error: invalid type in declaration before ';' token
0_0_3892291_22464.cpp:133: error: conflicting declaration 'int tree[400040]'
0_0_3892291_22464.cpp:10: error: 'tree' has a previous declaration as `seg_tree tree[400040]'
0_0_3892291_22464.cpp:133: error: type mismatch with previous external decl of `int tree[400040]'
0_0_3892291_22464.cpp:10: error: previous external decl of `seg_tree tree[400040]'
0_0_3892291_22464.cpp:133: error: declaration of `int tree[400040]'
0_0_3892291_22464.cpp:10: error: conflicts with previous declaration `seg_tree tree[400040]'
0_0_3892291_22464.cpp:134: error: redefinition of `int val[100010]'
0_0_3892291_22464.cpp:11: error: `int val[100010]' previously declared here
0_0_3892291_22464.cpp: In function `int max(int, int)':
0_0_3892291_22464.cpp:135: error: redefinition of `int max(int, int)'
0_0_3892291_22464.cpp:12: error: `int max(int, int)' previously defined here
0_0_3892291_22464.cpp: In function `int min(int, int)':
0_0_3892291_22464.cpp:139: error: redefinition of `int min(int, int)'
0_0_3892291_22464.cpp:16: error: `int min(int, int)' previously defined here
0_0_3892291_22464.cpp: In function `void build(int, int, int)':
0_0_3892291_22464.cpp:143: error: redefinition of `void build(int, int, int)'
0_0_3892291_22464.cpp:20: error: `void build(int, int, int)' previously defined here
0_0_3892291_22464.cpp: In function `void update(int, int)':
0_0_3892291_22464.cpp:176: error: redefinition of `void update(int, int)'
0_0_3892291_22464.cpp:53: error: `void update(int, int)' previously defined here
0_0_3892291_22464.cpp: In function `int query(int, int, int)':
0_0_3892291_22464.cpp:209: error: redefinition of `int query(int, int, int)'
0_0_3892291_22464.cpp:86: error: `int query(int, int, int)' previously defined here
0_0_3892291_22464.cpp: In function `int main()':
0_0_3892291_22464.cpp:223: error: redefinition of `int main()'
0_0_3892291_22464.cpp:100: error: `int main()' previously defined here


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-06-22 04:30:24, Gzip enabled