escape_route.cpp: In function 'std::pair<long long int, long long int> D(std::pair<long long int, long long int>, edge)':
escape_route.cpp:13:11: error: request for member 'second' in 'U.std::pair<long long int, long long int>::first', which is of non-class type 'long long int'
13 | #define s second
| ^~~~~~
escape_route.cpp:66:13: note: in expansion of macro 's'
66 | if (U.f.s + E.l > E.c){
| ^
escape_route.cpp:12:11: error: request for member 'first' in 'U.std::pair<long long int, long long int>::first', which is of non-class type 'long long int'
12 | #define f first
| ^~~~~
escape_route.cpp:67:13: note: in expansion of macro 'f'
67 | U.f.f += SS-U.f.s;
| ^
escape_route.cpp:13:11: error: request for member 'second' in 'U.std::pair<long long int, long long int>::first', which is of non-class type 'long long int'
13 | #define s second
| ^~~~~~
escape_route.cpp:67:25: note: in expansion of macro 's'
67 | U.f.f += SS-U.f.s;
| ^
escape_route.cpp:13:11: error: request for member 'second' in 'U.std::pair<long long int, long long int>::first', which is of non-class type 'long long int'
13 | #define s second
| ^~~~~~
escape_route.cpp:68:13: note: in expansion of macro 's'
68 | U.f.s = 0;
| ^
escape_route.cpp:12:11: error: request for member 'first' in 'U.std::pair<long long int, long long int>::first', which is of non-class type 'long long int'
12 | #define f first
| ^~~~~
escape_route.cpp:70:13: note: in expansion of macro 'f'
70 | U.f.f += E.l;
| ^
escape_route.cpp:13:11: error: request for member 'second' in 'U.std::pair<long long int, long long int>::first', which is of non-class type 'long long int'
13 | #define s second
| ^~~~~~
escape_route.cpp:71:13: note: in expansion of macro 's'
71 | U.f.s = E.l;
| ^
escape_route.cpp:12:11: error: request for member 'first' in 'U.std::pair<long long int, long long int>::first', which is of non-class type 'long long int'
12 | #define f first
| ^~~~~
escape_route.cpp:74:13: note: in expansion of macro 'f'
74 | U.f.f += E.l;
| ^
escape_route.cpp:13:11: error: request for member 'second' in 'U.std::pair<long long int, long long int>::first', which is of non-class type 'long long int'
13 | #define s second
| ^~~~~~
escape_route.cpp:75:13: note: in expansion of macro 's'
75 | U.f.s += E.l;
| ^
escape_route.cpp:12:11: error: could not convert 'U.std::pair<long long int, long long int>::first' from 'long long int' to 'std::pair<long long int, long long int>'
12 | #define f first
| ^
| |
| long long int
escape_route.cpp:77:14: note: in expansion of macro 'f'
77 | return U.f;
| ^
escape_route.cpp: In function 'std::vector<long long int> calculate_necessary_time(int, int, long long int, int, std::vector<int>, std::vector<int>, std::vector<long long int>, std::vector<long long int>, std::vector<int>, std::vector<int>, std::vector<long long int>)':
escape_route.cpp:85:18: warning: narrowing conversion of 'v' from 'long long int' to 'int' [-Wnarrowing]
85 | g[u].pb({v, a, b});
| ^
escape_route.cpp:85:21: warning: narrowing conversion of 'a' from 'long long int' to 'int' [-Wnarrowing]
85 | g[u].pb({v, a, b});
| ^
escape_route.cpp:85:24: warning: narrowing conversion of 'b' from 'long long int' to 'int' [-Wnarrowing]
85 | g[u].pb({v, a, b});
| ^
escape_route.cpp:86:18: warning: narrowing conversion of 'u' from 'long long int' to 'int' [-Wnarrowing]
86 | g[v].pb({u, a, b});
| ^
escape_route.cpp:86:21: warning: narrowing conversion of 'a' from 'long long int' to 'int' [-Wnarrowing]
86 | g[v].pb({u, a, b});
| ^
escape_route.cpp:86:24: warning: narrowing conversion of 'b' from 'long long int' to 'int' [-Wnarrowing]
86 | g[v].pb({u, a, b});
| ^
escape_route.cpp:92:30: error: no matching function for call to 'std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater<std::pair<long long int, long long int> > >::push(<brace-enclosed initializer list>)'
92 | pq.push({{0ll, t}, a}); // mod and node
| ^
In file included from /usr/include/c++/10/queue:64,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86,
from escape_route.cpp:1:
/usr/include/c++/10/bits/stl_queue.h:640:7: note: candidate: 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = std::pair<long long int, long long int>; _Sequence = std::vector<std::pair<long long int, long long int> >; _Compare = std::greater<std::pair<long long int, long long int> >; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::pair<long long int, long long int>]'
640 | push(const value_type& __x)
| ^~~~
/usr/include/c++/10/bits/stl_queue.h:640:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const std::pair<long long int, long long int>&'}
640 | push(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/10/bits/stl_queue.h:648:7: note: candidate: 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = std::pair<long long int, long long int>; _Sequence = std::vector<std::pair<long long int, long long int> >; _Compare = std::greater<std::pair<long long int, long long int> >; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::pair<long long int, long long int>]'
648 | push(value_type&& __x)
| ^~~~
/usr/include/c++/10/bits/stl_queue.h:648:25: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater<std::pair<long long int, long long int> > >::value_type&&' {aka 'std::pair<long long int, long long int>&&'}
648 | push(value_type&& __x)
| ~~~~~~~~~~~~~^~~
escape_route.cpp:109:48: error: no matching function for call to 'std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater<std::pair<long long int, long long int> > >::push(<brace-enclosed initializer list>)'
109 | pq.push({dis[y.v], y.v});
| ^
In file included from /usr/include/c++/10/queue:64,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86,
from escape_route.cpp:1:
/usr/include/c++/10/bits/stl_queue.h:640:7: note: candidate: 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = std::pair<long long int, long long int>; _Sequence = std::vector<std::pair<long long int, long long int> >; _Compare = std::greater<std::pair<long long int, long long int> >; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::pair<long long int, long long int>]'
640 | push(const value_type& __x)
| ^~~~
/usr/include/c++/10/bits/stl_queue.h:640:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const std::pair<long long int, long long int>&'}
640 | push(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/10/bits/stl_queue.h:648:7: note: candidate: 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = std::pair<long long int, long long int>; _Sequence = std::vector<std::pair<long long int, long long int> >; _Compare = std::greater<std::pair<long long int, long long int> >; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::pair<long long int, long long int>]'
648 | push(value_type&& __x)
| ^~~~
/usr/include/c++/10/bits/stl_queue.h:648:25: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::priority_queue<std::pair<long long int, long long int>, std::vector<std::pair<long long int, long long int> >, std::greater<std::pair<long long int, long long int> > >::value_type&&' {aka 'std::pair<long long int, long long int>&&'}
648 | push(value_type&& __x)
| ~~~~~~~~~~~~~^~~