Problem votingcities
User Ash
Submission Time 2024-04-15 19:59:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

votingcities.cpp: In function ‘void solve()’:
votingcities.cpp:41:17: error: no matching function for call to ‘std::vector<std::vector<std::pair<long int, long int> > >::assign(int64_t&)’
41 | adj.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 /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from votingcities.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<std::pair<long int, long int> >; _Alloc = std::allocator<std::vector<std::pair<long int, long int> > >; std::vector<_Tp, _Alloc>::