Problem | thumper2 |
---|---|
User | kiwiwi |
Submission Time | 2025-05-23 10:10:31 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
thumper2.cpp: In function ‘int main()’:
thumper2.cpp:47:48: error: no matching function for call to ‘max_element(<brace-enclosed initializer list>)’
47 | int maxSize = *max_element({maxRow, maxCol}) + 1; // Extra size for Fenwick Tree
| ^
In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from thumper2.cpp:1:
/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:
thumper2.cpp:47:48: note: candidate expects 2 arguments, 1 provided
47 | int maxSize = *max_element({maxRow, maxCol}) + 1; // Extra size for