Problem lis_easy
User yuhannp
Submission Time 2026-06-14 17:03:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp:3:9: error: ‘vector’ was not declared in this scope
3 | int lis(vector<int>& arr) {
| ^~~~~~
lis_easy.cpp:1:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
+++ |+#include <vector>
1 | using namespace std;
lis_easy.cpp:3:16: error: expected primary-expression before ‘int’
3 | int lis(vector<int>& arr) {
| ^~~
lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:23:2: error: ‘cin’ was not declared in this scope
23 | cin >> a;
| ^~~
lis_easy.cpp:1:1: note: ‘std::cin’ is defined in header ‘<iostream>’; did you forget to ‘#include <iostream>’?
+++ |+#include <iostream>
1 | using namespace std;
lis_easy.cpp:24:2: error: ‘vector’ was not declared in this scope
24 | vector<int> dih;
| ^~~~~~
lis_easy.cpp:24:2: note: ‘std::vector’ is defined in