dreaming.cpp: In function 'int travelTime(int, int, int, int*, int*, int*)':
dreaming.cpp:13:12: error: 'second' was not declared in this scope
13 | #define sd second
| ^~~~~~
dreaming.cpp:99:35: note: in expansion of macro 'sd'
99 | h.push({u.ft,max(u.sd+k,v,sd)});
| ^~
dreaming.cpp:99:39: error: no matching function for call to 'std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, cmp>::push(<brace-enclosed initializer list>)'
99 | h.push({u.ft,max(u.sd+k,v,sd)});
| ^
In file included from /usr/include/c++/9/queue:64,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:86,
from dreaming.cpp:2:
/usr/include/c++/9/bits/stl_queue.h:627:7: note: candidate: 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(const value_type&) [with _Tp = std::pair<int, int>; _Sequence = std::vector<std::pair<int, int> >; _Compare = cmp; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::pair<int, int>]'
627 | push(const value_type& __x)
| ^~~~
/usr/include/c++/9/bits/stl_queue.h:627:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'const value_type&' {aka 'const std::pair<int, int>&'}
627 | push(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/9/bits/stl_queue.h:635:7: note: candidate: 'void std::priority_queue<_Tp, _Sequence, _Compare>::push(std::priority_queue<_Tp, _Sequence, _Compare>::value_type&&) [with _Tp = std::pair<int, int>; _Sequence = std::vector<std::pair<int, int> >; _Compare = cmp; std::priority_queue<_Tp, _Sequence, _Compare>::value_type = std::pair<int, int>]'
635 | push(value_type&& __x)
| ^~~~
/usr/include/c++/9/bits/stl_queue.h:635:25: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'std::priority_queue<std::pair<int, int>, std::vector<std::pair<int, int> >, cmp>::value_type&&' {aka 'std::pair<int, int>&&'}
635 | push(value_type&& __x)
| ~~~~~~~~~~~~~^~~
dreaming.cpp:78:11: warning: unused variable 'j' [-Wunused-variable]
78 | int i,j,a,b,c,x,y,z,n,m,w,k,t;
| ^
dreaming.cpp:78:17: warning: unused variable 'c' [-Wunused-variable]
78 | int i,j,a,b,c,x,y,z,n,m,w,k,t;
| ^
dreaming.cpp:78:19: warning: unused variable 'x' [-Wunused-variable]
78 | int i,j,a,b,c,x,y,z,n,m,w,k,t;
| ^
dreaming.cpp:78:21: warning: unused variable 'y' [-Wunused-variable]
78 | int i,j,a,b,c,x,y,z,n,m,w,k,t;
| ^
dreaming.cpp:78:23: warning: unused variable 'z' [-Wunused-variable]
78 | int i,j,a,b,c,x,y,z,n,m,w,k,t;
| ^
dreaming.cpp:78:33: warning: unused variable 't' [-Wunused-variable]
78 | int i,j,a,b,c,x,y,z,n,m,w,k,t;
| ^