Problem lis_easy
User Anonymous35V
Submission Time 2023-11-10 09:57:21
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp:6:2: error: ‘cin’ does not name a type; did you mean ‘sin’?
6 | cin>>n;
| ^~~
| sin
lis_easy.cpp:8:11: error: array bound is not an integer constant before ‘]’ token
8 | int arr[n];
| ^
lis_easy.cpp:9:2: error: expected unqualified-id before ‘for’
9 | for (int i=0; i<n; i++){
| ^~~
lis_easy.cpp:9:16: error: ‘i’ does not name a type
9 | for (int i=0; i<n; i++){
| ^
lis_easy.cpp:9:21: error: ‘i’ does not name a type
9 | for (int i=0; i<n; i++){
| ^
lis_easy.cpp:12:11: error: array bound is not an integer constant before ‘]’ token
12 | int lis[n];
| ^
lis_easy.cpp:13:9: error: expected constructor, destructor, or type conversion before ‘(’ token
13 | memoset(lis, 0, sizeof(lis));
| ^
lis_easy.cpp:14:2: error: expected unqualified-id before ‘for’