Compile Error
/in/ex5.cpp: In member function 'bool bookInventory::repOK()': /in/ex5.cpp:20:16: error: comparison of unsigned expression < 0 is always false [-Werror=type-limits] if(numBooks<0||numBooks>size)return false; ~~~~~~~~^~ /in/ex5.cpp:21:12: error: comparison of unsigned expression < 0 is always false [-Werror=type-limits] if(size<0||size>MAX_BOOKS)return false; ~~~~^~ 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-28 20:51:07
- Judged At
- 2024-11-28 20:51:07
- Judged By
- Score
- 0
- Total Time
- 0ms
- Peak Memory
- 0 Bytes