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

Compile Error

lis_easy.cpp: In function ‘int32_t main()’:
lis_easy.cpp:13:7: error: ‘a’ was not declared in this scope
13 | if (a[j] < a[i]) { //array value lower than me
| ^
lis_easy.cpp:13:9: error: ‘j’ was not declared in this scope
13 | if (a[j] < a[i]) { //array value lower than me
| ^
lis_easy.cpp:13:16: error: ‘i’ was not declared in this scope
13 | if (a[j] < a[i]) { //array value lower than me
| ^
lis_easy.cpp:14:4: error: ‘LIS’ was not declared in this scope
14 | LIS[i]= max(LIS[i], LIS[j]+1);//choose the best
| ^~~
lis_easy.cpp:19:2: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
19 | ans = max(ans, LIS[i]);
| ^~~
| abs
lis_easy.cpp:19:17: error: ‘LIS’ was not declared in this scope
19 | ans = max(ans, LIS[i]);
| ^~~
lis_easy.cpp: At global scope:
lis_easy.cpp:21:2: error: ‘cout’ d