Problem | fibo |
---|---|
User | justin271828 |
Submission Time | 2024-05-30 10:43:02 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fibo.cpp: In function ‘int fibo(int)’:
fibo.cpp:5:7: error: ‘arr’ was not declared in this scope
5 | if (!arr[x] == -1) return arr[x];
| ^~~
fibo.cpp: In function ‘int main()’:
fibo.cpp:17:10: error: assignment of read-only location ‘* fibo’
17 | fibo[0] = 0;
| ~~~~~~~~^~~
fibo.cpp:18:10: error: assignment of read-only location ‘*(fibo + 1)’
18 | fibo[1] = 1;
| ~~~~~~~~^~~
fibo.cpp:19:43: error: ‘x’ was not declared in this scope
19 | for (int i = 0; i <= N; i++) cout << arr[x] << "\n";
| ^