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_22235852_12005.cpp:198:10: error: redefinition of 'const LL mod'
 const LL mod=1e9+7;
          ^
0_0_22235852_12005.cpp:21:10: note: 'const LL mod' previously defined here
 const LL mod=1e9+7;
          ^
0_0_22235852_12005.cpp:199:14: error: redefinition of 'const double PI'
 const double PI=acos(-1.0);
              ^
0_0_22235852_12005.cpp:22:14: note: 'const double PI' previously defined here
 const double PI=acos(-1.0);
              ^
0_0_22235852_12005.cpp:200:14: error: redefinition of 'const double EPS'
 const double EPS=1e-10;
              ^
0_0_22235852_12005.cpp:23:14: note: 'const double EPS' previously defined here
 const double EPS=1e-8;
              ^
0_0_22235852_12005.cpp:201:11: error: redefinition of 'const int INF'
 const int INF=0x3f3f3f3f;
           ^
0_0_22235852_12005.cpp:24:11: note: 'const int INF' previously defined here
 const int INF=0x3f3f3f3f;
           ^
0_0_22235852_12005.cpp: In function 'int readint()':
0_0_22235852_12005.cpp:202:12: error: redefinition of 'int readint()'
 inline int readint(){int sum=0;char c=getchar();bool f=0;while(c<'0'||c>'9'){if(c=='-') f=1;c=getchar();}while(c>='0'&&c<='9'){sum=sum*10+c-'0';c=getchar();}if(f) return -sum;return sum;}
            ^
0_0_22235852_12005.cpp:25:12: note: 'int readint()' previously defined here
 inline int readint(){int sum=0;char c=getchar();bool f=0;while(c<'0'||c>'9'){if(c=='-') f=1;c=getchar();}while(c>='0'&&c<='9'){sum=sum*10+c-'0';c=getchar();}if(f) return -sum;return sum;}
            ^
0_0_22235852_12005.cpp: In function 'LL readLL()':
0_0_22235852_12005.cpp:203:11: error: redefinition of 'LL readLL()'
 inline LL readLL(){LL sum=0;char c=getchar();bool f=0;while(c<'0'||c>'9'){if(c=='-') f=1;c=getchar();}while(c>='0'&&c<='9'){sum=sum*10+c-'0';c=getchar();}if(f) return -sum;return sum;}
           ^
0_0_22235852_12005.cpp:26:11: note: 'LL readLL()' previously defined here
 inline LL readLL(){LL sum=0;char c=getchar();bool f=0;while(c<'0'||c>'9'){if(c=='-') f=1;c=getchar();}while(c>='0'&&c<='9'){sum=sum*10+c-'0';c=getchar();}if(f) return -sum;return sum;}
           ^
0_0_22235852_12005.cpp: At global scope:
0_0_22235852_12005.cpp:207:14: error: redefinition of 'const double eps'
 const double eps=1e-10;
              ^
0_0_22235852_12005.cpp:30:14: note: 'const double eps' previously defined here
 const double eps=1e-10;
              ^
0_0_22235852_12005.cpp: In function 'int dcmp(double)':
0_0_22235852_12005.cpp:209:5: error: redefinition of 'int dcmp(double)'
 int dcmp(double x){
     ^
0_0_22235852_12005.cpp:32:5: note: 'int dcmp(double)' previously defined here
 int dcmp(double x){
     ^
0_0_22235852_12005.cpp: At global scope:
0_0_22235852_12005.cpp:216:8: error: redefinition of 'struct Point'
 struct Point{
        ^
0_0_22235852_12005.cpp:39:8: error: previous definition of 'struct Point'
 struct Point{
        ^
0_0_22235852_12005.cpp:228:8: error: redefinition of 'struct Line'
 struct Line{
        ^
0_0_22235852_12005.cpp:51:8: error: previous definition of 'struct Line'
 struct Line{
        ^
0_0_22235852_12005.cpp: In function 'Point operator+(Point, Point)':
0_0_22235852_12005.cpp:237:7: error: redefinition of 'Point operator+(Point, Point)'
 Point operator +(Point a,Point b){ return Point(a.x+b.x,a.y+b.y); }
       ^
0_0_22235852_12005.cpp:60:7: note: 'Point operator+(Point, Point)' previously defined here
 Point operator +(Point a,Point b){ return Point(a.x+b.x,a.y+b.y); }
       ^
0_0_22235852_12005.cpp: In function 'Point operator-(Point, Point)':
0_0_22235852_12005.cpp:238:7: error: redefinition of 'Point operator-(Point, Point)'
 Point operator -(Point a,Point b){ return Point(a.x-b.x,a.y-b.y); }
       ^
0_0_22235852_12005.cpp:61:7: note: 'Point operator-(Point, Point)' previously defined here
 Point operator -(Point a,Point b){ return Point(a.x-b.x,a.y-b.y); }
       ^
0_0_22235852_12005.cpp: In function 'Point operator*(Point, double)':
0_0_22235852_12005.cpp:239:7: error: redefinition of 'Point operator*(Point, double)'
 Point operator *(Point a,double k){ return Point(k*a.x,k*a.y); }
       ^
0_0_22235852_12005.cpp:62:7: note: 'Point operator*(Point, double)' previously defined here
 Point operator *(Point a,double k){ return Point(k*a.x,k*a.y); }
       ^
0_0_22235852_12005.cpp: In function 'Point operator*(double, Point)':
0_0_22235852_12005.cpp:240:7: error: redefinition of 'Point operator*(double, Point)'
 Point operator *(double k,Point a){ return Point(k*a.x,k*a.y); }
       ^
0_0_22235852_12005.cpp:63:7: note: 'Point operator*(double, Point)' previously defined here
 Point operator *(double k,Point a){ return Point(k*a.x,k*a.y); }
       ^
0_0_22235852_12005.cpp: In function 'double operator*(Point, Point)':
0_0_22235852_12005.cpp:241:8: error: redefinition of 'double operator*(Point, Point)'
 double operator *(Point a,Point b){ return a.x*b.x+a.y*b.y; }
        ^
0_0_22235852_12005.cpp:64:8: note: 'double operator*(Point, Point)' previously defined here
 double operator *(Point a,Point b){ return a.x*b.x+a.y*b.y; }
        ^
0_0_22235852_12005.cpp: In function 'Point operator/(Point, double)':
0_0_22235852_12005.cpp:242:7: error: redefinition of 'Point operator/(Point, double)'
 Point operator /(Point a,double k){ return Point(a.x/k,a.y/k); }
       ^
0_0_22235852_12005.cpp:65:7: note: 'Point operator/(Point, double)' previously defined here
 Point operator /(Point a,double k){ return Point(a.x/k,a.y/k); }
       ^
0_0_22235852_12005.cpp: In function 'double operator^(Point, Point)':
0_0_22235852_12005.cpp:243:8: error: redefinition of 'double operator^(Point, Point)'
 double operator ^(Point a,Point b){ return a.x*b.y-a.y*b.x; }
        ^
0_0_22235852_12005.cpp:66:8: note: 'double operator^(Point, Point)' previously defined here
 double operator ^(Point a,Point b){ return a.x*b.y-a.y*b.x; }
        ^
0_0_22235852_12005.cpp: In function 'double cross(Point, Point)':
0_0_22235852_12005.cpp:245:8: error: redefinition of 'double cross(Point, Point)'
 double cross(Point a,Point b){ return a.x*b.y-a.y*b.x; }
        ^
0_0_22235852_12005.cpp:68:8: note: 'double cross(Point, Point)' previously defined here
 double cross(Point a,Point b){ return a.x*b.y-a.y*b.x; }
        ^
0_0_22235852_12005.cpp: In function 'double cross(Point, Point, Point)':
0_0_22235852_12005.cpp:247:8: error: redefinition of 'double cross(Point, Point, Point)'
 double cross(Point a,Point b,Point c){ return cross(b-a,c-a); }
        ^
0_0_22235852_12005.cpp:70:8: note: 'double cross(Point, Point, Point)' previously defined here
 double cross(Point a,Point b,Point c){ return cross(b-a,c-a); }
        ^
0_0_22235852_12005.cpp: In function 'double dot(Point, Point)':
0_0_22235852_12005.cpp:248:8: error: redefinition of 'double dot(Point, Point)'
 double dot(Point a,Point b){ return a.x*b.x+a.y*b.y; }
        ^
0_0_22235852_12005.cpp:71:8: note: 'double dot(Point, Point)' previously defined here
 double dot(Point a,Point b){ return a.x*b.x+a.y*b.y; }
        ^
0_0_22235852_12005.cpp: In function 'double dot(Point, Point, Point)':
0_0_22235852_12005.cpp:250:8: error: redefinition of 'double dot(Point, Point, Point)'
 double dot(Point a,Point b,Point c){ return dot(b-a,c-a); }
        ^
0_0_22235852_12005.cpp:73:8: note: 'double dot(Point, Point, Point)' previously defined here
 double dot(Point a,Point b,Point c){ return dot(b-a,c-a); }
        ^
0_0_22235852_12005.cpp: In function 'double length(Point)':
0_0_22235852_12005.cpp:252:8: error: redefinition of 'double length(Point)'
 double length(Point p){ return sqrt(p*p); }
        ^
0_0_22235852_12005.cpp:75:8: note: 'double length(Point)' previously defined here
 double length(Point p){ return sqrt(p*p); }
        ^
0_0_22235852_12005.cpp: In function 'Point unit(Point)':
0_0_22235852_12005.cpp:254:7: error: redefinition of 'Point unit(Point)'
 Point unit(Point p){ return 1.0/length(p)*p; }
       ^
0_0_22235852_12005.cpp:77:7: note: 'Point unit(Point)' previously defined here
 Point unit(Point p){ return 1.0/length(p)*p; }
       ^
0_0_22235852_12005.cpp: In function 'double project(Point, Point)':
0_0_22235852_12005.cpp:256:8: error: redefinition of 'double project(Point, Point)'
 double project(Point p,Point n){ return p*unit(n); }
        ^
0_0_22235852_12005.cpp:79:8: note: 'double project(Point, Point)' previously defined here
 double project(Point p,Point n){ return p*unit(n); }
        ^
0_0_22235852_12005.cpp: In function 'double area(Point, Point)':
0_0_22235852_12005.cpp:258:8: error: redefinition of 'double area(Point, Point)'
 double area(Point a,Point b){ return a^b*0.5; }
        ^
0_0_22235852_12005.cpp:81:8: note: 'double area(Point, Point)' previously defined here
 double area(Point a,Point b){ return a^b*0.5; }
        ^
0_0_22235852_12005.cpp: In function 'double distPP(Point, Point)':
0_0_22235852_12005.cpp:260:8: error: redefinition of 'double distPP(Point, Point)'
 double distPP(Point p,Point q){ return length(p-q); }
        ^
0_0_22235852_12005.cpp:83:8: note: 'double distPP(Point, Point)' previously defined here
 double distPP(Point p,Point q){ return length(p-q); }
        ^
0_0_22235852_12005.cpp: In function 'double distPL(Point, Line)':
0_0_22235852_12005.cpp:261:8: error: redefinition of 'double distPL(Point, Line)'
 double distPL(Point p,Line l){ return fabs((p-l.a)^(p-l.b))/length(l.a-l.b); }
        ^
0_0_22235852_12005.cpp:84:8: note: 'double distPL(Point, Line)' previously defined here
 d


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-11-17 01:12:41, Gzip enabled