Problem lis_easy
User AltheaZ
Submission Time 2023-06-28 12:28:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:7:2: error: ‘vector’ was not declared in this scope
7 | vector<int>arr(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 | using namespace std;
lis_easy.cpp:7:9: error: expected primary-expression before ‘int’
7 | vector<int>arr(n);
| ^~~
lis_easy.cpp:9:8: error: ‘arr’ was not declared in this scope
9 | cin>>arr[i];
| ^~~
lis_easy.cpp:14:7: error: ‘arr’ was not declared in this scope
14 | if (arr[j]>arr[j-1]){
| ^~~