/in/foo.cc: In function 'int main()':
/in/foo.cc:12:13: error: no matching function for call to 'sort(<unresolved overloaded function type>, <unresolved overloaded function type>)'
   12 |         sort(n.begin, n.end);
      |         ~~~~^~~~~~~~~~~~~~~~
In file included from /usr/include/c++/12/algorithm:61,
                 from /in/foo.cc:3:
/usr/include/c++/12/bits/stl_algo.h:4810:5: note: candidate: 'template<class _RAIter> void std::sort(_RAIter, _RAIter)'
 4810 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
      |     ^~~~
/usr/include/c++/12/bits/stl_algo.h:4810:5: note:   template argument deduction/substitution failed:
/in/foo.cc:12:13: note:   couldn't deduce template parameter '_RAIter'
   12 |         sort(n.begin, n.end);
      |         ~~~~^~~~~~~~~~~~~~~~
/usr/include/c++/12/bits/stl_algo.h:4841:5: note: candidate: 'template<class _RAIter, class _Compare> void std::sort(_RAIter, _RAIter, _Compare)'
 4841 |     sort(_RandomAccessIterator __first, _RandomAccessIterator __last,
      |     ^~~~
/usr/include/c++/12/bits/stl_algo.h:4841:5: note:   template argument deduction/substitution failed:
/in/foo.cc:12:13: note:   candidate expects 3 arguments, 2 provided
   12 |         sort(n.begin, n.end);
      |         ~~~~^~~~~~~~~~~~~~~~