0_0_36454808_19954.cpp: In function 'double cl_inter(circle, circle)':
0_0_36454808_19954.cpp:48:37: error: 'struct circle' has no member named 'c'
double r = a.r, R = b.r, d = (a.c - b.c).len();
^
0_0_36454808_19954.cpp:48:43: error: 'struct circle' has no member named 'c'
double r = a.r, R = b.r, d = (a.c - b.c).len();
^
0_0_36454808_19954.cpp: In function 'int main()':
0_0_36454808_19954.cpp:72:42: error: no matching function for call to 'circle::circle(double&, point&)'
double ans = cl_inter(circle(R, a), circle(R, b)); //大圆交面积
^
0_0_36454808_19954.cpp:72:42: note: candidates are:
0_0_36454808_19954.cpp:38:8: note: circle::circle()
struct circle
^
0_0_36454808_19954.cpp:38:8: note: candidate expects 0 arguments, 2 provided
0_0_36454808_19954.cpp:38:8: note: constexpr circle::circle(const circle&)
0_0_36454808_19954.cpp:38:8: note: candidate expects 1 argument, 2 provided
0_0_36454808_19954.cpp:38:8: note: constexpr circle::circle(circle&&)
0_0_36454808_19954.cpp:38:8: note: candidate expects 1 argument, 2 provided
0_0_36454808_19954.cpp:72:56: error: no matching function for call to 'circle::circle(double&, point&)'
double ans = cl_inter(circle(R, a), circle(R, b)); //大圆交面积
^
0_0_36454808_19954.cpp:72:56: note: candidates are:
0_0_36454808_19954.cpp:38:8: note: circle::circle()
struct circle
^
0_0_36454808_19954.cpp:38:8: note: candidate expects 0 arguments, 2 provided
0_0_36454808_19954.cpp:38:8: note: constexpr circle::circle(const circle&)
0_0_36454808_19954.cpp:38:8: note: candidate expects 1 argument, 2 provided
0_0_36454808_19954.cpp:38:8: note: constexpr circle::circle(circle&&)
0_0_36454808_19954.cpp:38:8: note: candidate expects 1 argument, 2 provided
0_0_36454808_19954.cpp:73:40: error: no matching function for call to 'circle::circle(double&, point&)'
ans -= 2 * cl_inter(circle(R, a), circle(r, b)); //大圆与小圆交面积
^
0_0_36454808_19954.cpp:73:40: note: candidates are:
0_0_36454808_19954.cpp:38:8: note: circle::circle()
struct circle
^
0_0_36454808_19954.cpp:38:8: note: candidate expects 0 arguments, 2 provided
0_0_36454808_19954.cpp:38:8: note: constexpr circle::circle(const circle&)
0_0_36454808_19954.cpp:38:8: note: candidate expects 1 argument, 2 provided
0_0_36454808_19954.cpp:38:8: note: constexpr circle::circle(circle&&)
0_0_36454808_19954.cpp:38:8: note: candidate expects 1 argument, 2 provided
0_0_36454808_19954.cpp:73:54: error: no matching function for call to 'circle::circle(double&, point&)'
ans -= 2 * cl_inter(circle(R, a), circle(r, b)); //大圆与小圆交面积
^
0_0_36454808_19954.cpp:73:54: note: candidates are:
0_0_36454808_19954.cpp:38:8: note: circle::circle()
struct circle
^
0_0_36454808_19954.cpp:38:8: note: candidate expects 0 arguments, 2 provided
0_0_36454808_19954.cpp:38:8: note: constexpr circle::circle(const circle&)
0_0_36454808_19954.cpp:38:8: note: candidate expects 1 argument, 2 provided
0_0_36454808_19954.cpp:38:8: note: constexpr circle::circle(circle&&)
0_0_36454808_19954.cpp:38:8: note: candidate expects 1 argument, 2 provided
0_0_36454808_19954.cpp:74:36: error: no matching function for call to 'circle::circle(double&, point&)'
ans += cl_inter(circle(r, a), circle(r, b)); //小圆交面积
^
0_0_36454808_19954.cpp:74:36: note: candidates are:
0_0_36454808_19954.cpp:38:8: note: circle::circle()
struct circle
^
0_0_36454808_19954.cpp:38:8: note: candidate expects 0 arguments, 2 provided
0_0_36454808_19954.cpp:38:8: note: constexpr circle::circle(const circle&)
0_0_36454808_19954.cpp:38:8: note: candidate expects 1 argument, 2 provided
0_0_36454808_19954.cpp:38:8: note: constexpr circle::circle(circle&&)
0_0_36454808_19954.cpp:38:8: note: candidate expects 1 argument, 2 provided
0_0_36454808_19954.cpp:74:50: error: no matching function for call to 'circle::circle(double&, point&)'
ans += cl_inter(circle(r, a), circle(r, b)); //小圆交面积
^
0_0_36454808_19954.cpp:74:50: note: candidates are:
0_0_36454808_19954.cpp:38:8: note: circle::circle()
struct circle
^
0_0_36454808_19954.cpp:38:8: note: candidate expects 0 arguments, 2 provided
0_0_36454808_19954.cpp:38:8: note: constexpr circle::circle(const circle&)
0_0_36454808_19954.cpp:38:8: note: candidate expects 1 argument, 2 provided
0_0_36454808_19954.cpp:38:8: note: constexpr circle::circle(circle&&)
0_0_36454808_19954.cpp:38:8: note: candidate expects 1 argument, 2 provided
|