Problem adjmatrix
User Daembt
Submission Time 2026-01-09 16:14:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

adjmatrix.cpp: In function ‘int main()’:
adjmatrix.cpp:21:55: error: no match for ‘operator==’ (operand types are ‘__gnu_cxx::__normal_iterator<int*, std::vector<int> >’ and ‘int’)
21 | if (find(dict[curr].begin(),dict[curr].end(),waa) == waa) {
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^~ ~~~
| | |
| | int
| __gnu_cxx::__normal_iterator<int*, std::vector<int> >
In file included from /usr/include/c++/9/unordered_map:40,
from adjmatrix.cpp:1:
/usr/include/c++/9/bits/allocator.h:167:5: note: candidate: ‘template<class _T1, class _T2> bool std::operator==(const std::allocator<_Tp1>&, const std::allocator<_T2>&)’
167 | operator==(const allocator<_T1>&, const allocator<_T2>&)
| ^~~~~~~~
/usr/include/c++/9/