F.A.Q
Hand In Hand
Online Acmers
Problem Archive
Realtime Judge Status
Authors Ranklist
 
     C/C++/Java Exams     
ACM Steps
Go to Job
Contest LiveCast
ICPC@China
Best Coder beta
VIP | STD Contests
    DIY | Web-DIY beta
Author ID 
Password 
 Register new ID

View Compilation Error

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


Hangzhou Dianzi University Online Judge 3.0
Copyright © 2005-2024 HDU ACM Team. All Rights Reserved.
Designer & Developer : Wang Rongtao LinLe GaoJie GanLu
Total 0.000000(s) query 1, Server time : 2024-11-16 20:50:14, Gzip enabled