werewolf.cpp: In function 'std::vector<int> check_validity(int, std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>, std::vector<int>)':
werewolf.cpp:7:5: error: 'n' was not declared in this scope
7 | n = N; m = (int)X.size(); q = S.size();
| ^
werewolf.cpp:7:12: error: 'm' was not declared in this scope
7 | n = N; m = (int)X.size(); q = S.size();
| ^
werewolf.cpp:7:31: error: 'q' was not declared in this scope
7 | n = N; m = (int)X.size(); q = S.size();
| ^
werewolf.cpp:11:13: error: 'dp' was not declared in this scope
11 | dp[i][j] = -1e9; dq[i][j] = 1e9;
| ^~
werewolf.cpp:11:30: error: 'dq' was not declared in this scope
11 | dp[i][j] = -1e9; dq[i][j] = 1e9;
| ^~
werewolf.cpp:13:9: error: 'dp' was not declared in this scope
13 | dp[i][i] = dq[i][i] = i;
| ^~
werewolf.cpp:13:20: error: 'dq' was not declared in this scope
13 | dp[i][i] = dq[i][i] = i;
| ^~
werewolf.cpp:16:9: error: 'dp' was not declared in this scope
16 | dp[X[i]][Y[i]] = dp[Y[i]][X[i]] = min(Y[i], X[i]);
| ^~
werewolf.cpp:17:9: error: 'dq' was not declared in this scope
17 | dq[X[i]][Y[i]] = dq[Y[i]][X[i]] = max(Y[i], X[i]);
| ^~
werewolf.cpp:22:17: error: 'dp' was not declared in this scope
22 | dp[i][j] = max(dp[i][j], min(dp[i][k], dp[k][j]));
| ^~
werewolf.cpp:23:17: error: 'dq' was not declared in this scope
23 | dq[i][j] = min(dq[i][j], max(dq[i][k], dq[k][j]));
| ^~
werewolf.cpp:32:21: error: 'dp' was not declared in this scope
32 | flag |= dp[a][j] >= L[i] && dq[j][b] <= R[i];
| ^~
werewolf.cpp:32:41: error: 'dq' was not declared in this scope
32 | flag |= dp[a][j] >= L[i] && dq[j][b] <= R[i];
| ^~