Problem typicalstairs
User Student101
Submission Time 2025-02-16 00:12:13
Score 0
Max Time N/A
Max Memory N/A

Compile Error

typicalstairs.cpp: In function ‘int main()’:
typicalstairs.cpp:19:42: error: ‘MOD’ was not declared in this scope
19 | if(ls[i-1]!=-1) ls[i] += ls[i-1]%MOD;
| ^~~
typicalstairs.cpp:20:42: error: ‘MOD’ was not declared in this scope
20 | if(ls[i-2]!=-1) ls[i] += ls[i-2]%MOD;
| ^~~
typicalstairs.cpp:23:21: error: ‘MOD’ was not declared in this scope
23 | cout << ls[num]%MOD;
| ^~~