Problem moneychanger
User longnamle
Submission Time 2025-09-28 00:30:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

moneychanger.cpp: In function ‘int main()’:
moneychanger.cpp:8:12: error: ‘l’ was not declared in this scope
8 | vector<l> coins(n);
| ^
moneychanger.cpp:8:13: error: template argument 1 is invalid
8 | vector<l> coins(n);
| ^
moneychanger.cpp:8:13: error: template argument 2 is invalid
moneychanger.cpp:9:46: error: invalid types ‘int[ll {aka long long int}]’ for array subscript
9 | for (ll i = 0; i < n; i++) cin >> coins[i];
| ^
moneychanger.cpp:16:21: error: ‘begin’ was not declared in this scope
16 | for (ll c : coins) {
| ^~~~~
moneychanger.cpp:16:21: note: suggested alternatives:
In file included from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:95,
from moneychanger.cpp:1:
/usr/include/c++/9/valarray:1224:5: note: ‘std::begin’
1224 |