Problem babyproduction
User PlayVoltz
Submission Time 2024-08-03 16:22:00
Score 0
Max Time N/A
Max Memory N/A

Compile Error

babyproduction.cpp: In function ‘int32_t main()’:
babyproduction.cpp:40:21: error: no match for ‘operator==’ (operand types are ‘std::string’ {aka ‘std::__cxx11::basic_string<char>’} and ‘char’)
40 | if (a=="insert"&&b=='A')aa.insert(aa.lower_bound(c));
| ~^~~~~
| | |
| | char
| std::string {aka std::__cxx11::basic_string<char>}
In file included from /usr/include/c++/9/iosfwd:40,
from /usr/include/c++/9/ios:38,
from /usr/include/c++/9/ostream:38,
from /usr/include/c++/9/iostream:39,
from babyproduction.cpp:4:
/usr/include/c++/9/bits/postypes.h:222:5: note: candidate: ‘template<class _StateT> bool std::operator==(const std::fpos<_StateT>&, const std::fpos<_StateT>&)’
222 | operator==(const fpos<_StateT>& __lhs, const fpos<_StateT>