werewolf.cpp: In function 'void dfs1(int, int)':
werewolf.cpp:19:20: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
19 | for (int a : r1[i]){
| ^
| std::begin
In file included from /usr/include/c++/9/string:54,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from werewolf.cpp:1:
/usr/include/c++/9/bits/range_access.h:87:5: note: 'std::begin' declared here
87 | begin(_Tp (&__arr)[_Nm])
| ^~~~~
werewolf.cpp:19:20: error: 'end' was not declared in this scope; did you mean 'std::end'?
19 | for (int a : r1[i]){
| ^
| std::end
In file included from /usr/include/c++/9/string:54,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from werewolf.cpp:1:
/usr/include/c++/9/bits/range_access.h:97:5: note: 'std::end' declared here
97 | end(_Tp (&__arr)[_Nm])
| ^~~
werewolf.cpp: In function 'void dfs2(int, int)':
werewolf.cpp:30:20: error: 'begin' was not declared in this scope; did you mean 'std::begin'?
30 | for (int a : r1[i]){
| ^
| std::begin
In file included from /usr/include/c++/9/string:54,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from werewolf.cpp:1:
/usr/include/c++/9/bits/range_access.h:87:5: note: 'std::begin' declared here
87 | begin(_Tp (&__arr)[_Nm])
| ^~~~~
werewolf.cpp:30:20: error: 'end' was not declared in this scope; did you mean 'std::end'?
30 | for (int a : r1[i]){
| ^
| std::end
In file included from /usr/include/c++/9/string:54,
from /usr/include/c++/9/bits/locale_classes.h:40,
from /usr/include/c++/9/bits/ios_base.h:41,
from /usr/include/c++/9/ios:42,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from werewolf.cpp:1:
/usr/include/c++/9/bits/range_access.h:97:5: note: 'std::end' declared here
97 | end(_Tp (&__arr)[_Nm])
| ^~~
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:43:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
43 | for (int i = 0; i < X.size(); i++){
| ~~^~~~~~~~~~