Record Detail

Runtime Error

/in/polynomial.cpp: In copy constructor 'Polynomial::Polynomial(const Polynomial&)':
/in/polynomial.cpp:10:16: 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:22:16: 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:33:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0; i<=that.degree; i++){
                ~^~~~~~~~~~~~~
/in/polynomial.cpp:39:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0; i<=that.degree ;i++){
                ~^~~~~~~~~~~~~
/in/polynomial.cpp:42:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
   for(int i=0; i<=this->degree ;i++){
                ~^~~~~~~~~~~~~~
/in/polynomial.cpp:50:17: 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:67:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<=this->degree;i++){
              ~^~~~~~~~~~~~~~
/in/polynomial.cpp:68:16: 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) 32ms 8.68 MiB
#2 Runtime Error (1) 40ms 8.828 MiB
#3 Runtime Error (1) 26ms 7.418 MiB
#4 Runtime Error (1) 26ms 7.379 MiB
#5 Runtime Error (1) 26ms 7.344 MiB

Information

Submit By
Type
Submission
Homework
Exercise 7
Language
C++
Submit At
2022-11-26 16:39:36
Judged At
2022-11-26 16:39:36
Judged By
Score
0
Total Time
151ms
Peak Memory
8.828 MiB