Record Detail

Compile Error

/in/HW7.cpp: In function 'int search(std::vector<int>, int)':
/in/HW7.cpp:9:19: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     for (int i=0;i<v.size();i++){
                  ~^~~~~~~~~
/in/HW7.cpp: In member function 'void BOOK::list()':
/in/HW7.cpp:41:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for (int i=0;i<ID.size();i++){
                      ~^~~~~~~~~~
/in/HW7.cpp: In member function 'void CUSTOMER::list()':
/in/HW7.cpp:54:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         for (int i=0;i<ID.size();i++){
                      ~^~~~~~~~~~
/in/HW7.cpp: In function 'int main()':
/in/HW7.cpp:108:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
             for (int i=0;i<book.title.size();i++){
                          ~^~~~~~~~~~~~~~~~~~
/in/HW7.cpp:124:27: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
             for (int i=0;i<book.ID.size();i++){
                          ~^~~~~~~~~~~~~~~
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
HW7
Language
C++
Submit At
2021-12-01 16:29:29
Judged At
2021-12-01 16:29:29
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes