| Problem | foodchain |
|---|---|
| User | bluesky2113 |
| Submission Time | 2025-02-21 20:32:31 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
foodchain.cpp: In function ‘int main()’:
foodchain.cpp:15:20: error: no match for ‘operator*’ (operand types are ‘long long int’ and ‘std::vector<long long int>’)
15 | result = (result * a) % mod;
| ~~~~~~ ^ ~
| | |
| | std::vector<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 foodchain.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>& __y)
| ^~~~~~~~
/usr/include/c++/9/complex:391:5: note: template argument deduction/substitution failed:
foodchain.cpp:15:22: note: mismatched types