stations.cpp: In lambda function:
stations.cpp:20:18: error: 'min' was not declared in this scope; did you mean 'std::min'?
20 | out[u] = min(n - 1, t);
| ^~~
| std::min
In file included from /usr/include/c++/9/functional:65,
from stations.cpp:2:
/usr/include/c++/9/bits/stl_algo.h:3450:5: note: 'std::min' declared here
3450 | min(initializer_list<_Tp> __l, _Compare __comp)
| ^~~
stations.cpp: In function 'std::vector<int> label(int, int, std::vector<int>, std::vector<int>)':
stations.cpp:21:6: error: conversion from 'void' to non-scalar type 'std::function<void(int, int)>' requested
13 | std::function<void(int, int)> dfs = [&](int u, int p) {
| ~~~~~~~~~~~~~~~~~~~
14 | in[u] = t++;
| ~~~~~~~~~~~~
15 | for (int v: e[u]) {
| ~~~~~~~~~~~~~~~~~~~
16 | if (v != p) {
| ~~~~~~~~~~~~~
17 | dfs(v, u);
| ~~~~~~~~~~
18 | }
| ~
19 | }
| ~
20 | out[u] = min(n - 1, t);
| ~~~~~~~~~~~~~~~~~~~~~~~
21 | }(0, -1);
| ~^~~~~~~
stations.cpp:24:1: warning: no return statement in function returning non-void [-Wreturn-type]
24 | }
| ^
stations.cpp: In function 'int find_next_station(int, int, std::vector<int>)':
stations.cpp:30:8: error: expected primary-expression before ';' token
30 | std;:vector<int> in_c, out_c;
| ^
stations.cpp:30:9: error: expected primary-expression before ':' token
30 | std;:vector<int> in_c, out_c;
| ^
stations.cpp:32:9: error: 'in_c' was not declared in this scope; did you mean 'in_t'?
32 | in_c.push_back(u / 1000);
| ^~~~
| in_t
stations.cpp:33:9: error: 'out_c' was not declared in this scope; did you mean 'out_t'?
33 | out_c.push_back(u % 1000);
| ^~~~~
| out_t
stations.cpp:37:13: error: 'in_c' was not declared in this scope; did you mean 'in_t'?
37 | if (in_c[i] <= in_s && out_c[i] >= out_s) {
| ^~~~
| in_t
stations.cpp:37:32: error: 'out_c' was not declared in this scope; did you mean 'out_t'?
37 | if (in_c[i] <= in_s && out_c[i] >= out_s) {
| ^~~~~
| out_t