mousetrap.cpp: In function 'void dfs(int, int, std::vector<std::vector<int> >&, std::vector<int>&, std::vector<std::vector<int> >&, int)':
mousetrap.cpp:8:23: warning: comparison of integer expressions of different signedness: 'std::vector<std::vector<int> >::size_type' {aka 'long unsigned int'} and 'int' [-Wsign-compare]
8 | if (depths.size() <= depth) {
| ~~~~~~~~~~~~~~^~~~~~~~
mousetrap.cpp: At global scope:
mousetrap.cpp:20:11: error: 'ranges' has not been declared
20 | auto max2(ranges::input_range auto&& range) {
| ^~~~~~
mousetrap.cpp:20:45: error: expected ',' or ';' before '{' token
20 | auto max2(ranges::input_range auto&& range) {
| ^
mousetrap.cpp: In function 'int main()':
mousetrap.cpp:72:31: error: 'views' has not been declared
72 | for (auto& row : depths | views::reverse) {
| ^~~~~
mousetrap.cpp:75:19: error: 'views' has not been declared
75 | | views::filter([&parents, &dp, &node](int child) { return child != parents[node]; })
| ^~~~~
mousetrap.cpp:76:19: error: 'views' has not been declared
76 | | views::transform([&dp](int child) { return dp[child]; }));
| ^~~~~