Record Detail

Compile Error

In file included from /in/main/main.cpp:3:0:
/in/detector.h:7:2: error: 'vector' does not name a type; did you mean 'Detector'?
  vector <int> inputArray;
  ^~~~~~
  Detector
/in/detector.h:8:19: error: 'vector' has not been declared
  void maxDetector(vector<int> inputArray);
                   ^~~~~~
/in/detector.h:8:25: error: expected ',' or '...' before '<' token
  void maxDetector(vector<int> inputArray);
                         ^
/in/main/main.cpp: In function 'int main()':
/in/main/main.cpp:18:33: error: no matching function for call to 'Detector::maxDetector(std::vector<int>&)'
         Detector().maxDetector(q);
                                 ^
In file included from /in/main/main.cpp:3:0:
/in/detector.h:8:7: note: candidate: void Detector::maxDetector(int)
  void maxDetector(vector<int> inputArray);
       ^~~~~~~~~~~
/in/detector.h:8:7: note:   no known conversion for argument 1 from 'std::vector<int>' to 'int'

Information

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