Problem | fibo |
---|---|
User | qwqful |
Submission Time | 2024-02-27 22:21:53 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fibo.cpp: In function ‘void solve()’:
fibo.cpp:13:25: error: ‘n’ was not declared in this scope
13 | for(int i = 2 ; i < n; i++) f[i] = f[i - 1] + f[i - 2 ];
| ^
fibo.cpp:14:24: error: ‘n’ was not declared in this scope
14 | for(int i = 0; i < n + 1; i++) cout << f[i] << endl;
| ^