Problem lis_easy
User chiefoggy
Submission Time 2023-12-20 15:57:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp: In function ‘int lis(int)’:
lis_easy.cpp:8:9: error: ‘dp’ was not declared in this scope
8 | if (dp[idx] != -1) return dp[idx];
| ^~
lis_easy.cpp:11:13: error: ‘arr’ was not declared in this scope
11 | if (arr[i] < arr[idx]) extend = max(lis(i), extend);
| ^~~
lis_easy.cpp:13:12: error: ‘dp’ was not declared in this scope
13 | return dp[idx] = extend + 1;
| ^~