/in/ex5.cpp: In constructor 'bookInventory::bookInventory(int)':
/in/ex5.cpp:24:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < size; i++) {
~~^~~~~~
/in/ex5.cpp: In member function 'void bookInventory::removeBook(int)':
/in/ex5.cpp:47:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if (ID <= 0 || ID > numBooks) {
~~~^~~~~~~~~~
/in/ex5.cpp:50:28: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = ID - 1; i < numBooks - 1; i++) {
~~^~~~~~~~~~~~~~
/in/ex5.cpp: In member function 'void bookInventory::printInventory() const':
/in/ex5.cpp:65:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < numBooks; i++) {
~~^~~~~~~~~~
/in/ex5.cpp: In member function 'bool bookInventory::repOK()':
/in/ex5.cpp:76:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < size; i++) {
~~^~~~~~
/in/ex5.cpp:85:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; i < numBooks - 1; i++) {
~~^~~~~~~~~~~~~~
/in/ex5.cpp:92:30: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = numBooks; 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