Problem lis_easy
User Maggie
Submission Time 2023-11-10 10:10:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:6:19: error: expected ‘;’ before ‘)’ token
6 | for (0 <= j <= i-1){
| ^
| ;
lis_easy.cpp:14:1: error: expected primary-expression before ‘for’
14 | for(int i = 0; i<n; i++){
| ^~~
lis_easy.cpp:13:2: error: expected ‘;’ before ‘for’
13 | }
| ^
| ;
14 | for(int i = 0; i<n; i++){
| ~~~
lis_easy.cpp:14:1: error: expected primary-expression before ‘for’
14 | for(int i = 0; i<n; i++){
| ^~~
lis_easy.cpp:13:2: error: expected ‘)’ before ‘for’
13 | }
| ^
| )
14 | for(int i = 0; i<n; i++){
| ~~~
lis_easy.cpp:6:5: note: to match this ‘(’
6 | for (0 <= j <= i-1){
| ^
lis_easy.cpp:14:18: error: ‘n’ was not declared in this scope
14 | for(int i = 0; i<n; i++){
| ^
lis_easy.cp