prison.cpp: In function 'std::vector<std::vector<int> > devise_strategy(int)':
prison.cpp:12:35: error: 'j' was not declared in this scope
12 | if(i == 1) ans[0][j] = -1;
| ^
prison.cpp:13:30: error: 'N' was not declared in this scope
13 | else if(i == N) ans[0][j] = -2;
| ^
prison.cpp:13:40: error: 'j' was not declared in this scope
13 | else if(i == N) ans[0][j] = -2;
| ^
prison.cpp:14:29: error: 'j' was not declared in this scope
14 | else ans[0][j] = j;
| ^
prison.cpp:17:32: error: 'j' was not declared in this scope
17 | for(int i = 1; j <= n; j++){
| ^