Problem | lis_easy |
---|---|
User | kashsinghal |
Submission Time | 2023-11-10 09:44:11 |
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:18:5: error: conflicting declaration ‘int arr [LIS]’
18 | int arr[LIS];
| ^~~
lis_easy.cpp:10:5: note: previous declaration as ‘int arr [n]’
10 | int arr[n];
| ^~~
lis_easy.cpp:23:5: error: ‘i’ was not declared in this scope
23 | f(n[i] < n[LIS]);
| ^
lis_easy.cpp:23:15: error: invalid types ‘int[int]’ for array subscript
23 | f(n[i] < n[LIS]);
| ^
lis_easy.cpp:23:1: error: ‘f’ was not declared in this scope
23 | f(n[i] < n[LIS]);
| ^
lis_easy.cpp:24:27: error: invalid types ‘int[int]’ for array subscript
24 | LIS[i] = max(LIS[i], LIS[n]+1);
| ^
lis_easy.cpp:28:1: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
28 | ans = max(ans, LIS[i]);
| ^~~
| abs