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:29:14: error: 'iota' is not a member of 'std'
29 | std::iota(par.begin(), par.end(), 0);
| ^~~~
werewolf.cpp:50:9: error: 'function' was not declared in this scope; did you mean 'std::function'?
50 | function<void(int)> DFS1;
| ^~~~~~~~
| std::function
In file included from /usr/include/c++/13/functional:59,
from werewolf.cpp:4:
/usr/include/c++/13/bits/std_function.h:111:11: note: 'std::function' declared here
111 | class function;
| ^~~~~~~~
werewolf.cpp:50:18: error: expected primary-expression before 'void'
50 | function<void(int)> DFS1;
| ^~~~
werewolf.cpp:51:9: error: 'DFS1' was not declared in this scope
51 | DFS1 = [&](int u)
| ^~~~
werewolf.cpp:61:14: error: 'iota' is not a member of 'std'
61 | std::iota(par.begin(), par.end(), 0);
| ^~~~
werewolf.cpp:81:18: error: expected primary-expression before 'void'
81 | function<void(int)> DFS1;
| ^~~~
werewolf.cpp:82:9: error: 'DFS2' was not declared in this scope
82 | DFS2 = [&](int u)
| ^~~~
werewolf.cpp: In lambda function:
werewolf.cpp:95:95: warning: no return statement in function returning non-void [-Wreturn-type]
95 | auto update = [&](int pos) -> int { for (; pos <= N; pos += pos & (-pos)) BIT[pos]++; };
| ^
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:112:25: error: 'ans' was not declared in this scope; did you mean 'abs'?
112 | ans[qID] -= query(tin1[u], tout1[u]);
| ^~~
| abs
werewolf.cpp:117:25: error: 'ans' was not declared in this scope; did you mean 'abs'?
117 | ans[qID] += query(tin1[u], tout1[u]);
| ^~~
| abs