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
|