Problem typicalstairs
User PerihelionfromAphelion
Submission Time 2026-05-31 20:48:36
Score 0
Max Time N/A
Max Memory N/A

Compile Error

typicalstairs.cpp: In function ‘int main()’:
typicalstairs.cpp:10:7: error: ‘i’ was not declared in this scope
10 | for (i = 0; i < m; i++) {
| ^
typicalstairs.cpp:17:7: error: ‘i’ was not declared in this scope
17 | for (i = 1; i <= n; i++) {
| ^
typicalstairs.cpp:24:34: error: expected primary-expression before ‘const’
24 | dp[i] = (dp[i] + dp[i - 2]) % const;
| ^~~~~
typicalstairs.cpp:27:13: error: ‘i’ was not declared in this scope
27 | cout << dp[i];
| ^