Record Detail

Compile Error

In file included from /in/main/main.cpp:3:0:
/in/detector.h: In member function 'void Detector::maxDetector(std::vector<int>)':
/in/detector.h:18:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     for (int i = 0; i < inputArray.size(); i++) {
                     ~~^~~~~~~~~~~~~~~~~~~
/in/detector.h:21:23: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
     for (int j = 0; j < zero.size(); j++) {
                     ~~^~~~~~~~~~~~~
/in/detector.h:23:26: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare]
         else if (zero[j] == inputArray.size()) adjacent.push_back(inputArray[j - 1]);
cc1plus: all warnings being treated as errors

Information

Submit By
Type
Submission
Homework
Final Exam
Language
C++
Submit At
2020-08-07 17:30:41
Judged At
2020-08-09 18:19:22
Judged By
Score
0
Total Time
0ms
Peak Memory
0 Bytes