Problem lis_easy
User kashsinghal
Submission Time 2023-11-10 09:41:08
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:24:6: error: ‘i’ was not declared in this scope
24 | f( A[i] < A[n] )
| ^
lis_easy.cpp:24:14: error: invalid types ‘long long int[long long int]’ for array subscript
24 | f( A[i] < A[n] )
| ^
lis_easy.cpp:24:1: error: ‘f’ was not declared in this scope
24 | f( A[i] < A[n] )
| ^
lis_easy.cpp:29:1: error: ‘ans’ was not declared in this scope; did you mean ‘abs’?
29 | ans = max(ans, LIS[i]);
| ^~~
| abs
lis_easy.cpp:29:16: error: ‘LIS’ was not declared in this scope
29 | ans = max(ans, LIS[i]);
| ^~~