Problem | coinbag |
---|---|
User | Henries |
Submission Time | 2024-10-26 16:41:38 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
coinbag.cpp: In function ‘long long int recur(std::vector<long long int>, long long int)’:
coinbag.cpp:13:39: error: request for member ‘first’ in ‘v.std::vector<long long int>::operator[](((std::vector<long long int>::size_type)i))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’}
13 | long long remainder = weight - v[i].first;
| ^~~~~
coinbag.cpp:15:32: error: request for member ‘second’ in ‘v.std::vector<long long int>::operator[](((std::vector<long long int>::size_type)i))’, which is of non-class type ‘__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type’ {aka ‘long long int’}
15 | maximum = max(current + v[i].second, maximum);
| ^~~~~~
coinbag.cpp: In function ‘int main()’:
coinbag.cpp:28:8: error: