garden.cpp: In function 'void count_routes(int, int, int, int (*)[2], int, int*)':
garden.cpp:5:12: error: 'vector' was not declared in this scope
5 | vector<vector<int>> node_edges(N + 1);
| ^~~~~~
garden.cpp:5:19: error: expected primary-expression before 'int'
5 | vector<vector<int>> node_edges(N + 1);
| ^~~
garden.cpp:9:13: error: 'node_edges' was not declared in this scope
9 | if (node_edges[i].size() < 2) {
| ^~~~~~~~~~
garden.cpp:12:13: error: 'node_edges' was not declared in this scope
12 | if (node_edges[j].size() < 2) {
| ^~~~~~~~~~
garden.cpp: In lambda function:
garden.cpp:19:13: error: 'node_edges' was not declared in this scope
19 | if (node_edges[walk].empty()) {
| ^~~~~~~~~~
garden.cpp:23:25: error: 'node_edges' was not declared in this scope
23 | int next_walk = node_edges[walk][0];
| ^~~~~~~~~~
garden.cpp: In lambda function:
garden.cpp:34:15: error: 'pair' was not declared in this scope
34 | deque<pair<int,int>> path;
| ^~~~
garden.cpp:34:9: error: 'deque' was not declared in this scope
34 | deque<pair<int,int>> path;
| ^~~~~
garden.cpp:34:20: error: expected primary-expression before 'int'
34 | deque<pair<int,int>> path;
| ^~~
garden.cpp:35:9: error: 'set' was not declared in this scope
35 | set<pair<int,int>> visited;
| ^~~
garden.cpp:35:18: error: expected primary-expression before 'int'
35 | set<pair<int,int>> visited;
| ^~~
garden.cpp:42:18: error: expected primary-expression before 'int'
42 | pair<int,int> state = make_pair(walk, next_walk);
| ^~~
garden.cpp:43:17: error: 'visited' was not declared in this scope
43 | if (visited.find(state) == visited.end()) {
| ^~~~~~~
garden.cpp:43:30: error: 'state' was not declared in this scope; did you mean 'static'?
43 | if (visited.find(state) == visited.end()) {
| ^~~~~
| static
garden.cpp:45:17: error: 'path' was not declared in this scope
45 | path.push_back(state);
| ^~~~
garden.cpp:55:24: error: 'path' was not declared in this scope
55 | while (path.front() != state) {
| ^~~~
garden.cpp:58:25: error: 'path' was not declared in this scope
58 | int c = path.size();
| ^~~~
garden.cpp:64:29: error: 'path' was not declared in this scope
64 | for (int i = 0; i < path.size(); i ++) {
| ^~~~
garden.cpp:70:16: error: 'path' was not declared in this scope
70 | return path.back().first == P;
| ^~~~