Problem lis_easy
User xiachengruisg
Submission Time 2026-10-29 23:24:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:9:28: error: ‘n’ was not declared in this scope
9 | for (long long i = 0; i < n; i++){
| ^
lis_easy.cpp:16:17: error: ‘dp’ was not declared in this scope
16 | arr[i] = max(dp[i], dp[j]+1);
| ^~
lis_easy.cpp:25:10: error: ‘y’ was not declared in this scope; did you mean ‘yn’?
25 | cout << y;
| ^
| yn