New course! Every coder should learn Generative AI!
Try a free lesson+ 4
Coding Mafia
char stores 1 character but here "add" is not a character it's String so you can't compare char with String.
Do like this
https://code.sololearn.com/cmlUGNYJ7lMd/?ref=app
+ 4
Coding Mafia
Use string datatype. Check code again
string s;