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_29265286_4060.cpp:119:14: error: redefinition of 'const double eps'
 const double eps=1e-10;
              ^
0_0_29265286_4060.cpp:3:14: note: 'const double eps' previously defined here
 const double eps=1e-10;
              ^
0_0_29265286_4060.cpp:120:14: error: redefinition of 'const double PI'
 const double PI=3.1415926535;
              ^
0_0_29265286_4060.cpp:4:14: note: 'const double PI' previously defined here
 const double PI=3.1415926535;
              ^
0_0_29265286_4060.cpp: In function 'int sgn(const double&)':
0_0_29265286_4060.cpp:121:5: error: redefinition of 'int sgn(const double&)'
 int sgn(double const &x) {
     ^
0_0_29265286_4060.cpp:5:5: note: 'int sgn(const double&)' previously defined here
 int sgn(double const &x) {
     ^
0_0_29265286_4060.cpp: In function 'double sqr(const double&)':
0_0_29265286_4060.cpp:125:8: error: redefinition of 'double sqr(const double&)'
 double sqr(double const &x) { 
        ^
0_0_29265286_4060.cpp:9:8: note: 'double sqr(const double&)' previously defined here
 double sqr(double const &x) { 
        ^
0_0_29265286_4060.cpp: At global scope:
0_0_29265286_4060.cpp:129:8: error: redefinition of 'struct Point'
 struct Point {
        ^
0_0_29265286_4060.cpp:13:8: error: previous definition of 'struct Point'
 struct Point {
        ^
0_0_29265286_4060.cpp:170:8: error: redefinition of 'struct Line'
 struct Line {
        ^
0_0_29265286_4060.cpp:54:8: error: previous definition of 'struct Line'
 struct Line {
        ^
0_0_29265286_4060.cpp: In function 'double Dist(const Point&, const Point&)':
0_0_29265286_4060.cpp:175:8: error: redefinition of 'double Dist(const Point&, const Point&)'
 double Dist(const Point &a,const Point &b) {
        ^
0_0_29265286_4060.cpp:59:8: note: 'double Dist(const Point&, const Point&)' previously defined here
 double Dist(const Point &a,const Point &b) {
        ^
0_0_29265286_4060.cpp: In function 'double Dist(const Point&, const Line&)':
0_0_29265286_4060.cpp:180:8: error: redefinition of 'double Dist(const Point&, const Line&)'
 double Dist(const Point &a,const Line &l) {
        ^
0_0_29265286_4060.cpp:64:8: note: 'double Dist(const Point&, const Line&)' previously defined here
 double Dist(const Point &a,const Line &l) {
        ^
0_0_29265286_4060.cpp: In function 'Point Cross(const Line&, const Line&)':
0_0_29265286_4060.cpp:184:7: error: redefinition of 'Point Cross(const Line&, const Line&)'
 Point Cross(const Line &ln1,const Line &ln2) {
       ^
0_0_29265286_4060.cpp:68:7: note: 'Point Cross(const Line&, const Line&)' previously defined here
 Point Cross(const Line &ln1,const Line &ln2) {
       ^
0_0_29265286_4060.cpp: At global scope:
0_0_29265286_4060.cpp:190:11: error: redefinition of 'const int N'
 const int N=2e3+10;
           ^
0_0_29265286_4060.cpp:74:11: note: 'const int N' previously defined here
 const int N=2e3+10;
           ^
0_0_29265286_4060.cpp:192:5: error: redefinition of 'int n'
 int n;
     ^
0_0_29265286_4060.cpp:76:5: note: 'int n' previously declared here
 int n;
     ^
0_0_29265286_4060.cpp:193:10: error: redefinition of 'Point p [2010]'
 Point p[N];
          ^
0_0_29265286_4060.cpp:77:7: note: 'Point p [2010]' previously declared here
 Point p[N];
       ^
0_0_29265286_4060.cpp:194:12: error: redefinition of 'Point a [4020]'
 Point a[N*2];
            ^
0_0_29265286_4060.cpp:78:7: note: 'Point a [4020]' previously declared here
 Point a[N*2];
       ^
0_0_29265286_4060.cpp: In function 'bool comp(const Point&, const Point&)':
0_0_29265286_4060.cpp:196:13: error: redefinition of 'bool comp(const Point&, const Point&)'
 inline bool comp(const Point &a,const Point &b){
             ^
0_0_29265286_4060.cpp:80:13: note: 'bool comp(const Point&, const Point&)' previously defined here
 inline bool comp(const Point &a,const Point &b){
             ^
0_0_29265286_4060.cpp: In function 'int main()':
0_0_29265286_4060.cpp:200:5: error: redefinition of 'int main()'
 int main(){
     ^
0_0_29265286_4060.cpp:84: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-12-05 10:36:37, Gzip enabled