prison.cpp: In function 'std::vector<std::vector<int> > devise_strategy(int)':
prison.cpp:11:43: error: 'encode' was not declared in this scope
11 | for (int j = 1; j <= N; j++) J[j] = encode(j, 8);
| ^~~~~~
prison.cpp:13:23: error: 'decode' was not declared in this scope
13 | auto [p, pos] = decode(i);
| ^~~~~~
prison.cpp:16:17: error: 'b3' was not declared in this scope
16 | int c = b3(j, pos);
| ^~
prison.cpp:19:21: error: 'encode' was not declared in this scope
19 | else J[j] = encode(j, pos - 1);
| ^~~~~~