Problem lis_easy
User Maggie
Submission Time 2023-11-10 10:29:53
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:20:3: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
20 | ans = max(ans, LIS[i]);
| ^~~
| abs
lis_easy.cpp:22:10: error: expected ‘;’ before ‘}’ token
22 | return 0
| ^
| ;
23 | }
| ~