/in/ex5.cpp: In constructor 'bookInventory::bookInventory(int)':
/in/ex5.cpp:33:38: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if (maxBooks < 1 || maxBooks > MAX_BOOKS) {
~~~~~~~~~^~~~~~~~~~~
/in/ex5.cpp: In member function 'void bookInventory::removeBook(int)':
/in/ex5.cpp:56:26: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
if (ID < 1 || ID > size) {
~~~^~~~~~
/in/ex5.cpp:61:31: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = index; i < size - 1; i++) {
~~^~~~~~~~~~
/in/ex5.cpp: In member function 'void bookInventory::printInventory() const':
/in/ex5.cpp:72:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
for (int i = 0; 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