Problem lis_easy
User AppleOnAstick
Submission Time 2023-11-10 10:33:11
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp: In function ‘int32_t main()’:
lis_easy.cpp:15:19: error: ‘i’ was not declared in this scope
15 | for (int j=0; j<i; j++){
| ^
lis_easy.cpp:26:2: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
26 | ans = max(ans, lis[i]);
| ^~~
| abs
lis_easy.cpp:28:10: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
28 | cout << ans;
| ^~~
| abs