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

Compile Error

cc1plus: error: ‘::main’ must return ‘int’
moneychanger.cpp: In function ‘int 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:2: error: expected primary-expression before ‘}’ token
24 | }
| ^