Record Detail

Compile Error

/in/circle.cpp:5:1: error: redefinition of 'Circle::Circle(double, double, double)'
 Circle::Circle(double x, double y, double r): centerX(x), centerY(y),radius(r){}
 ^~~~~~
In file included from /in/circle.cpp:3:0:
/in/compile/circle.h:12:5: note: 'Circle::Circle(double, double, double)' previously defined here
     Circle(double x, double y, double r):centerX(x),centerY(y),radius(r){}
     ^~~~~~
/in/circle.cpp: In member function 'int Circle::isIntersect(Circle&)':
/in/circle.cpp:12:30: error: a function-definition is not allowed here before '{' token
     void setX(double centerX){
                              ^
/in/circle.cpp:16:30: error: a function-definition is not allowed here before '{' token
     void setY(double centerY){
                              ^

Information

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