foo.cc: In function 'int main()':
foo.cc:24:34: error: no matching function for call to 'find(std::vector<char>::iterator, std::vector<char>::iterator, char&)'
24 | bool doesExist = find(list.begin(), list.end(), c) != list.end();
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/include/c++/13/bits/locale_facets.h:48,
from /usr/include/c++/13/bits/basic_ios.h:37,
from /usr/include/c++/13/ios:46,
from /usr/include/c++/13/ostream:40,
from /usr/include/c++/13/iostream:41,
from foo.cc:1:
/usr/include/c++/13/bits/streambuf_iterator.h:435:5: note: candidate: 'template<class _CharT2> typename __gnu_cxx::__enable_if<std::__is_char<_CharT2>::__value, std::istreambuf_iterator<_CharT> >::__type std::find(istreambuf_iterator<_CharT>, istreambuf_iterator<_CharT>, const _CharT2&)'
435 | find(istreambuf_iterator<_CharT> __first,
| ^~~~
/usr/include/c++/13/bits/streambuf_iterator.h:435:5: note: template argument deduction/substitution failed:
foo.cc:24:34: note: '__gnu_cxx::__normal_iterator<char*, std::vector<char> >' is not derived from 'std::istreambuf_iterator<_CharT>'
24 | bool doesExist = find(list.begin(), list.end(), c) != list.end();
| ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~