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_30652769_17231.cpp: In function 'int cmp(line, line)':
0_0_30652769_17231.cpp:26:20: error: no matching function for call to 'dis(std::complex<double>)'
  return dis(x.s+x.t)<dis(y.s+y.t);
                    ^
0_0_30652769_17231.cpp:26:20: note: candidates are:
0_0_30652769_17231.cpp:9:8: note: double dis(point, point)
 double dis(point a,point b){return abs(a-b);}
        ^
0_0_30652769_17231.cpp:9:8: note:   candidate expects 2 arguments, 1 provided
0_0_30652769_17231.cpp:18:8: note: double dis(point, line)
 double dis(point p,line ln){return fabs(cross(p,ln.s,ln.t))/len(ln);}
        ^
0_0_30652769_17231.cpp:18:8: note:   candidate expects 2 arguments, 1 provided
0_0_30652769_17231.cpp:26:33: error: no matching function for call to 'dis(std::complex<double>)'
  return dis(x.s+x.t)<dis(y.s+y.t);
                                 ^
0_0_30652769_17231.cpp:26:33: note: candidates are:
0_0_30652769_17231.cpp:9:8: note: double dis(point, point)
 double dis(point a,point b){return abs(a-b);}
        ^
0_0_30652769_17231.cpp:9:8: note:   candidate expects 2 arguments, 1 provided
0_0_30652769_17231.cpp:18:8: note: double dis(point, line)
 double dis(point p,line ln){return fabs(cross(p,ln.s,ln.t))/len(ln);}
        ^
0_0_30652769_17231.cpp:18:8: note:   candidate expects 2 arguments, 1 provided


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-28 12:46:24, Gzip enabled