Problem moneychanger
User Anonymous35V
Submission Time 2023-11-10 15:28:24
Score 0
Max Time N/A
Max Memory N/A

Compile Error

moneychanger.cpp: In function ‘int32_t main()’:
moneychanger.cpp:13:17: error: expected ‘;’ before ‘<’ token
13 | for (int i=0, i<n; i++){
| ^
| ;
moneychanger.cpp:13:17: error: expected primary-expression before ‘<’ token
moneychanger.cpp:21:18: error: expected ‘)’ before ‘{’ token
21 | if(i>=coins[p]{
| ~ ^
| )
moneychanger.cpp:24:3: error: expected primary-expression before ‘}’ token
24 | }
| ^
moneychanger.cpp: At global scope:
moneychanger.cpp:26:2: error: expected unqualified-id before ‘if’
26 | if (dp[v]==INF){
| ^~
moneychanger.cpp:29:2: error: expected unqualified-id before ‘else’
29 | else cout<<dp[v];
| ^~~~
moneychanger.cpp:30:2: error: expected unqualified-id before ‘return’
30 | return 0;
| ^~~~~~
moneychanger.cpp:31:1: error: expected declarati