Problem lis_easy
User Anonymous35V
Submission Time 2023-11-10 10:18:56
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp: In function ‘int32_t main()’:
lis_easy.cpp:16:4: error: expected primary-expression before ‘if’
16 | if (arr[j]<arr[i])(
| ^~
lis_easy.cpp:15:26: error: expected ‘)’ before ‘if’
15 | for (int j=0; j<i;j++)(
| ~^
| )
16 | if (arr[j]<arr[i])(
| ~~
lis_easy.cpp: At global scope:
lis_easy.cpp:22:5: error: expected unqualified-id before ‘if’
22 | if (lis[i]==0){
| ^~
lis_easy.cpp:25:2: error: expected declaration before ‘}’ token
25 | }
| ^
lis_easy.cpp:28:5: error: expected unqualified-id before ‘for’
28 | for (int i=0; i<n;i++){
| ^~~
lis_easy.cpp:28:19: error: ‘i’ does not name a type
28 | for (int i=0; i<n;i++){
| ^
lis_easy.cpp:28:23: error: ‘i’ does not name a type
28 | for (int i=0; i<