Problem gecko
User R9q5P8
Submission Time 2025-10-27 11:54:28
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gecko.cpp: In function ‘int main()’:
gecko.cpp:34:48: error: no matching function for call to ‘max_element(__gnu_cxx::__alloc_traits<std::allocator<std::vector<int> >, std::vector<int> >::value_type&)’
34 | cout << *max_element(numGrid[numGrid.size()-1]);
| ^
In file included from /usr/include/c++/9/algorithm:62,
from gecko.cpp:3:
/usr/include/c++/9/bits/stl_algo.h:5713:5: note: candidate: ‘template<class _FIter> constexpr _FIter std::max_element(_FIter, _FIter)’
5713 | max_element(_ForwardIterator __first, _ForwardIterator __last)
| ^~~~~~~~~~~
/usr/include/c++/9/bits/stl_algo.h:5713:5: note: template argument deduction/substitution failed:
gecko.cpp:34:48: note: candidate expects 2 arguments, 1 provided
34 | cout << *max_element(numGrid[numGrid.size()-1]);
| ^