ho_t2.cpp: In function 'int main()':
ho_t2.cpp:55:64: error: no matching function for call to 'find(__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type, int&, std::vector<int>&)'
55 | int position_of_j = find(prefixj[i - 1] + k, i, prefixj);
| ^
In file included from /usr/include/c++/10/bits/locale_facets.h:48,
from /usr/include/c++/10/bits/basic_ios.h:37,
from /usr/include/c++/10/ios:44,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from ho_t2.cpp:1:
/usr/include/c++/10/bits/streambuf_iterator.h:422: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&)'
422 | find(istreambuf_iterator<_CharT> __first,
| ^~~~
/usr/include/c++/10/bits/streambuf_iterator.h:422:5: note: template argument deduction/substitution failed:
ho_t2.cpp:55:64: note: mismatched types 'std::istreambuf_iterator<_CharT>' and 'int'
55 | int position_of_j = find(prefixj[i - 1] + k, i, prefixj);
| ^
ho_t2.cpp:59:84: error: no matching function for call to 'find(__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type, int&, std::vector<int>&)'
59 | int position_of_o = find(prefixo[position_of_j] + k, position_of_j, prefixo);
| ^
In file included from /usr/include/c++/10/bits/locale_facets.h:48,
from /usr/include/c++/10/bits/basic_ios.h:37,
from /usr/include/c++/10/ios:44,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from ho_t2.cpp:1:
/usr/include/c++/10/bits/streambuf_iterator.h:422: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&)'
422 | find(istreambuf_iterator<_CharT> __first,
| ^~~~
/usr/include/c++/10/bits/streambuf_iterator.h:422:5: note: template argument deduction/substitution failed:
ho_t2.cpp:59:84: note: mismatched types 'std::istreambuf_iterator<_CharT>' and 'int'
59 | int position_of_o = find(prefixo[position_of_j] + k, position_of_j, prefixo);
| ^
ho_t2.cpp:63:84: error: no matching function for call to 'find(__gnu_cxx::__alloc_traits<std::allocator<int>, int>::value_type, int&, std::vector<int>&)'
63 | int position_of_i = find(prefixi[position_of_o] + k, position_of_o, prefixi);
| ^
In file included from /usr/include/c++/10/bits/locale_facets.h:48,
from /usr/include/c++/10/bits/basic_ios.h:37,
from /usr/include/c++/10/ios:44,
from /usr/include/c++/10/ostream:38,
from /usr/include/c++/10/iostream:39,
from ho_t2.cpp:1:
/usr/include/c++/10/bits/streambuf_iterator.h:422: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&)'
422 | find(istreambuf_iterator<_CharT> __first,
| ^~~~
/usr/include/c++/10/bits/streambuf_iterator.h:422:5: note: template argument deduction/substitution failed:
ho_t2.cpp:63:84: note: mismatched types 'std::istreambuf_iterator<_CharT>' and 'int'
63 | int position_of_i = find(prefixi[position_of_o] + k, position_of_o, prefixi);
| ^