zamjene.cpp: In function 'int main()':
zamjene.cpp:112:34: error: no matching function for call to 'merge(ll&, ll&)'
merge(a,b);
^
In file included from /usr/include/c++/7/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:65,
from zamjene.cpp:2:
/usr/include/c++/7/bits/stl_algo.h:4918:5: note: candidate: template<class _IIter1, class _IIter2, class _OIter> _OIter std::merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter)
merge(_InputIterator1 __first1, _InputIterator1 __last1,
^~~~~
/usr/include/c++/7/bits/stl_algo.h:4918:5: note: template argument deduction/substitution failed:
zamjene.cpp:112:34: note: candidate expects 5 arguments, 2 provided
merge(a,b);
^
In file included from /usr/include/c++/7/algorithm:62:0,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:65,
from zamjene.cpp:2:
/usr/include/c++/7/bits/stl_algo.h:4968:5: note: candidate: template<class _IIter1, class _IIter2, class _OIter, class _Compare> _OIter std::merge(_IIter1, _IIter1, _IIter2, _IIter2, _OIter, _Compare)
merge(_InputIterator1 __first1, _InputIterator1 __last1,
^~~~~
/usr/include/c++/7/bits/stl_algo.h:4968:5: note: template argument deduction/substitution failed:
zamjene.cpp:112:34: note: candidate expects 6 arguments, 2 provided
merge(a,b);
^