Problem potatoqueue
User yc
Submission Time 2025-05-29 18:10:37
Score 0
Max Time N/A
Max Memory N/A

Compile Error

potatoqueue.cpp: In function ‘void join(int)’:
potatoqueue.cpp:14:7: error: no match for ‘operator*’ (operand type is ‘std::array<int, 3>’)
14 | if (*it[0]>=H) a = 1;
In file included from /usr/include/c++/9/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:54,
from potatoqueue.cpp:2:
/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:
potatoqueue.cpp:14:12: note: ‘std::array<int, 3>’ is not derived from ‘const std::complex<_Tp>’
14 | if (*it[0]>=H) a = 1;
| ^
In file included from /usr/include/c++/9/ccomplex:39,