| Problem | factorymachines |
|---|---|
| User | SY |
| Submission Time | 2025-06-19 09:02:33 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
factorymachines.cpp: In function ‘int main()’:
factorymachines.cpp:11:31: error: no matching function for call to ‘min_element(std::vector<long long int>&)’
11 | int l = 1, r = *min_element(t)*k;
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from factorymachines.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:
factorymachines.cpp:11:31: note: candidate expects 2 arguments, 1 provided
11 | int l = 1, r = *min_element(t)*k;
| ^
In file included fro