dreaming.cpp:6:28: error: 'nmax' was not declared in this scope; did you mean 'fmax'?
6 | vector<array<int, 2>> graf[nmax];
| ^~~~
| fmax
dreaming.cpp:8:10: error: 'nmax' was not declared in this scope; did you mean 'fmax'?
8 | int used[nmax], dist_down[nmax], dist_up[nmax];
| ^~~~
| fmax
dreaming.cpp:8:27: error: 'nmax' was not declared in this scope; did you mean 'fmax'?
8 | int used[nmax], dist_down[nmax], dist_up[nmax];
| ^~~~
| fmax
dreaming.cpp:8:42: error: 'nmax' was not declared in this scope; did you mean 'fmax'?
8 | int used[nmax], dist_down[nmax], dist_up[nmax];
| ^~~~
| fmax
dreaming.cpp: In function 'void dfs_down(int, int)':
dreaming.cpp:11:5: error: 'used' was not declared in this scope
11 | used[v] = 1;
| ^~~~
dreaming.cpp:12:5: error: 'dist_down' was not declared in this scope; did you mean 'dfs_down'?
12 | dist_down[v] = 0;
| ^~~~~~~~~
| dfs_down
dreaming.cpp:13:18: error: 'graf' was not declared in this scope
13 | for(auto i : graf[v]) {
| ^~~~
dreaming.cpp: In function 'void dfs_total(int, int)':
dreaming.cpp:26:18: error: 'graf' was not declared in this scope
26 | for(auto i : graf[v]) {
| ^~~~
dreaming.cpp:29:24: error: 'dist_down' was not declared in this scope; did you mean 'dfs_down'?
29 | int cur_dist = dist_down[i[0]] + i[1];
| ^~~~~~~~~
| dfs_down
dreaming.cpp:41:24: error: 'dist_up' was not declared in this scope
41 | cur = min(cur, max(dist_up[v], maximum[0][0]));
| ^~~~~~~
dreaming.cpp:43:18: error: 'graf' was not declared in this scope
43 | for(auto i : graf[v]) {
| ^~~~
dreaming.cpp: In function 'int travelTime(int, int, int, int*, int*, int*)':
dreaming.cpp:59:9: error: 'graf' was not declared in this scope
59 | graf[a[i]].push_back({b[i], t[i]});
| ^~~~
dreaming.cpp:62:10: error: 'used' was not declared in this scope
62 | fill(used, used + n, 0);
| ^~~~
dreaming.cpp:63:10: error: 'dist_down' was not declared in this scope; did you mean 'dfs_down'?
63 | fill(dist_down, dist_down + n, 0);
| ^~~~~~~~~
| dfs_down
dreaming.cpp:64:10: error: 'dist_up' was not declared in this scope
64 | fill(dist_up, dist_up + n, 0);
| ^~~~~~~