Problem transportingpotatoes
User Pan
Submission Time 2024-11-24 17:44:12
Score 0
Max Time N/A
Max Memory N/A

Compile Error

transportingpotatoes.cpp: In function ‘int main()’:
transportingpotatoes.cpp:53:47: error: no matching function for call to ‘std::vector<std::vector<int> >::assign(ll, std::__cxx11::basic_string<int>)’
53 | dist.assign(n+5, basic_string<int> (m+5, 5e7));
| ^
In file included from /usr/include/c++/9/vector:67,
from /usr/include/c++/9/functional:62,
from /usr/include/c++/9/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/9/algorithm:71,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from transportingpotatoes.cpp:1:
/usr/include/c++/9/bits/stl_vector.h:746:7: note: candidate: ‘void std::vector<_Tp, _Alloc>::assign(std::vector<_Tp, _Alloc>::size_type, const value_type&) [with _Tp = std::vector<int>; _Alloc = std::allocator<std::vector<int> >; std::vecto