0_0_39080514_20561.cpp: In function 'bool point_on_halfline(Point, Line)':
0_0_39080514_20561.cpp:116:14: error: reference to 'relation' is ambiguous
116 | int id = relation (p, l);
| ^~~~~~~~
In file included from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/compare:37,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_pair.h:65,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/stl_algobase.h:64,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/bits/specfun.h:43,
from gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/cmath:3716,
from 0_0_39080514_20561.cpp:2:
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/concepts:365:13: note: candidates are: 'template<class _Rel, class _Tp, class _Up> concept std::relation'
365 | concept relation
| ^~~~~~~~
0_0_39080514_20561.cpp:107:5: note: 'int relation(Point, Line)'
107 | int relation (Point p, Line l) {//点和直线的关系
| ^~~~~~~~
0_0_39080514_20561.cpp: In function 'int line_cross_line(Line, Line)':
0_0_39080514_20561.cpp:154:33: error: reference to 'relation' is ambiguous
154 | if (parallel (a, v)) return relation (a.e, v) == 3;
| ^~~~~~~~
gcc-13.1.0/lib/gcc/x86_64-w64-mingw32/13.1.0/include/c++/concepts:365:13: note: candidates are: 'template<class _Rel, class _Tp, class _Up> concept std::relation'
365 | concept relation
| ^~~~~~~~
0_0_39080514_20561.cpp:107:5: note: 'int relation(Point, Line)'
107 | int relation (Point p, Line l) {//点和直线的关系
| ^~~~~~~~
|