currencies.cpp: In function 'int main()':
currencies.cpp:238:37: error: no matching function for call to 'std::vector<Node*>::push_back(<brace-enclosed initializer list>)'
238 | vq.push_back({s,ldh});
| ~~~~~~~~~~~~^~~~~~~~~
In file included from /usr/include/c++/11/vector:67,
from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from currencies.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:1187:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Node*; _Alloc = std::allocator<Node*>; std::vector<_Tp, _Alloc>::value_type = Node*]'
1187 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_vector.h:1187:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'Node* const&'
1187 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/stl_vector.h:1203:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Node*; _Alloc = std::allocator<Node*>; std::vector<_Tp, _Alloc>::value_type = Node*]'
1203 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_vector.h:1203:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'Node*&&'
1203 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
currencies.cpp:245:37: error: no matching function for call to 'std::vector<Node*>::push_back(<brace-enclosed initializer list>)'
245 | vq.push_back({t,ldh});
| ~~~~~~~~~~~~^~~~~~~~~
In file included from /usr/include/c++/11/vector:67,
from /usr/include/c++/11/functional:62,
from /usr/include/c++/11/pstl/glue_algorithm_defs.h:13,
from /usr/include/c++/11/algorithm:74,
from /usr/include/x86_64-linux-gnu/c++/11/bits/stdc++.h:65,
from currencies.cpp:1:
/usr/include/c++/11/bits/stl_vector.h:1187:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(const value_type&) [with _Tp = Node*; _Alloc = std::allocator<Node*>; std::vector<_Tp, _Alloc>::value_type = Node*]'
1187 | push_back(const value_type& __x)
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_vector.h:1187:35: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'Node* const&'
1187 | push_back(const value_type& __x)
| ~~~~~~~~~~~~~~~~~~^~~
/usr/include/c++/11/bits/stl_vector.h:1203:7: note: candidate: 'void std::vector<_Tp, _Alloc>::push_back(std::vector<_Tp, _Alloc>::value_type&&) [with _Tp = Node*; _Alloc = std::allocator<Node*>; std::vector<_Tp, _Alloc>::value_type = Node*]'
1203 | push_back(value_type&& __x)
| ^~~~~~~~~
/usr/include/c++/11/bits/stl_vector.h:1203:30: note: no known conversion for argument 1 from '<brace-enclosed initializer list>' to 'Node*&&'
1203 | push_back(value_type&& __x)
| ~~~~~~~~~~~~~^~~
currencies.cpp:249:31: error: invalid initialization of reference of type 'std::vector<std::pair<long long int, long long int> >&' from expression of type 'std::vector<Node*>'
249 | ll maxr = qry(vq,y);
| ^~
currencies.cpp:125:21: note: in passing argument 1 of 'll qry(std::vector<std::pair<long long int, long long int> >&, ll)'
125 | ll qry(vector<pii>& v1, ll y) {
| ~~~~~~~~~~~~~^~