Problem | mountains |
---|---|
User | Kenniene |
Submission Time | 2025-03-04 17:34:19 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
mountains.cpp: In function ‘int main()’:
mountains.cpp:78:43: error: no matching function for call to ‘get(int, int, long long int&, int, long long int, long long int&)’
78 | res += get(1, 1, n, 1, i - 1, a[i]) * get(1, 1, n, i + 1,n, a[i]);
| ^
In file included from /usr/include/c++/9/algorithm:60,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from mountains.cpp:1:
/usr/include/c++/9/utility:219:5: note: candidate: ‘template<long unsigned int _Int, class _Tp1, class _Tp2> constexpr typename std::tuple_element<_Int, std::pair<_Tp1, _Tp2> >::type& std::get(std::pair<_Tp1, _Tp2>&)’
219 | get(std::pair<_Tp1, _Tp2>& __in) noexcept
| ^~~
/usr/include/c++/9/utility:219:5: note: template argument deduction/substitution failed:
mountains.cpp:78:43: note: mismatched types ‘std::pair<_Tp1, _Tp2>’ and ‘in