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

Compile Error

lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:11:22: error: ‘i’ was not declared in this scope
11 | for (int j = 0; j < i; j++){
| ^
lis_easy.cpp:14:8: error: ‘j’ was not declared in this scope
14 | if( A[j] < A[i] ){
| ^
lis_easy.cpp:14:15: error: ‘i’ was not declared in this scope
14 | if( A[j] < A[i] ){
| ^
lis_easy.cpp:17:9: error: ‘i’ was not declared in this scope
17 | if(LIS[i] == 0) {
| ^
lis_easy.cpp:21:3: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
21 | ans = max(ans, LIS[i]);
| ^~~
| abs
lis_easy.cpp:23:10: error: expected ‘;’ before ‘}’ token
23 | return 0
| ^
| ;
24 | }
| ~