Problem moneychanger
User Anonymous35V
Submission Time 2023-11-10 15:26:51
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:20:7: error: ‘i’ was not declared in this scope
20 | if(i>=coin[p]{
| ^
moneychanger.cpp:20:10: error: ‘coin’ was not declared in this scope; did you mean ‘coins’?
20 | if(i>=coin[p]{
| ^~~~
| coins
moneychanger.cpp:20:17: error: expected ‘)’ before ‘{’ token
20 | if(i>=coin[p]{
| ~ ^
| )
moneychanger.cpp:23:3: error: expected primary-expression before ‘}’ token
23 | }
| ^
moneychanger.cpp: At global scope:
moneychanger.cpp:25:2: error: expected unqualified-id before ‘if’
25 | if (dp[v]==INF){
|