Problem | typicalstairs |
---|---|
User | shoryu386 |
Submission Time | 2025-06-15 19:15:49 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
typicalstairs.cpp: In function ‘long long int recur(long long int)’:
typicalstairs.cpp:16:9: error: ‘dp’ was not declared in this scope
16 | if (dp[curpos] != -1){
| ^~
typicalstairs.cpp:24:12: error: ‘dp’ was not declared in this scope
24 | return dp[curpos] = (recur(curpos-1) + recur(curpos-2))%MOD;
| ^~
typicalstairs.cpp: In function ‘int main()’:
typicalstairs.cpp:31:39: error: ‘dp’ was not declared in this scope
31 | for (int i = 0; i < 100'007; i++) dp[i] = -1;
| ^~