constellation3.cpp: In function 'std::vector<std::pair<int, long long int> > solve(int, int)':
constellation3.cpp:30:16: error: no matching function for call to 'sort(std::vector<std::pair<int, long long int> >&)'
30 | sort(mas[l]);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from constellation3.cpp:3:
/usr/include/c++/10/bits/stl_algo.h:4849:5: note: candidate: 'template<class _RAIter> void std::sort(_RAIter, _RAIter)'
4849 | sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
| ^~~~
/usr/include/c++/10/bits/stl_algo.h:4849:5: note: template argument deduction/substitution failed:
constellation3.cpp:30:16: note: candidate expects 2 arguments, 1 provided
30 | sort(mas[l]);
| ^
In file included from /usr/include/c++/10/algorithm:62,
from constellation3.cpp:3:
/usr/include/c++/10/bits/stl_algo.h:4880:5: note: candidate: 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'
4880 | sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
| ^~~~
/usr/include/c++/10/bits/stl_algo.h:4880:5: note: template argument deduction/substitution failed:
constellation3.cpp:30:16: note: candidate expects 3 arguments, 1 provided
30 | sort(mas[l]);
| ^
constellation3.cpp:63:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
63 | while (j + 1 < arr2.size() && arr2[j + 1].first <= p.first) {
| ~~~~~~^~~~~~~~~~~~~
constellation3.cpp:78:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<std::pair<int, long long int> >::size_type' {aka 'long unsigned int'} [-Wsign-compare]
78 | while (j + 1 < arr1.size() && arr1[j + 1].first <= p.first) {
| ~~~~~~^~~~~~~~~~~~~