dreaming.cpp: In function 'pl2 dfs(int)':
dreaming.cpp:29:2: error: 'q' was not declared in this scope
29 | q.push({st, 0});
| ^
dreaming.cpp:32:23: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type' {aka 'struct std::pair<long long int, long long int>'} has no member named 'fr'
32 | int now = stk.top().fr; ll dst = stk.top().sc;
| ^~
dreaming.cpp:32:46: error: '__gnu_cxx::__alloc_traits<std::allocator<std::pair<long long int, long long int> >, std::pair<long long int, long long int> >::value_type' {aka 'struct std::pair<long long int, long long int>'} has no member named 'sc'
32 | int now = stk.top().fr; ll dst = stk.top().sc;
| ^~
dreaming.cpp:33:11: error: 'pl2' {aka 'struct std::pair<long long int, long long int>'} has no member named 'sc'
33 | if (res.sc < dst){ res = {now, dst}; }
| ^~
dreaming.cpp:35:16: error: 'pl2' {aka 'struct std::pair<long long int, long long int>'} has no member named 'fr'
35 | int nxt = p.fr; ll d = p.sc;
| ^~
dreaming.cpp:35:29: error: 'pl2' {aka 'struct std::pair<long long int, long long int>'} has no member named 'sc'
35 | int nxt = p.fr; ll d = p.sc;
| ^~
dreaming.cpp: In function 'int travelTime(int, int, int, int*, int*, int*)':
dreaming.cpp:50:6: error: 'm' was not declared in this scope
50 | if (m == n-2){
| ^
dreaming.cpp:50:11: error: 'n' was not declared in this scope
50 | if (m == n-2){
| ^
dreaming.cpp:58:27: error: 'bfs' was not declared in this scope; did you mean 'dfs'?
58 | ans = min( ans, bfs( bfs(0).fr ).sc );
| ^~~
| dfs
dreaming.cpp:58:22: error: 'bfs' was not declared in this scope; did you mean 'dfs'?
58 | ans = min( ans, bfs( bfs(0).fr ).sc );
| ^~~
| dfs