Record Detail

Compile Error

/in/circle.cpp: In member function 'int Circle::isIntersect(Circle&)':
/in/circle.cpp:9:32: error: no match for 'operator[]' (operand types are 'Circle' and 'size_t {aka long unsigned int}')
             double centerX1 = c[i].centerX;
                                ^
/in/circle.cpp:10:32: error: no match for 'operator[]' (operand types are 'Circle' and 'size_t {aka long unsigned int}')
             double centerY1 = c[i].centerY;
                                ^
/in/circle.cpp:11:32: error: no match for 'operator[]' (operand types are 'Circle' and 'size_t {aka long unsigned int}')
             double centerX2 = c[i+j].centerX;
                                ^
/in/circle.cpp:12:32: error: no match for 'operator[]' (operand types are 'Circle' and 'size_t {aka long unsigned int}')
             double centerY2 = c[i+j].centerY;
                                ^
/in/circle.cpp:13:31: error: no match for 'operator[]' (operand types are 'Circle' and 'size_t {aka long unsigned int}')
             double radius1 = c[i].radius;
                               ^
/in/circle.cpp:14:31: error: no match for 'operator[]' (operand types are 'Circle' and 'size_t {aka long unsigned int}')
             double radius2 = c[i+j].radius;
                               ^

Information

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