Problem | fibo |
---|---|
User | Pandin |
Submission Time | 2024-06-20 15:35:37 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fibo.cpp: In function ‘int fibo(long long int)’:
fibo.cpp:10:9: error: ‘arr’ was not declared in this scope
10 | if (arr[x] != -1) return arr[x];
| ^~~
fibo.cpp:12:5: error: ‘arr’ was not declared in this scope
12 | arr[x] = 0;
| ^~~
fibo.cpp:14:5: error: ‘arr’ was not declared in this scope
14 | arr[x] = 1;
| ^~~
fibo.cpp:16:5: error: ‘arr’ was not declared in this scope
16 | arr[x] = fibo(x-1)+fibo(x-2);
| ^~~
fibo.cpp:17:12: error: ‘arr’ was not declared in this scope
17 | return arr[x];
| ^~~
fibo.cpp: In function ‘int main()’:
fibo.cpp:24:9: error: ‘arr’ was not declared in this scope
24 | arr[i] = -1;
| ^~~