Problem lis_easy
User kashsinghal
Submission Time 2023-11-10 09:41:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp: In function ‘int32_t main()’:
lis_easy.cpp:19:5: error: conflicting declaration ‘long long int arr [A]’
19 | int arr[A];
| ^~~
lis_easy.cpp:11:5: note: previous declaration as ‘long long int arr [n]’
11 | int arr[n];
| ^~~
lis_easy.cpp:25:6: error: ‘i’ was not declared in this scope
25 | f( A[i] < A[n]);
| ^
lis_easy.cpp:25:14: error: invalid types ‘long long int[long long int]’ for array subscript
25 | f( A[i] < A[n]);
| ^
lis_easy.cpp:25:1: error: ‘f’ was not declared in this scope
25 | f( A[i] < A[n]);
| ^
lis_easy.cpp:26:27: error: invalid types ‘long long int[long long int]’ for array subscript
26 | LIS[i] = max(LIS[i], LIS[n]+1);
| ^
lis_easy.cpp:30:1: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
30 | ans = max(ans, LIS[i]);
| ^~~
| abs