Record Detail

Compile Error

/in/circle.cpp: In member function 'int Circle::isIntersect(Circle&)':
/in/circle.cpp:9:34: error: 'class Circle' has no member named 'getX'
     double distance = sqrt(pow(c.getX() - x, 2) + pow(c.getY() - y, 2));
                                  ^~~~
/in/circle.cpp:9:43: error: 'x' was not declared in this scope
     double distance = sqrt(pow(c.getX() - x, 2) + pow(c.getY() - y, 2));
                                           ^
/in/circle.cpp:9:57: error: 'class Circle' has no member named 'getY'
     double distance = sqrt(pow(c.getX() - x, 2) + pow(c.getY() - y, 2));
                                                         ^~~~
/in/circle.cpp:9:66: error: 'y' was not declared in this scope
     double distance = sqrt(pow(c.getX() - x, 2) + pow(c.getY() - y, 2));
                                                                  ^
/in/circle.cpp:9:66: note: suggested alternative: 'yn'
     double distance = sqrt(pow(c.getX() - x, 2) + pow(c.getY() - y, 2));
                                                                  ^
                                                                  yn
/in/circle.cpp:10:36: error: 'class Circle' has no member named 'getRadius'; did you mean 'radius'?
     return distance <= (radius + c.getRadius()); //can implement get Radius get x and y
                                    ^~~~~~~~~
                                    radius

Information

Submit By
Type
Submission
Language
C++
Submit At
2024-08-13 20:03:08
Judged At
2024-08-13 20:03:08
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes