Record Detail

Compile Error

/in/ex5.cpp: In constructor 'bookInventory::bookInventory(int)':
/in/ex5.cpp:15:32: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     for (unsigned int i = 0; i < maxBooks; i++)
                              ~~^~~~~~~~~~
/in/ex5.cpp: In member function 'bool bookInventory::repOK()':
/in/ex5.cpp:29:50: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     for (unsigned int i = 0; static_cast<int>(i) < size; i++)
                              ~~~~~~~~~~~~~~~~~~~~^~~~~~
cc1plus: all warnings being treated as errors
/in/compile/Makefile:26: recipe for target 'ex5.o' failed
make: *** [ex5.o] Error 1

Information

Submit By
Type
Submission
Homework
Exercise 5
Language
C++
Submit At
2024-11-26 23:12:58
Judged At
2024-11-26 23:12:58
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes