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_26130931_25537.cpp:259:11: error: 'int inmid' redeclared as different kind of symbol
 int inmid(point k1,point k2,point k3){return inmid(k1.x,k2.x,k3.x)&&inmid(k1.y,k2.y,k3.y);}
           ^
0_0_26130931_25537.cpp:258:5: note: previous declaration 'int inmid(double, double, double)'
 int inmid(double  k1,double k2,double k3){return dcmp(k1-k3)*dcmp(k2-k3)<=0;}// k3 ÔÚ [k1,k2] ÄÚ 
     ^
0_0_26130931_25537.cpp:259:11: error: 'point' was not declared in this scope
 int inmid(point k1,point k2,point k3){return inmid(k1.x,k2.x,k3.x)&&inmid(k1.y,k2.y,k3.y);}
           ^
0_0_26130931_25537.cpp:259:20: error: 'point' was not declared in this scope
 int inmid(point k1,point k2,point k3){return inmid(k1.x,k2.x,k3.x)&&inmid(k1.y,k2.y,k3.y);}
                    ^
0_0_26130931_25537.cpp:259:29: error: 'point' was not declared in this scope
 int inmid(point k1,point k2,point k3){return inmid(k1.x,k2.x,k3.x)&&inmid(k1.y,k2.y,k3.y);}
                             ^
0_0_26130931_25537.cpp: In function 'double point_to_seg(Point, Line)':
0_0_26130931_25537.cpp:262:25: error: cannot convert 'Point' to 'double' for argument '1' to 'int inmid(double, double, double)'
     if (inmid(a.s,a.e,k3)){
                         ^


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-26 00:54:22, Gzip enabled