| Problem | paint |
|---|---|
| User | Username101 |
| Submission Time | 2026-02-19 14:50:10 |
| Score | 0 |
| Max Time | N/A |
| Max Memory | N/A |
Owl Get a Life
paint.cpp: In function ‘int main()’:
paint.cpp:21:15: error: no match for ‘operator*’ (operand type is ‘std::pair<int, int>’)
21 | ttl += ((*i).first * days) + v[(*i).second];
| ^~
In file included from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from paint.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:
paint.cpp:21:16: note: ‘std::pair<int, int>’ is not derived from ‘const std::complex<_Tp>’
21 | ttl += ((*i).first * days) + v[(*i).second];
| ^
In file incl