Problem fibo_easy
User joeyyy1
Submission Time 2024-06-20 13:52:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fibo_easy.cpp: In function ‘int main()’:
fibo_easy.cpp:7:8: error: expected initializer before ‘if’
7 | if (i == 1) return 0;
| ^~
fibo_easy.cpp:8:12: error: ‘i’ was not declared in this scope
8 | if (i == 2) return 1;
| ^
fibo_easy.cpp:9:20: error: ‘i’ was not declared in this scope
9 | return fibo(i-1) + fibo(i-2);
| ^
fibo_easy.cpp:9:15: error: ‘fibo’ was not declared in this scope
9 | return fibo(i-1) + fibo(i-2);
| ^~~~
fibo_easy.cpp: At global scope:
fibo_easy.cpp:12:1: error: expected declaration before ‘}’ token
12 | }
| ^