Problem candymountain_ex
User aidanvoidout
Submission Time 2025-02-15 20:14:59
Score 0
Max Time N/A
Max Memory N/A

Compile Error

candymountain_ex.cpp: In function ‘int main()’:
candymountain_ex.cpp:14:26: error: ‘x’ was not declared in this scope
14 | cin >> candy_on_pebble[x];
| ^
candymountain_ex.cpp:21:41: error: expected ‘)’ before ‘;’ token
21 | else min_candy = min(min_candy, dp[y];
| ~ ^
| )