Problem | special |
---|---|
User | Sans12345 |
Submission Time | 2023-01-10 23:45:17 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
special.cpp: In function ‘int main()’:
special.cpp:16:16: error: no match for ‘operator*’ (operand type is ‘std::set<int>’)
16 | int val = (*pos[arr[i]%10]).rbegin();
| ^~~~~~~~~~~~~~~
In file included from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from special.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:
special.cpp:16:30: note: ‘std::set<int>’ is not derived from ‘const std::complex<_Tp>’
16 | int val = (*pos[arr[i]%10]).rbegin();
| ^
In f