Problem lis_easy
User lexuantung71
Submission Time 2024-07-16 08:34:51
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:18:28: error: ‘j’ was not declared in this scope
18 | if (myvec[o] < myvec[j]){
| ^
lis_easy.cpp:19:24: error: ‘vec’ was not declared in this scope; did you mean ‘vec1’?
19 | vec1[i] += max(vec[i], vec[o]+1);
| ^~~
| vec1
lis_easy.cpp:19:40: error: ‘max’ cannot be used as a function
19 | vec1[i] += max(vec[i], vec[o]+1);
| ^