Problem gecko
User KingH
Submission Time 2026-02-19 14:38:23
Score 0
Max Time N/A
Max Memory N/A

Compile Error

gecko.cpp: In function ‘int main()’:
gecko.cpp:25:4: error: ‘dp’ was not declared in this scope
25 | dp[i][j] = best[i][j] + high;
| ^~
gecko.cpp:30:36: error: no matching function for call to ‘max(long long int&, __gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type&)’
30 | answer = max(answer, best[h-1][j])
| ^
In file included from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:41,
from gecko.cpp:1:
/usr/include/c++/9/bits/stl_algobase.h:222:5: note: candidate: ‘template<class _Tp> constexpr const _Tp& std::max(const _Tp&, const _Tp&)’
222 | max(const _Tp& __a, const _Tp& __b)
| ^~~
/usr/include/c++/9/bits/stl_algobase.h:222:5: note: template argument deduction/substitution failed:
gecko.cpp:30:36: note