Problem hamster1
User Sia
Submission Time 2023-11-15 13:11:40
Score 0
Max Time N/A
Max Memory N/A

Compile Error

hamster1.cpp: In function ‘int32_t main()’:
hamster1.cpp:14:11: error: expected ‘;’ before ‘for’
14 | dp[0] = 0
| ^
| ;
15 |
16 | for (int i = 1; i < n; i++) {
| ~~~
hamster1.cpp:16:21: error: ‘i’ was not declared in this scope
16 | for (int i = 1; i < n; i++) {
| ^