Record Detail

Runtime Error

/in/polynomial.cpp: In copy constructor 'Polynomial::Polynomial(const Polynomial&)':
/in/polynomial.cpp:10:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < that.degree; i++){
                     ~~^~~~~~~~~~~~~
/in/polynomial.cpp: In member function 'Polynomial& Polynomial::operator=(const Polynomial&)':
/in/polynomial.cpp:23:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < that.degree; i++){
                     ~~^~~~~~~~~~~~~
/in/polynomial.cpp: In member function 'Polynomial Polynomial::operator*(const Polynomial&)':
/in/polynomial.cpp:44:23: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
     for (int i = 0; i < this->degree; i++){
                     ~~^~~~~~~~~~~~~~
/in/polynomial.cpp:45:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
         for (int j = 0; j < that.degree; j++){
                         ~~^~~~~~~~~~~~~
# Status Time Cost Memory Cost
#1 Runtime Error (1) 25ms 7.352 MiB
#2 Runtime Error (1) 25ms 7.41 MiB
#3 Runtime Error (1) 25ms 7.371 MiB
#4 Runtime Error (1) 25ms 7.363 MiB
#5 Runtime Error (1) 26ms 7.371 MiB

Information

Submit By
Type
Submission
Homework
Exercise 7
Language
C++
Submit At
2022-11-27 12:16:11
Judged At
2022-11-27 12:16:11
Judged By
Score
0
Total Time
129ms
Peak Memory
7.41 MiB