dreaming.cpp:3:1: error: 'vector' does not name a type
3 | vector<int>v[1<<17];
| ^~~~~~
dreaming.cpp: In function 'void dfs(int, int)':
dreaming.cpp:5:2: error: 'f' was not declared in this scope
5 | f[x]++;
| ^
dreaming.cpp:7:17: error: 'max' was not declared in this scope
7 | if(o>1)D=min(D,max(d[1][x],d[2][x]));
| ^~~
dreaming.cpp:7:11: error: 'min' was not declared in this scope
7 | if(o>1)D=min(D,max(d[1][x],d[2][x]));
| ^~~
dreaming.cpp:8:13: error: 'v' was not declared in this scope
8 | for(auto y:v[x])if(f[y.first]<o)d[o][y.first]=x+y.second,dfs(y.first,o);
| ^
dreaming.cpp: In function 'int travelTime(int, int, int, int*, int*, int*)':
dreaming.cpp:11:15: error: 'v' was not declared in this scope
11 | while(M--)v[A[i]].pb({B[i],T[i]}),v[B[i]].pb({A[i],T[i]});
| ^
dreaming.cpp:12:19: error: 'f' was not declared in this scope
12 | while(N--)if(!f[N])dfs(N,0),dfs(e,1),dfs(e,2),F=min(D,F),S=max(D,S),D=0;
| ^
dreaming.cpp:12:53: error: 'min' was not declared in this scope
12 | while(N--)if(!f[N])dfs(N,0),dfs(e,1),dfs(e,2),F=min(D,F),S=max(D,S),D=0;
| ^~~
dreaming.cpp:12:64: error: 'max' was not declared in this scope
12 | while(N--)if(!f[N])dfs(N,0),dfs(e,1),dfs(e,2),F=min(D,F),S=max(D,S),D=0;
| ^~~