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

Compile Error

gecko.cpp: In function ‘int main()’:
gecko.cpp:14:56: error: expected ‘)’ before ‘;’ token
14 | vector<vector<int>> numGrid(rows, vector<int>(cols, 0);
| ~ ^
| )
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++/