stations.cpp: In function 'std::vector<int> label(int, int, int, int)':
stations.cpp:19:6: error: invalid types 'int[int]' for array subscript
19 | g[u[i]].push_back(v[i]);
| ^
stations.cpp:19:22: error: invalid types 'int[int]' for array subscript
19 | g[u[i]].push_back(v[i]);
| ^
stations.cpp:20:6: error: invalid types 'int[int]' for array subscript
20 | g[v[i]].push_back(u[i]);
| ^
stations.cpp:20:22: error: invalid types 'int[int]' for array subscript
20 | g[v[i]].push_back(u[i]);
| ^
stations.cpp:24:6: error: invalid initialization of reference of type 'std::vector<int>&' from expression of type 'std::vector<int> [1000]'
24 | dfs(g, tin, 0, -1, 0, 0);
| ^
stations.cpp:9:23: note: in passing argument 1 of 'void dfs(std::vector<int>&, int, int, int)'
9 | void dfs(vector<int>& tin, int u, int p, int d){
| ~~~~~~~~~~~~~^~~
stations.cpp: In function 'int find_next_station(int, int, std::vector<int>)':
stations.cpp:30:10: error: 'cc' was not declared in this scope; did you mean 'c'?
30 | int m = cc.size(), i;
| ^~
| c
stations.cpp:32:7: error: 'i' was not declared in this scope
32 | for(i = 0; i < m - 1; i++)
| ^
stations.cpp:42:11: error: 'i' was not declared in this scope
42 | return c[i];
| ^