Problem | belittle |
---|---|
User | PlayVoltz |
Submission Time | 2023-05-19 16:55:28 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
belittle.cpp: In function ‘int main()’:
belittle.cpp:37:32: error: no matching function for call to ‘min_element(std::vector<int>&)’
37 | cout<<min((*min_element(Lvect)**max_element(Lvect)+num2), (*min_element(Rvect)**max_element(Rvect)+num3));
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from belittle.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:
belittle.cpp:37:32: note: candidate expects 2 arguments, 1 provided
37 | cout<<min((*min_element(Lvect)**max_element(Lvect)