Problem | knapsack |
---|---|
User | hwy |
Submission Time | 2023-07-26 21:09:23 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
knapsack.cpp:6:1: error: ‘v’ does not name a type
6 | v.resize(2002);
| ^
knapsack.cpp: In function ‘int main()’:
knapsack.cpp:14:8: error: ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type’ {aka ‘struct std::pair<int, int>’} has no member named ‘push_back’
14 | v[W].push_back({V, K});
| ^~~~~~~~~
knapsack.cpp:18:13: error: ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type’ {aka ‘struct std::pair<int, int>’} has no member named ‘begin’
18 | sort(v[i].begin(), v[i].end());
| ^~~~~
knapsack.cpp:18:27: error: ‘__gnu_cxx::__alloc_traits<std::allocator<std::pair<int, int> >, std::pair<int, int> >::value_type’ {aka ‘struct std::pair<int, int>’} has no member named ‘end’
18 | sort(v[i].begin(), v[i].end());
|