Main.cc: In function ‘void operator+=(std::vector >&, const std::vector >&)’:
Main.cc:21:69: error: wrong number of template arguments (0, should be 1)
auto pos = lower_bound(lhs.begin(), lhs.end(), num, greater<>());
^
In file included from /usr/include/c++/7/functional:49:0,
from Main.cc:2:
/usr/include/c++/7/bits/stl_function.h:371:12: note: provided for ‘template struct std::greater’
struct greater : public binary_function<_Tp, _Tp, bool>
^~~~~~~
Main.cc: In function ‘void operator+=(std::vector >&, const std::pair&)’:
Main.cc:35:65: error: wrong number of template arguments (0, should be 1)
auto pos = lower_bound(lhs.begin(), lhs.end(), rhs, greater<>());
^
In file included from /usr/include/c++/7/functional:49:0,
from Main.cc:2:
/usr/include/c++/7/bits/stl_function.h:371:12: note: provided for ‘template struct std::greater’
struct greater : public binary_function<_Tp, _Tp, bool>
^~~~~~~