Problem tiling
User cookiemonster735
Submission Time 2026-09-30 20:36:52
Score 0
Max Time N/A
Max Memory N/A

Compile Error

tiling.cpp: In function ‘void init(int, int)’:
tiling.cpp:44:37: error: no matching function for call to ‘std::vector<std::vector<bool> >::assign(int&, std::vector<int>)’
44 | occ.assign(n, vector<int>(m, false));
| ^
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 tiling.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<bool>; _Alloc = std::allocator<std::vector<bool> >; std::vector<_Tp, _Alloc>::size_type = long unsigned int; std::vecto