Problem | lis_easy |
---|---|
User | fwyr |
Submission Time | 2023-02-23 22:01:11 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:3:1: error: ‘vector’ was not declared in this scope
3 | vector<int> A(10000), lis(10000);
| ^~~~~~
lis_easy.cpp:3:8: error: expected primary-expression before ‘int’
3 | vector<int> A(10000), lis(10000);
| ^~~
lis_easy.cpp:5:1: error: ‘cin’ was not declared in this scope
5 | cin >> n;
| ^~~
lis_easy.cpp:7:12: error: ‘A’ was not declared in this scope
7 | cin >> A[i];
| ^
lis_easy.cpp:11:5: error: ‘lis’ was not declared in this scope
11 | lis[i] = 1;
| ^~~
lis_easy.cpp:13:13: error: ‘A’ was not declared in this scope
13 | if (A[j] < A[i]) {
| ^
lis_easy.cpp:14:22: error: ‘max’ was not declared in this scope
14 | lis[i] = max(lis[i], lis[j] + 1);
| ^~~
lis_easy.cpp:17:11: error: ‘max’ was not decla