Problem | fibo |
---|---|
User | Yannwen09 |
Submission Time | 2023-11-09 13:54:20 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
fibo.cpp: In function ‘int main()’:
fibo.cpp:8:23: error: ‘N’ was not declared in this scope
8 | for (int i = 2; i <= N; i++) dp [i] = dp [i-1] + dp [i-2]
| ^
fibo.cpp:8:59: error: expected ‘;’ before ‘dp’
8 | for (int i = 2; i <= N; i++) dp [i] = dp [i-1] + dp [i-2]
| ^
| ;
9 |
10 | dp[0] = 0;
| ~~
fibo.cpp:12:5: error: ‘i’ was not declared in this scope
12 | dp[i] = (dp[i-1] + dp[i-2]) % 998244353;
| ^