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_23185508_94.cpp:129:5: error: redefinition of 'int len'
 int len;
     ^
0_0_23185508_94.cpp:5:5: note: 'int len' previously declared here
 int len;
     ^
0_0_23185508_94.cpp:130:8: error: redefinition of 'struct node'
 struct node
        ^
0_0_23185508_94.cpp:6:8: error: previous definition of 'struct node'
 struct node
        ^
0_0_23185508_94.cpp:133:12: error: invalid type in declaration before ',' token
 } a[100005],b[100005],c[100005];
            ^
0_0_23185508_94.cpp:133:12: error: conflicting declaration 'int a [100005]'
0_0_23185508_94.cpp:9:3: note: previous declaration as 'node a [100005]'
 } a[100005],b[100005],c[100005];
   ^
0_0_23185508_94.cpp:133:21: error: conflicting declaration 'int b [100005]'
 } a[100005],b[100005],c[100005];
                     ^
0_0_23185508_94.cpp:9:13: note: previous declaration as 'node b [100005]'
 } a[100005],b[100005],c[100005];
             ^
0_0_23185508_94.cpp:133:31: error: conflicting declaration 'int c [100005]'
 } a[100005],b[100005],c[100005];
                               ^
0_0_23185508_94.cpp:9:23: note: previous declaration as 'node c [100005]'
 } a[100005],b[100005],c[100005];
                       ^
0_0_23185508_94.cpp:134:8: error: redefinition of 'struct Pair'
 struct Pair
        ^
0_0_23185508_94.cpp:10:8: error: previous definition of 'struct Pair'
 struct Pair
        ^
0_0_23185508_94.cpp:137:6: error: invalid type in declaration before ';' token
 } ans;
      ^
0_0_23185508_94.cpp:137:6: error: conflicting declaration 'int ans'
0_0_23185508_94.cpp:13:3: note: previous declaration as 'Pair ans'
 } ans;
   ^
0_0_23185508_94.cpp: In function 'bool cmp1(node, node)':
0_0_23185508_94.cpp:138:6: error: redefinition of 'bool cmp1(node, node)'
 bool cmp1(node a,node b)
      ^
0_0_23185508_94.cpp:14:6: note: 'bool cmp1(node, node)' previously defined here
 bool cmp1(node a,node b)
      ^
0_0_23185508_94.cpp: In function 'bool cmp2(node, node)':
0_0_23185508_94.cpp:142:6: error: redefinition of 'bool cmp2(node, node)'
 bool cmp2(node a,node b)
      ^
0_0_23185508_94.cpp:18:6: note: 'bool cmp2(node, node)' previously defined here
 bool cmp2(node a,node b)
      ^
0_0_23185508_94.cpp: In function 'double dist(node, node)':
0_0_23185508_94.cpp:146:8: error: redefinition of 'double dist(node, node)'
 double dist(node a1,node a2)
        ^
0_0_23185508_94.cpp:22:8: note: 'double dist(node, node)' previously defined here
 double dist(node a1,node a2)
        ^
0_0_23185508_94.cpp: In function 'Pair closestpair(int, int)':
0_0_23185508_94.cpp:152:6: error: redefinition of 'Pair closestpair(int, int)'
 Pair closestpair(int l,int r)
      ^
0_0_23185508_94.cpp:28:6: note: 'Pair closestpair(int, int)' previously defined here
 Pair closestpair(int l,int r)
      ^
0_0_23185508_94.cpp: In function 'Pair solve()':
0_0_23185508_94.cpp:221:6: error: redefinition of 'Pair solve()'
 Pair solve()
      ^
0_0_23185508_94.cpp:97:6: note: 'Pair solve()' previously defined here
 Pair solve()
      ^
0_0_23185508_94.cpp: In function 'int main()':
0_0_23185508_94.cpp:227:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_23185508_94.cpp:103:5: note: 'int main()' previously defined here
 int main()
     ^


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2025 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2025-02-18 23:17:54, Gzip enabled