Problem fibo
User Ningja
Submission Time 2023-11-10 11:43:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fibo.cpp:5:1: error: ‘num’ does not name a type
5 | num[0] = 0;
| ^~~
fibo.cpp:6:1: error: ‘num’ does not name a type
6 | num[1] = 1;
| ^~~
fibo.cpp: In function ‘int fibo(int)’:
fibo.cpp:9:5: error: expected ‘(’ before ‘n’
9 | if n==1 return 1;
| ^
| (
fibo.cpp:10:5: error: expected ‘(’ before ‘n’
10 | if n==0 return 0;
| ^
| (