Problem typicalstairs
User yc
Submission Time 2025-06-13 18:58:04
Score 0
Max Time N/A
Max Memory N/A

Compile Error

typicalstairs.cpp: In function ‘long long int hi(long long int)’:
typicalstairs.cpp:13:9: error: declaration of ‘long long int x’ shadows a parameter
13 | int N,M,x;
| ^
typicalstairs.cpp:15:14: error: a function-definition is not allowed here before ‘{’ token
15 | int hi(int x){
| ^
typicalstairs.cpp:20:14: error: a function-definition is not allowed here before ‘{’ token
20 | signed main(){
| ^
typicalstairs.cpp:28:5: error: expected ‘}’ at end of input
28 | }
| ^
typicalstairs.cpp:7:14: note: to match this ‘{’
7 | int hi(int x){
| ^