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:18:13: error: no match for 'operator[]' (operand types are 'std::queue<int>' and 'int')
18 | visited[q[i]]=1;
| ^
werewolf.cpp:35:12: error: no match for 'operator[]' (operand types are 'std::queue<int>' and 'int')
35 | if (j<=r[i]){
| ^
werewolf.cpp:47:14: error: no match for 'operator[]' (operand types are 'std::queue<int>' and 'int')
47 | if (k<=r[i]&&!vis[k]){
| ^
werewolf.cpp:54:3: error: 'ans' was not declared in this scope; did you mean 'abs'?
54 | ans.push_back(0);
| ^~~
| abs