Problem penghulu
User chenweilian
Submission Time 2025-04-23 15:24:46
Score 0
Max Time N/A
Max Memory N/A

Compile Error

penghulu.cpp: In function ‘int main()’:
penghulu.cpp:128:17: error: no matching function for call to ‘std::vector<std::vector<int> >::assign(int&)’
128 | par.assign(n);
| ^
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 penghulu.cpp:2:
/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::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = std::vector<int>]’
746 | assign(size_type __n, const value_type& __val)
| ^~~~~~
/us