Problem | troubles |
---|---|
User | shoryu386 |
Submission Time | 2023-03-11 17:11:48 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
troubles.cpp: In function ‘long long int recur(long long int)’:
troubles.cpp:17:41: error: no match for ‘operator*’ (operand types are ‘std::pair<long long int, long long int>’ and ‘long long int’)
17 | dp[index] = min(dp[index], arr[index] * maxB + recur(x-1));
| ~~~~~~~~~~ ^ ~~~~
| | |
| | long long int
| std::pair<long long int, long long int>
In file included from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from troubles.cpp:1:
/usr/include/c++/9/complex:391:5: note: candidate: ‘template<class _Tp> std::complex<_Tp> std::operator*(const std::complex<_Tp>&, const std::complex<_Tp>&)’
391 | operator*(const complex<_Tp>& __x, const complex<_Tp>& _