Problem moneychanger
User Elnathan
Submission Time 2024-05-09 13:44:48
Score 0
Max Time N/A
Max Memory N/A

Compile Error

moneychanger.cpp: In function ‘int main()’:
moneychanger.cpp:34:37: error: expected ‘;’ before ‘for’
34 | fill(dp, dp + 10001, 2147483646)
| ^
| ;
35 | for (int i = 0; i < n; i++) {
| ~~~
moneychanger.cpp:35:21: error: ‘i’ was not declared in this scope
35 | for (int i = 0; i < n; i++) {
| ^
moneychanger.cpp:44:20: error: expected ‘;’ before ‘}’ token
44 | cout << out
| ^
| ;
45 | }
| ~