Problem malcolm
User Mashulyong
Submission Time 2023-07-21 14:23:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

malcolm.cpp: In function ‘int main()’:
malcolm.cpp:27:5: error: ‘vector’ was not declared in this scope
27 | vector<string> names(N);
| ^~~~~~
malcolm.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 |
malcolm.cpp:27:18: error: expected primary-expression before ‘>’ token
27 | vector<string> names(N);
| ^
malcolm.cpp:27:20: error: ‘names’ was not declared in this scope
27 | vector<string> names(N);
| ^~~~~