Problem hamster1
User justin271828
Submission Time 2024-06-01 16:30:02
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hamster1.cpp: In function ‘void e(int)’:
hamster1.cpp:9:28: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
9 | if (memo[x] != -1) return 0;
| ^
hamster1.cpp:17:16: error: return-statement with a value, in function returning ‘void’ [-fpermissive]
17 | return memo[x];
| ^