Problem xmas
User estkn
Submission Time 2026-03-06 14:37:33
Score 0
Max Time N/A
Max Memory N/A

Compile Error

In file included from /usr/include/c++/9/algorithm:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:65,
from xmas.cpp:1:
/usr/include/c++/9/bits/stl_algo.h: In instantiation of ‘_Iterator std::__find_if(_Iterator, _Iterator, _Predicate) [with _Iterator = char; _Predicate = __gnu_cxx::__ops::_Iter_equals_val<const char [2]>]’:
/usr/include/c++/9/bits/stl_algo.h:3944:28: required from ‘_IIter std::find(_IIter, _IIter, const _Tp&) [with _IIter = char; _Tp = char [2]]’
xmas.cpp:16:57: required from here
/usr/include/c++/9/bits/stl_algo.h:162:34: error: no matching function for call to ‘__iterator_category(char&)’
162 | std::__iterator_category(__first));
| ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~
In file included from /usr/include/c++/9/bits/stl_algobase.h:65,
from /usr/include/c++/9/bits/specfun.h:45,
from /usr/include/c++/9/cmath:1927,