garden.cpp: In function 'void count_routes(int, int, int, int (*)[2], int, int*)':
garden.cpp:37:24: error: expected unqualified-id before '>' token
37 | vector<vector<int>>> adj(N);
| ^
garden.cpp:38:22: error: wrong number of template arguments (1, should be at least 2)
38 | map<pair<int, int>> to;
| ^~
In file included from /usr/include/c++/10/map:61,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:81,
from garden.cpp:3:
/usr/include/c++/10/bits/stl_map.h:100:11: note: provided for 'template<class _Key, class _Tp, class _Compare, class _Alloc> class std::map'
100 | class map
| ^~~
garden.cpp:42:11: error: invalid types 'int[<brace-enclosed initializer list>]' for array subscript
42 | to[{x, y}] = 2 * i;
| ^
garden.cpp:43:11: error: invalid types 'int[<brace-enclosed initializer list>]' for array subscript
43 | to[{y, x}] = 2 * i + 1;
| ^
garden.cpp:44:9: error: 'adj' was not declared in this scope
44 | adj[x].push_back(y);
| ^~~
garden.cpp:50:29: error: 'adj' was not declared in this scope
50 | for (int i = 1; i < adj[x].size(); ++i) {
| ^~~
garden.cpp:51:17: error: invalid types 'int[<brace-enclosed initializer list>]' for array subscript
51 | g[to[{adj[x][i], x}]] = to[{x, adj[x][0]}];
| ^
garden.cpp:51:39: error: invalid types 'int[<brace-enclosed initializer list>]' for array subscript
51 | g[to[{adj[x][i], x}]] = to[{x, adj[x][0]}];
| ^
garden.cpp:53:15: error: 'adj' was not declared in this scope
53 | g[to[{adj[x][0], x}]] = to[{x, adj[x][min(adj[x].size(), 2) - 1]}];
| ^~~
garden.cpp:53:13: error: invalid types 'int[<brace-enclosed initializer list>]' for array subscript
53 | g[to[{adj[x][0], x}]] = to[{x, adj[x][min(adj[x].size(), 2) - 1]}];
| ^
garden.cpp:53:35: error: invalid types 'int[<brace-enclosed initializer list>]' for array subscript
53 | g[to[{adj[x][0], x}]] = to[{x, adj[x][min(adj[x].size(), 2) - 1]}];
| ^