Problem | lis_easy |
---|---|
User | AppleOnAstick |
Submission Time | 2023-11-10 10:05:42 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
lis_easy.cpp: In function ‘int32_t main()’:
lis_easy.cpp:14:11: error: ‘j’ was not declared in this scope
14 | if (arr[j] < arr[i]) { //array value lower than me
| ^
lis_easy.cpp:14:20: error: ‘i’ was not declared in this scope
14 | if (arr[j] < arr[i]) { //array value lower than me
| ^
lis_easy.cpp:15:4: error: ‘LIS’ was not declared in this scope
15 | LIS[i]= max(LIS[i], LIS[j]+1);//choose the best
| ^~~
lis_easy.cpp:20:2: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
20 | ans = max(ans, LIS[i]);
| ^~~
| abs
lis_easy.cpp:20:17: error: ‘LIS’ was not declared in this scope
20 | ans = max(ans, LIS[i]);
| ^~~
lis_easy.cpp: At global scope:
lis_easy.cpp:22:2: error: ‘cout’ does not name a type
22 | cout << ans;
| ^~~~
lis_easy.cpp:23:2: error: expected unqualified-id before ‘re