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_20195922_3303.cpp:76:11: error: conflicting declaration 'int f [1001]'
 int f[1001],odd[1001],du[1001],num[1001],book[1001];
           ^
0_0_20195922_3303.cpp:4:5: note: previous declaration as 'int f [100001]'
 int f[100001],odd[100001],du[100001],num[100001],book[100001];
     ^
0_0_20195922_3303.cpp:76:21: error: conflicting declaration 'int odd [1001]'
 int f[1001],odd[1001],du[1001],num[1001],book[1001];
                     ^
0_0_20195922_3303.cpp:4:15: note: previous declaration as 'int odd [100001]'
 int f[100001],odd[100001],du[100001],num[100001],book[100001];
               ^
0_0_20195922_3303.cpp:76:30: error: conflicting declaration 'int du [1001]'
 int f[1001],odd[1001],du[1001],num[1001],book[1001];
                              ^
0_0_20195922_3303.cpp:4:27: note: previous declaration as 'int du [100001]'
 int f[100001],odd[100001],du[100001],num[100001],book[100001];
                           ^
0_0_20195922_3303.cpp:76:40: error: conflicting declaration 'int num [1001]'
 int f[1001],odd[1001],du[1001],num[1001],book[1001];
                                        ^
0_0_20195922_3303.cpp:4:38: note: previous declaration as 'int num [100001]'
 int f[100001],odd[100001],du[100001],num[100001],book[100001];
                                      ^
0_0_20195922_3303.cpp:76:51: error: conflicting declaration 'int book [1001]'
 int f[1001],odd[1001],du[1001],num[1001],book[1001];
                                                   ^
0_0_20195922_3303.cpp:4:50: note: previous declaration as 'int book [100001]'
 int f[100001],odd[100001],du[100001],num[100001],book[100001];
                                                  ^
0_0_20195922_3303.cpp: In function 'int getv(int)':
0_0_20195922_3303.cpp:77:5: error: redefinition of 'int getv(int)'
 int getv(int x)
     ^
0_0_20195922_3303.cpp:5:5: note: 'int getv(int)' previously defined here
 int getv(int x)
     ^
0_0_20195922_3303.cpp: In function 'void union1(int, int)':
0_0_20195922_3303.cpp:86:6: error: redefinition of 'void union1(int, int)'
 void union1(int x,int y)
      ^
0_0_20195922_3303.cpp:14:6: note: 'void union1(int, int)' previously defined here
 void union1(int x,int y)
      ^
0_0_20195922_3303.cpp: In function 'int main()':
0_0_20195922_3303.cpp:97:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_20195922_3303.cpp:25: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-07-03 18:05:22, Gzip enabled