Problem lis_easy
User louisleehi
Submission Time 2024-02-18 15:34:42
Score 0
Max Time N/A
Max Memory N/A

Compile Error

lis_easy.cpp: In function ‘int main()’:
lis_easy.cpp:10:19: error: ‘i’ was not declared in this scope
10 | for(int j=0;j<i;j++){
| ^
lis_easy.cpp: At global scope:
lis_easy.cpp:17:3: error: expected unqualified-id before ‘for’
17 | for(int i=0;i<n;i++){
| ^~~
lis_easy.cpp:17:15: error: ‘i’ does not name a type
17 | for(int i=0;i<n;i++){
| ^
lis_easy.cpp:17:19: error: ‘i’ does not name a type
17 | for(int i=0;i<n;i++){
| ^
lis_easy.cpp:20:2: error: ‘cout’ does not name a type
20 | cout<<ans;
| ^~~~
lis_easy.cpp:22:1: error: expected declaration before ‘}’ token
22 | }
| ^