Problem fibo
User blob
Submission Time 2023-11-22 10:37:47
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fibo.cpp: In function ‘int recur(int)’:
fibo.cpp:7:27: error: expected ‘;’ before ‘return’
7 | if(f[n] != -1)return f[n]
| ^
| ;
8 | return f[n] = (recur(n-1) + recur(n-2)) %998244353 ;
| ~~~~~~
fibo.cpp: In function ‘int main()’:
fibo.cpp:13:22: error: ‘N’ was not declared in this scope
13 | for (int i = 2;i <= N;i++){
| ^
fibo.cpp:14:36: error: expected ‘)’ before ‘;’ token
14 | f[i] = (f[i-1] + f[i-2]%998244353;
| ~ ^
| )