Problem ccs
User notachicken
Submission Time 2026-11-05 14:16:10
Score 0
Max Time N/A
Max Memory N/A

Compile Error

ccs.cpp: In function ‘int main()’:
ccs.cpp:29:36: error: no match for ‘operator==’ (operand types are ‘std::_Rb_tree_const_iterator<long long int>’ and ‘std::__cxx11::basic_string<char>::iterator’ {aka ‘__gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >’})
29 | if (*it <= y || it == s.end()){
| ~~ ^~ ~~~~~~~
| | |
| | std::__cxx11::basic_string<char>::iterator {aka __gnu_cxx::__normal_iterator<char*, std::__cxx11::basic_string<char> >}
| std::_Rb_tree_const_iterator<long long int>
In file included from /usr/include/c++/9/regex:62,
from /usr/include/x86_64-linux-gnu/c++/9/bits/stdc++.h:110,
from ccs.cpp:1:
/usr/include/c++/9/bits/regex.h:1026:5: note: candidate: ‘templ