stations.cpp: In function 'void dfs(int, int, bool, int&, const std::vector<std::vector<int> >&, std::vector<int>&)':
stations.cpp:9:35: error: invalid initialization of reference of type 'int&' from expression of type 'const std::vector<std::vector<int> >'
9 | if (v != p) dfs(v, u, !d, adj, label);
| ^~~
stations.cpp:6:37: note: in passing argument 4 of 'void dfs(int, int, bool, int&, const std::vector<std::vector<int> >&, std::vector<int>&)'
6 | void dfs(int u, int p, bool d, int &cnt, const vector <vector <int>> &adj, vector <int> &label) {
| ~~~~~^~~