Problem lis_easy
User C0D3X
Submission Time 2024-02-02 15:23:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:6:12: error: expected unqualified-id before ‘int’
6 | int A, int LIS[n];
| ^~~
lis_easy.cpp:7:17: error: ‘LIS’ was not declared in this scope
7 | cin >> A >> LIS[n];
| ^~~
lis_easy.cpp:7:21: error: ‘n’ was not declared in this scope
7 | cin >> A >> LIS[n];
| ^
lis_easy.cpp:11:20: error: invalid types ‘int[int]’ for array subscript
11 | if (A[j] < A[i]) {
| ^
lis_easy.cpp:11:27: error: invalid types ‘int[int]’ for array subscript
11 | if (A[j] < A[i]) {
| ^