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

Compile Error

lis_easy.cpp: In function ‘int lis(int)’:
lis_easy.cpp:8:5: error: ‘dp’ was not declared in this scope
8 | if (dp[idx] != -1) return dp[idx];
| ^~
lis_easy.cpp:11:14: 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;
| ^~
lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:23:6: error: expected ‘;’ before ‘dp’
23 | cin dp[i];
| ^~~
| ;