Problem tiling
User jmuzhen
Submission Time 2026-08-13 08:01:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

tiling.cpp:4:1: error: ‘vector’ does not name a type
4 | vector<vector<bool> g;
| ^~~~~~
tiling.cpp: In function ‘void init(int, int)’:
tiling.cpp:8:3: error: ‘g’ was not declared in this scope
8 | g.resize(n, vector(m, false));
| ^
tiling.cpp:8:15: error: ‘vector’ was not declared in this scope
8 | g.resize(n, vector(m, false));
| ^~~~~~
tiling.cpp: At global scope:
tiling.cpp:11:1: error: ‘pair’ does not name a type
11 | pair<int,int> pick_block(int TL, int TR, int BL, int BR) { //top/bototm? left/right?
| ^~~~
tiling.cpp: In function ‘std::pair<int, int> receive_block(int, int, int, int)’:
tiling.cpp:18:12: error: ‘pick_block’ was not declared in this scope
18 | auto b = pick_block(TL, TR, BL, BR);
| ^~~~~~~~~~
tiling.cpp:24:12: error: ‘g’ was not declared in this scope
24 | if (!g[r][c]) {
| ^