| Problem | tiling |
|---|---|
| User | jmuzhen |
| Submission Time | 2026-08-13 08:01:38 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
tiling.cpp:6:21: error: template argument 1 is invalid
6 | vector<vector<bool> g;
| ^
tiling.cpp:6:21: error: template argument 2 is invalid
tiling.cpp: In function ‘void init(int, int)’:
tiling.cpp:10:3: error: ‘g’ was not declared in this scope
10 | g.resize(n, vector(m, false));
| ^
tiling.cpp: In function ‘std::pair<int, int> pick_block(int, int, int, int)’:
tiling.cpp:15:27: error: no matching function for call to ‘max_element(std::vector<int>&)’
15 | auto idx = max_element(v) - v.begin();
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from tiling.cpp:2:
/usr/include/c++/9/bits/stl_algo.h:5713:5: note: candidate: ‘template<class _FIter> constexpr _FIter std::max_element(_FIter, _FIter)’
5713 | max_element(_ForwardIterato