Problem fibo
User Clonemax2008
Submission Time 2024-02-29 14:42:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

fibo.cpp: In function ‘void frankie(int)’:
fibo.cpp:11:15: error: array of runtime bound cannot be captured by copy, only by reference
11 | arr[i] = [arr[i-1]+ arr[i-2]]%998244353;
| ^~~
fibo.cpp:11:18: error: expected ‘,’ before ‘[’ token
11 | arr[i] = [arr[i-1]+ arr[i-2]]%998244353;
| ^
| ,
fibo.cpp:11:18: error: expected identifier before ‘[’ token
fibo.cpp: In lambda function:
fibo.cpp:11:34: error: expected ‘{’ before ‘%’ token
11 | arr[i] = [arr[i-1]+ arr[i-2]]%998244353;
| ^
fibo.cpp: In function ‘void frankie(int)’:
fibo.cpp:11:34: error: no match for ‘operator%’ (operand types are ‘frankie(int)::<lambda()>’ and ‘int’)
11 | arr[i] = [arr[i-1]+ arr[i-2]]%998244353;