Problem | fibo |
---|---|
User | justin271828 |
Submission Time | 2024-05-30 10:42:24 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fibo.cpp: In function ‘int fibo(int)’:
fibo.cpp:5:35: error: invalid conversion from ‘int (*)(int)’ to ‘int’ [-fpermissive]
5 | if (!fibo[x] == -1) return fibo[x];
| ^
| |
| int (*)(int)
fibo.cpp:7:23: error: invalid operands of types ‘int(int)’ and ‘int(int)’ to binary ‘operator+’
7 | fibo[x] = fibo[x-1] + fibo[x-2];
| ~~~~~~~~~ ^ ~~~~~~~~~
| | |
| int(int) int(int)
fibo.cpp:8:17: error: invalid operands of types ‘int(int)’ and ‘int’ to binary ‘operator%’
8 | return fibo[x]%998244353;
| ~~~~~~~^~~~~~~~~~
| | |
| | int
| int(int)
fibo.cpp: In function ‘int main()’:
fibo.cpp:17:10: error: assignment of read-only location ‘* fibo’
17 |