monster.cpp:11:12: error: 'N' was not declared in this scope
11 | bool f[N][N];
| ^
monster.cpp:11:15: error: 'N' was not declared in this scope
11 | bool f[N][N];
| ^
monster.cpp:12:13: error: 'N' was not declared in this scope
12 | int cnt[N];
| ^
monster.cpp: In function 'std::vector<int> solve(int)':
monster.cpp:20:13: error: 'f' was not declared in this scope
20 | f[i][j] = Query(i, j);
| ^
monster.cpp:21:13: error: 'cnt' was not declared in this scope; did you mean 'int'?
21 | cnt[i] += f[i][j];
| ^~~
| int
monster.cpp:25:27: error: 'N' was not declared in this scope
25 | std::vector <int> ans(N);
| ^
monster.cpp:28:13: error: 'cnt' was not declared in this scope; did you mean 'int'?
28 | if (cnt[i] < n - 1){
| ^~~
| int
monster.cpp:36:9: error: 'f' was not declared in this scope
36 | if (f[luu1][luu2]) ans[luu1] = n - 2;
| ^