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_17194720_12306.cpp:92:2: error: stray '#' in program
 }#include<iostream>
  ^
0_0_17194720_12306.cpp:174:2: error: stray '#' in program
 }#include<iostream>
  ^
0_0_17194720_12306.cpp:92:3: error: 'include' does not name a type
 }#include<iostream>
   ^
0_0_17194720_12306.cpp:98:11: error: redefinition of 'const int MAXN'
 const int MAXN=100+10;
           ^
0_0_17194720_12306.cpp:7:11: note: 'const int MAXN' previously defined here
 const int MAXN=1000+100;
           ^
0_0_17194720_12306.cpp:99:11: error: redefinition of 'const int KMEAN'
 const int KMEAN=30;
           ^
0_0_17194720_12306.cpp:8:11: note: 'const int KMEAN' previously defined here
 const int KMEAN=30;
           ^
0_0_17194720_12306.cpp:100:14: error: redefinition of 'const double INF'
 const double INF=1<<30;
              ^
0_0_17194720_12306.cpp:9:14: note: 'const double INF' previously defined here
 const double INF=1<<30;
              ^
0_0_17194720_12306.cpp:101:14: error: redefinition of 'const double eps'
 const double eps=1e-8;
              ^
0_0_17194720_12306.cpp:10:14: note: 'const double eps' previously defined here
 const double eps=1e-8;
              ^
0_0_17194720_12306.cpp:102:14: error: redefinition of 'const double PI'
 const double PI=3.141592653;
              ^
0_0_17194720_12306.cpp:11:14: note: 'const double PI' previously defined here
 const double PI=3.141592653;
              ^
0_0_17194720_12306.cpp:103:8: error: conflicting declaration 'double x'
 double x=10000.0,y=10000.0;
        ^
0_0_17194720_12306.cpp:12:5: note: previous declaration as 'int x'
 int x,y,n;
     ^
0_0_17194720_12306.cpp:103:18: error: conflicting declaration 'double y'
 double x=10000.0,y=10000.0;
                  ^
0_0_17194720_12306.cpp:12:7: note: previous declaration as 'int y'
 int x,y,n;
       ^
0_0_17194720_12306.cpp:104:5: error: redefinition of 'int n'
 int n;
     ^
0_0_17194720_12306.cpp:12:9: note: 'int n' previously declared here
 int x,y,n;
         ^
0_0_17194720_12306.cpp:105:8: error: redefinition of 'struct Point'
 struct Point
        ^
0_0_17194720_12306.cpp:13:8: error: previous definition of 'struct Point'
 struct Point
        ^
0_0_17194720_12306.cpp:108:15: error: invalid type in declaration before ',' token
 }myPoint[MAXN],myK[KMEAN];
               ^
0_0_17194720_12306.cpp:108:15: error: conflicting declaration 'int myPoint [1100]'
0_0_17194720_12306.cpp:16:2: note: previous declaration as 'Point myPoint [1100]'
 }myPoint[MAXN],myK[KMEAN];
  ^
0_0_17194720_12306.cpp:108:25: error: conflicting declaration 'int myK [30]'
 }myPoint[MAXN],myK[KMEAN];
                         ^
0_0_17194720_12306.cpp:16:16: note: previous declaration as 'Point myK [30]'
 }myPoint[MAXN],myK[KMEAN];
                ^
0_0_17194720_12306.cpp:109:17: error: redefinition of 'double dis [30]'
 double dis[KMEAN];
                 ^
0_0_17194720_12306.cpp:17:8: note: 'double dis [30]' previously declared here
 double dis[KMEAN];
        ^
0_0_17194720_12306.cpp: In function 'double GetMinDis(double, double)':
0_0_17194720_12306.cpp:111:8: error: redefinition of 'double GetMinDis(double, double)'
 double GetMinDis(double tx,double ty)
        ^
0_0_17194720_12306.cpp:19:8: note: 'double GetMinDis(double, double)' previously defined here
 double GetMinDis(double tx,double ty)
        ^
0_0_17194720_12306.cpp: In function 'int main()':
0_0_17194720_12306.cpp:121:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_17194720_12306.cpp:31:5: note: 'int main()' previously defined here
 int main()
     ^
0_0_17194720_12306.cpp: At global scope:
0_0_17194720_12306.cpp:174:3: error: 'include' does not name a type
 }#include<iostream>
   ^
0_0_17194720_12306.cpp:180:11: error: redefinition of 'const int MAXN'
 const int MAXN=1000+100;
           ^
0_0_17194720_12306.cpp:7:11: note: 'const int MAXN' previously defined here
 const int MAXN=1000+100;
           ^
0_0_17194720_12306.cpp:181:11: error: redefinition of 'const int KMEAN'
 const int KMEAN=30;
           ^
0_0_17194720_12306.cpp:8:11: note: 'const int KMEAN' previously defined here
 const int KMEAN=30;
           ^
0_0_17194720_12306.cpp:182:14: error: redefinition of 'const double INF'
 const double INF=1<<30;
              ^
0_0_17194720_12306.cpp:9:14: note: 'const double INF' previously defined here
 const double INF=1<<30;
              ^
0_0_17194720_12306.cpp:183:14: error: redefinition of 'const double eps'
 const double eps=1e-8;
              ^
0_0_17194720_12306.cpp:10:14: note: 'const double eps' previously defined here
 const double eps=1e-8;
              ^
0_0_17194720_12306.cpp:184:14: error: redefinition of 'const double PI'
 const double PI=3.141592653;
              ^
0_0_17194720_12306.cpp:11:14: note: 'const double PI' previously defined here
 const double PI=3.141592653;
              ^
0_0_17194720_12306.cpp:185:5: error: redefinition of 'int x'
 int x,y,n;
     ^
0_0_17194720_12306.cpp:12:5: note: 'int x' previously declared here
 int x,y,n;
     ^
0_0_17194720_12306.cpp:185:7: error: redefinition of 'int y'
 int x,y,n;
       ^
0_0_17194720_12306.cpp:12:7: note: 'int y' previously declared here
 int x,y,n;
       ^
0_0_17194720_12306.cpp:185:9: error: redefinition of 'int n'
 int x,y,n;
         ^
0_0_17194720_12306.cpp:12:9: note: 'int n' previously declared here
 int x,y,n;
         ^
0_0_17194720_12306.cpp:186:8: error: redefinition of 'struct Point'
 struct Point
        ^
0_0_17194720_12306.cpp:13:8: error: previous definition of 'struct Point'
 struct Point
        ^
0_0_17194720_12306.cpp:189:15: error: invalid type in declaration before ',' token
 }myPoint[MAXN],myK[KMEAN];
               ^
0_0_17194720_12306.cpp:189:15: error: conflicting declaration 'int myPoint [1100]'
0_0_17194720_12306.cpp:16:2: note: previous declaration as 'Point myPoint [1100]'
 }myPoint[MAXN],myK[KMEAN];
  ^
0_0_17194720_12306.cpp:189:25: error: conflicting declaration 'int myK [30]'
 }myPoint[MAXN],myK[KMEAN];
                         ^
0_0_17194720_12306.cpp:16:16: note: previous declaration as 'Point myK [30]'
 }myPoint[MAXN],myK[KMEAN];
                ^
0_0_17194720_12306.cpp:190:17: error: redefinition of 'double dis [30]'
 double dis[KMEAN];
                 ^
0_0_17194720_12306.cpp:17:8: note: 'double dis [30]' previously declared here
 double dis[KMEAN];
        ^
0_0_17194720_12306.cpp: In function 'int main()':
0_0_17194720_12306.cpp:204:5: error: redefinition of 'int main()'
 int main()
     ^
0_0_17194720_12306.cpp:31: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-06-28 14:16:39, Gzip enabled