Problem | foreveralone |
---|---|
User | blob |
Submission Time | 2023-11-20 09:49:47 |
Score | 0 |
Max Time | N/A |
Max Memory | N/A |
Owl Get a Life
foreveralone.cpp: In function ‘int main()’:
foreveralone.cpp:17:7: error: no match for ‘operator*’ (operand type is ‘std::vector<int>’)
17 | if (*adj[i] == *adj[i] + 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 foreveralone.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:
foreveralone.cpp:17:13: note: ‘std::vector<int>’ is not derived from ‘const std::complex<_Tp>’
17 | if (*adj[i] == *adj[i] + 1){
| ^
In file included from /usr/include/