Problem | fibo |
---|---|
User | blob |
Submission Time | 2023-12-20 14:07:12 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fibo.cpp: In function ‘int fibo(int)’:
fibo.cpp:6:6: error: ‘dp’ was not declared in this scope
6 | if (dp[n] != 1) return dp[n];
| ^~
fibo.cpp:6:9: error: ‘n’ was not declared in this scope
6 | if (dp[n] != 1) return dp[n];
| ^
fibo.cpp:7:9: error: ‘dp’ was not declared in this scope
7 | return dp[n] = fibo(n-1) + fibo(n-2);
| ^~
fibo.cpp:7:12: error: ‘n’ was not declared in this scope
7 | return dp[n] = fibo(n-1) + fibo(n-2);
| ^
fibo.cpp: In function ‘int main()’:
fibo.cpp:12:15: error: ‘Fibonacci’ was not declared in this scope
12 | int result = Fibonacci(N);
| ^~~~~~~~~