Problem restaurant
User R9q5P8
Submission Time 2025-12-28 19:02:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

restaurant.cpp: In function ‘int main()’:
restaurant.cpp:29:23: error: no matching function for call to ‘min_element(std::vector<int>&)’
29 | cout << min_element(c);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from restaurant.cpp:1:
/usr/include/c++/9/bits/stl_algo.h:5649:12: note: candidate: ‘template<class _FIter> constexpr _FIter std::min_element(_FIter, _FIter)’
5649 | inline min_element(_ForwardIterator __first, _ForwardIterator __last)
| ^~~~~~~~~~~
/usr/include/c++/9/bits/stl_algo.h:5649:12: note: template argument deduction/substitution failed:
restaurant.cpp:29:23: note: candidate expects 2 arguments, 1 provided
29 | cout << min_element(c);
| ^
In file included from /usr/include/c++/9/algorithm:62,