Problem magicwand
User pIaceholder
Submission Time 2023-11-17 10:49:58
Score 0
Max Time N/A
Max Memory N/A

Compile Error

magicwand.cpp: In function ‘int32_t main()’:
magicwand.cpp:30:26: error: no matching function for call to ‘std::vector<std::vector<std::pair<short int, bool> > >::push_back(std::vector<std::pair<short int, short int> >&)’
30 | map.push_back(row);
| ^
In file included from /usr/include/c++/9/vector:67,
from magicwand.cpp:2:
/usr/include/c++/9/bits/stl_vector.h:1184:7: note: candidate: ‘void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = std::vector<std::pair<short int, bool> >; _Alloc = std::allocator<std::vector<std::pair<short int, bool> > >; std::vector<_Tp, _Alloc>::value_type = std::vector<std::pair<short int, bool> >]’
1184 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/9/bits/stl_vector.h:1184:35: note: no known conversion for argument 1 from ‘std::vector&