Record Detail

Compile Error

/tmp/ccuZ8KeG.o: In function `Polynomial::isEmpty() const':
polynomial_func.cpp:(.text+0x1c): multiple definition of `Polynomial::isEmpty() const'
/tmp/cck9PBMh.o:polynomial.cpp:(.text+0x9b8): first defined here
/tmp/ccuZ8KeG.o: In function `Polynomial::getCoefficient(unsigned int) const':
polynomial_func.cpp:(.text+0xb0): multiple definition of `Polynomial::getCoefficient(unsigned int) const'
/tmp/cck9PBMh.o:polynomial.cpp:(.text+0xa4c): first defined here
/tmp/ccuZ8KeG.o: In function `Polynomial::setCoefficient(unsigned int, int)':
polynomial_func.cpp:(.text+0x460): multiple definition of `Polynomial::setCoefficient(unsigned int, int)'
/tmp/cck9PBMh.o:polynomial.cpp:(.text+0x53e): first defined here
/tmp/ccuZ8KeG.o: In function `Polynomial::print() const':
polynomial_func.cpp:(.text+0x96e): multiple definition of `Polynomial::print() const'
/tmp/cck9PBMh.o:polynomial.cpp:(.text+0xe78): first defined here
/tmp/ccuZ8KeG.o: In function `Polynomial::getDegree() const':
polynomial_func.cpp:(.text+0x18a2): multiple definition of `Polynomial::getDegree() const'
/tmp/cck9PBMh.o:polynomial.cpp:(.text+0x19ae): first defined here
collect2: error: ld returned 1 exit status

Information

Submit By
Type
Submission
Homework
Exercise 6
Language
C++
Submit At
2022-11-15 14:18:37
Judged At
2022-11-24 14:04:04
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes