aplusb.cpp: In lambda function:
aplusb.cpp:15:39: error: no matching function for call to 'std::priority_queue<std::pair<int, std::pair<int, int> >, std::vector<std::pair<int, std::pair<int, int> > >, std::greater<std::pair<int, std::pair<int, int> > > >::emplace(__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type, <brace-enclosed initializer list>)'
15 | pq.emplace(a[i] + b[j], {i, j});
| ^
In file included from /usr/include/c++/10/queue:64,
from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:86,
from aplusb.cpp:1:
/usr/include/c++/10/bits/stl_queue.h:656:2: note: candidate: 'void std::priority_queue<_Tp, _Sequence, _Compare>::emplace(_Args&& ...) [with _Args = {}; _Tp = std::pair<int, std::pair<int, int> >; _Sequence = std::vector<std::pair<int, std::pair<int, int> > >; _Compare = std::greater<std::pair<int, std::pair<int, int> > >]'
656 | emplace(_Args&&... __args)
| ^~~~~~~
/usr/include/c++/10/bits/stl_queue.h:656:2: note: candidate expects 0 arguments, 2 provided