Problem problemsetter
User Memeathon
Submission Time 2025-03-19 12:24:18
Score 0
Max Time N/A
Max Memory N/A

Compile Error

problemsetter.cpp: In function ‘int main()’:
problemsetter.cpp:18:21: error: no matching function for call to ‘sort(std::vector<std::tuple<int, int> >&, std::greater<void>)’
18 | sort(s, greater<>());
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from problemsetter.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:4863:5: note: candidate: ‘template<class _RAIter> void std::sort(_RAIter, _RAIter)’
4863 | sort(_RandomAccessIterator __first, _RandomAccessIterator __last)
| ^~~~
/usr/include/c++/9/bits/stl_algo.h:4863:5: note: template argument deduction/substitution failed:
problemsetter.cpp:18:21: note: deduced conflicting types for parameter ‘_RAIter’ (‘std::vector<std::tuple<int, int> >’ and ‘std::greater<void>’)
18 | sort(s, greater<>());