stations.cpp: In function 'std::vector<int> label(int, int, std::vector<int>, std::vector<int>)':
stations.cpp:12:5: error: 'function' was not declared in this scope; did you mean 'union'?
12 | function<void(int, int)> dfs = [&](int u, int p) {
| ^~~~~~~~
| union
stations.cpp:12:27: error: expression list treated as compound expression in functional cast [-fpermissive]
12 | function<void(int, int)> dfs = [&](int u, int p) {
| ^
stations.cpp:12:14: error: expected primary-expression before 'void'
12 | function<void(int, int)> dfs = [&](int u, int p) {
| ^~~~
stations.cpp:20:7: warning: left operand of comma operator has no effect [-Wunused-value]
20 | }(0, -1);
| ^
stations.cpp:11:9: warning: unused variable 't' [-Wunused-variable]
11 | int t = 0;
| ^
stations.cpp:23:1: warning: no return statement in function returning non-void [-Wreturn-type]
23 | }
| ^
stations.cpp: In function 'int find_next_station(int, int, std::vector<int>)':
stations.cpp:29:8: error: expected primary-expression before ';' token
29 | std;:vector<int> in_c, out_c;
| ^
stations.cpp:29:9: error: expected primary-expression before ':' token
29 | std;:vector<int> in_c, out_c;
| ^
stations.cpp:31:9: error: 'in_c' was not declared in this scope; did you mean 'in_t'?
31 | in_c.push_back(u / 1000);
| ^~~~
| in_t
stations.cpp:32:9: error: 'out_c' was not declared in this scope; did you mean 'out_t'?
32 | out_c.push_back(u % 1000);
| ^~~~~
| out_t
stations.cpp:36:13: error: 'in_c' was not declared in this scope; did you mean 'in_t'?
36 | if (in_c[i] <= in_s && out_c[i] >= out_s) {
| ^~~~
| in_t
stations.cpp:36:32: error: 'out_c' was not declared in this scope; did you mean 'out_t'?
36 | if (in_c[i] <= in_s && out_c[i] >= out_s) {
| ^~~~~
| out_t