Borderou de evaluare (job #2742117)

Utilizator vladalex420@gmail.comLuta Vlad Alexandru [email protected] Data 20 aprilie 2021 11:35:10
Problema Hashuri Status done
Runda Arhiva educationala Compilator cpp-64 | Vezi sursa
Scor 0

Raport evaluator

Eroare de compilare: main.cpp: In member function 'void HashMap::addElement(int)': main.cpp:23:67: error: no matching function for call to 'find(std::__cxx11::list<int>::iterator, std::__cxx11::list<int>::iterator, int&)' if( std::find(elements[index].begin(), elements[index].end(), el) == elements[index].end() ) ^ In file included from /usr/include/c++/6/bits/locale_facets.h:48:0, from /usr/include/c++/6/bits/basic_ios.h:37, from /usr/include/c++/6/ios:44, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from main.cpp:1: /usr/include/c++/6/bits/streambuf_iterator.h:369:5: note: candidate: template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(std::istreambuf_iterator<_CharT>, std::istreambuf_iterator<_CharT>, const _CharT2&) find(istreambuf_iterator<_CharT> __first, ^~~~ /usr/include/c++/6/bits/streambuf_iterator.h:369:5: note: template argument deduction/substitution failed: main.cpp:23:67: note: 'std::_List_iterator<int>' is not derived from 'std::istreambuf_iterator<_CharT>' if( std::find(elements[index].begin(), elements[index].end(), el) == elements[index].end() ) ^ main.cpp: In member function 'int HashMap::isElement(int)': main.cpp:39:67: error: no matching function for call to 'find(std::__cxx11::list<int>::iterator, std::__cxx11::list<int>::iterator, int&)' if (std::find(elements[index].begin(), elements[index].end(), el) != elements[index].end()) ^ In file included from /usr/include/c++/6/bits/locale_facets.h:48:0, from /usr/include/c++/6/bits/basic_ios.h:37, from /usr/include/c++/6/ios:44, from /usr/include/c++/6/ostream:38, from /usr/include/c++/6/iostream:39, from main.cpp:1: /usr/include/c++/6/bits/streambuf_iterator.h:369:5: note: candidate: template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(std::istreambuf_iterator<_CharT>, std::istreambuf_iterator<_CharT>, const _CharT2&) find(istreambuf_iterator<_CharT> __first, ^~~~ /usr/include/c++/6/bits/streambuf_iterator.h:369:5: note: template argument deduction/substitution failed: main.cpp:39:67: note: 'std::_List_iterator<int>' is not derived from 'std::istreambuf_iterator<_CharT>' if (std::find(elements[index].begin(), elements[index].end(), el) != elements[index].end()) ^ main.cpp:48:2: warning: control reaches end of non-void function [-Wreturn-type] } ^ Non zero exit status: 1

Ceva nu functioneaza?