Problem lis
User Kiameimon
Submission Time 2024-01-18 12:17:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis.cpp: In function ‘int main()’:
lis.cpp:50:10: error: ‘i’ was not declared in this scope
50 | int arr[i]; for(int i = 0; i < n; i++) cin >> arr[i];
| ^
lis.cpp:50:48: error: ‘arr’ was not declared in this scope
50 | int arr[i]; for(int i = 0; i < n; i++) cin >> arr[i];
| ^~~
lis.cpp:52:19: error: ‘arr’ was not declared in this scope
52 | int cpy[n]; copy(arr, arr+n, cpy);
| ^~~