Problem lis_easy
User christal
Submission Time 2023-12-20 15:53:25
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:8:4: 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:11:50: error: ‘lis’ cannot be used as a function
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:16:28: error: ‘lis’ cannot be used as a function
16 | int ans = max(ans, lis(i));
| ^