Problem lis_easy
User Hijackedsoul
Submission Time 2023-08-07 18:00:35
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:8:10: error: ‘vector’ is not a member of ‘std’
8 | std::vector<int> a(N);
| ^~~~~~
lis_easy.cpp:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include <iostream>
+++ |+#include <vector>
2 |
lis_easy.cpp:8:17: error: expected primary-expression before ‘int’
8 | std::vector<int> a(N);
| ^~~
lis_easy.cpp:9:10: error: ‘vector’ is not a member of ‘std’
9 | std::vector<int> lis(N, 1);
| ^~~~~~
lis_easy.cpp:9:10: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
lis_easy.cpp:9:17: error: expected primary-expression before ‘int’
9 | std::vector<int> lis(N, 1);
| ^~~
lis_easy.cpp:12:21: error: ‘a’ was not declared in thi