Problem quackarmy
User yuanbin
Submission Time 2026-11-27 12:39:07
Score 0
Max Time N/A
Max Memory N/A

Compile Error

quackarmy.cpp: In function ‘int main()’:
quackarmy.cpp:8:30: error: call of overloaded ‘vector(int&, <brace-enclosed initializer list>)’ is ambiguous
8 | vector< deque<int> > v(n, {});
| ^
In file included from /usr/include/c++/9/vector:67,
from quackarmy.cpp:2:
/usr/include/c++/9/bits/stl_vector.h:519:7: note: candidate: ‘std::vector<_Tp, _Alloc>::vector(std::vector<_Tp, _Alloc>::size_type, const value_type&, const allocator_type&) [with _Tp = std::deque<int>; _Alloc = std::allocator<std::deque<int> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vector<_Tp, _Alloc>::value_type = std::deque<int>; std::vector<_Tp, _Alloc>::allocator_type = std::allocator<std::deque<int> >]’
519 | vector(size_type __n, const value_type& __value,
| ^~~~~~
/usr/include/c++/9/bits/stl_vector.h:507:7: note