0_0_17389517_24772.cpp: In function 'double get_val(point&, point&, point&)':
0_0_17389517_24772.cpp:67:28: error: no matching function for call to 'point::multi_dot(point)'
if ((a-b).multi_dot(c-b)<=0) return a.dis(b);
^
0_0_17389517_24772.cpp:67:28: note: candidate is:
0_0_17389517_24772.cpp:51:12: note: double point::multi_dot(point&)
double multi_dot(point &a)
^
0_0_17389517_24772.cpp:51:12: note: no known conversion for argument 1 from 'point' to 'point&'
0_0_17389517_24772.cpp:68:28: error: no matching function for call to 'point::multi_dot(point)'
if ((a-c).multi_dot(b-c)<=0) return a.dis(c);
^
0_0_17389517_24772.cpp:68:28: note: candidate is:
0_0_17389517_24772.cpp:51:12: note: double point::multi_dot(point&)
double multi_dot(point &a)
^
0_0_17389517_24772.cpp:51:12: note: no known conversion for argument 1 from 'point' to 'point&'
0_0_17389517_24772.cpp: In function 'bool try_best_ans(double)':
0_0_17389517_24772.cpp:103:68: error: invalid initialization of non-const reference of type 'point&' from an rvalue of type 'point'
if (cross(point(newx,newy),point(newx,1e18),a[i],a[i+1])) flag^=1;
^
0_0_17389517_24772.cpp:59:8: note: in passing argument 1 of 'double cross(point&, point&, point&, point&)'
double cross(point &a,point &b,point &c,point &d)
^
0_0_17389517_24772.cpp:109:63: error: invalid initialization of non-const reference of type 'point&' from an rvalue of type 'point'
mins=min(mins,get_val(point(newx,newy),a[i],a[i+1]));
^
0_0_17389517_24772.cpp:65:8: note: in passing argument 1 of 'double get_val(point&, point&, point&)'
double get_val(point &a,point &b,point &c)
^
|