Problem candymountain_ex
User user123
Submission Time 2023-09-09 13:18:55
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candymountain_ex.cpp: In function ‘int main()’:
candymountain_ex.cpp:19:29: error: expected ‘;’ before ‘for’
19 | dp[0]=0; kprev.insert(0)
| ^
| ;
20 | for (int a=1; a<=n+1; a++)
| ~~~
candymountain_ex.cpp:20:19: error: ‘a’ was not declared in this scope
20 | for (int a=1; a<=n+1; a++)
| ^