Problem fibo
User sh
Submission Time 2024-06-01 23:56:01
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fibo.cpp:7:10: error: ‘MAX_N’ was not declared in this scope
7 | int memo[MAX_N + 1];
| ^~~~~
fibo.cpp: In function ‘int fibo(int)’:
fibo.cpp:12:9: error: ‘memo’ was not declared in this scope
12 | if (memo[n] != -1) {
| ^~~~
fibo.cpp:15:12: error: ‘memo’ was not declared in this scope
15 | return memo[n] = (fibo(n - 1) + fibo(n - 2)) % MOD;
| ^~~~
fibo.cpp: In function ‘int main()’:
fibo.cpp:22:10: error: ‘memo’ was not declared in this scope
22 | fill(memo, memo + MAX_N + 1, -1);
| ^~~~
fibo.cpp:22:23: error: ‘MAX_N’ was not declared in this scope
22 | fill(memo, memo + MAX_N + 1, -1);
| ^~~~~