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:28:47: error: expected identifier before '(' token
             if((arr[j-1]==0)||(arr[j+1]==0))&&(arr[j]>t){
                                               ^
/in/detector.h:28:47: error: taking the address of a label is non-standard [-Werror=pedantic]
/in/detector.h:16:34: error: unused parameter 'inputArray' [-Werror=unused-parameter]
     void maxDetector(vector<int> inputArray){
                                  ^~~~~~~~~~
cc1plus: all warnings being treated as errors

Information

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