0_0_38766423_1500.cpp: In function 'double distance_point_to_segment(Point&, Point&, Point&)':
0_0_38766423_1500.cpp:46:17: error: cannot bind non-const lvalue reference of type 'Point&' to an rvalue of type 'Point'
46 | if(dot(A-B,BP)<=0)return len(BP);//|BP|
| ~^~
0_0_38766423_1500.cpp:32:19: note: initializing argument 1 of 'double dot(Point&, Point&)'
32 | double dot(Point& A,Point& B){return A.x*B.x+A.y*B.y;}//µã³Ë|OA||OB|cos<OA,OB>
| ~~~~~~~^
|