Problem lis_easy
User pearl333
Submission Time 2025-02-19 16:24:54
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp: In function ‘int lis(int)’:
lis_easy.cpp:5:6: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
5 | if (ans[n]!=-1) {
| ^~~
| abs
lis_easy.cpp:8:2: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
8 | ans[n]=1;
| ^~~
| abs
lis_easy.cpp:10:7: error: ‘arr’ was not declared in this scope
10 | if (arr[i]<arr[n]) {
| ^~~