answer.code: In function ‘void solve()’:
answer.code:41:9: error: ‘vector’ was not declared in this scope
41 | vector<string> b(2);
| ^~~~~~
answer.code:2:1: note: ‘std::vector’ is defined in header ‘<vector>’; did you forget to ‘#include <vector>’?
1 | #include<iostream>
+++ |+#include <vector>
2 | using namespace std;
answer.code:41:22: error: expected primary-expression before ‘>’ token
41 | vector<string> b(2);
| ^
answer.code:41:24: error: ‘b’ was not declared in this scope
41 | vector<string> b(2);
| ^
answer.code: In function ‘int main()’:
answer.code:72:26: error: no matching function for call to ‘min(<brace-enclosed initializer list>)’
72 | cost[i] = min({a[0] * 4, a[1] * 2, a[2] * 2, a[3]});
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/13/string:51,
from /usr/include/c++/13/bits/locale_classes.h:40,
from /usr/include/c++/13/bits/ios_base.h:41,
from /usr/include/c++/13/ios:44,
from /usr/include/c++/13/ostream:40,
from /usr/include/c++/13/iostream:41,
from answer.code:1:
/usr/include/c++/13/bits/stl_algobase.h:233:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)’
233 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:233:5: note: template argument deduction/substitution failed:
answer.code:72:26: note: candidate expects 2 arguments, 1 provided
72 | cost[i] = min({a[0] * 4, a[1] * 2, a[2] * 2, a[3]});
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algobase.h:281:5: note: candidate: ‘template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)’
281 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:281:5: note: template argument deduction/substitution failed:
answer.code:72:26: note: candidate expects 3 arguments, 1 provided
72 | cost[i] = min({a[0] * 4, a[1] * 2, a[2] * 2, a[3]});
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:75:26: error: no matching function for call to ‘min(<brace-enclosed initializer list>)’
75 | cost[i] = min({a[0] * 3, a[0] + a[1], a[0] + a[2], a[0] + a[3]});
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algobase.h:233:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)’
233 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:233:5: note: template argument deduction/substitution failed:
answer.code:75:26: note: candidate expects 2 arguments, 1 provided
75 | cost[i] = min({a[0] * 3, a[0] + a[1], a[0] + a[2], a[0] + a[3]});
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algobase.h:281:5: note: candidate: ‘template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)’
281 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:281:5: note: template argument deduction/substitution failed:
answer.code:75:26: note: candidate expects 3 arguments, 1 provided
75 | cost[i] = min({a[0] * 3, a[0] + a[1], a[0] + a[2], a[0] + a[3]});
| ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
answer.code:78:26: error: no matching function for call to ‘min(<brace-enclosed initializer list>)’
78 | cost[i] = min({a[0] * 2, a[1]});
| ~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algobase.h:233:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::min(const _Tp&, const _Tp&)’
233 | min(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:233:5: note: template argument deduction/substitution failed:
answer.code:78:26: note: candidate expects 2 arguments, 1 provided
78 | cost[i] = min({a[0] * 2, a[1]});
| ~~~^~~~~~~~~~~~~~~~~~
/usr/include/c++/13/bits/stl_algobase.h:281:5: note: candidate: ‘template<class _Tp, class _Compare> constexpr const _Tp& std::min(const _Tp&, const _Tp&, _Compare)’
281 | min(const _Tp& __a, const _Tp& __b, _Compare __comp)
| ^~~
/usr/include/c++/13/bits/stl_algobase.h:281:5: note: template argument deduction/substitution failed:
answer.code:78:26: note: candidate expects 3 arguments, 1 provided
78 | cost[i] = min({a[0] * 2, a[1]});
| ~~~^~~~~~~~~~~~~~~~~~
a...