Problem | lis_easy |
---|---|
User | Schzeey |
Submission Time | 2023-02-17 19:58:29 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lis_easy.cpp: In function ‘int longestIncreasingSequence(int*, int)’:
lis_easy.cpp:8:17: error: ‘dp_arr’ was not declared in this scope
8 | dp_arr [i] = max(dp_arr[i], dp_arr[j]+1);
| ^~~~~~
lis_easy.cpp:12:34: error: expected ‘;’ before ‘}’ token
12 | return *max_element(dp, dp+n)
| ^
| ;
13 | }
| ~