Algoritmų sudėtingumas

Taškai: 0

Compile: FAIL

alg.cpp: In function ‘int lyginimas(std::__cxx11::string, std::__cxx11::string)’: alg.cpp:74:74: error: no matching function for call to ‘find(std::vector<char>::iterator, std::vector<char>::iterator, __gnu_cxx::__alloc_traits<std::allocator<char> >::value_type&)’ if(find(kintamieji.begin(), kintamieji.end(), funkcijos[i][t]) == kintamieji.end()) ^ In file included from /usr/include/c++/5/bits/locale_facets.h:48:0, from /usr/include/c++/5/bits/basic_ios.h:37, from /usr/include/c++/5/ios:44, from /usr/include/c++/5/ostream:38, from /usr/include/c++/5/iostream:39, from alg.cpp:1: /usr/include/c++/5/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++/5/bits/streambuf_iterator.h:369:5: note: template argument deduction/substitution failed: alg.cpp:74:74: note: ‘__gnu_cxx::__normal_iterator<char*, std::vector<char> >’ is not derived from ‘std::istreambuf_iterator<_CharT>’ if(find(kintamieji.begin(), kintamieji.end(), funkcijos[i][t]) == kintamieji.end()) ^

nr.resulttimemessage