[question]
I am in a C++ class working on a challenge activity using the find() command. I am having a hard time figuring out how to correct my code and prevent the error message
"Runtime error (commonly due to an invalid array/vector access, divide by 0, etc.).
Tests aborted." from coming up.
The challenge activity doesn't give any hints as to help solve the task, but the directions given are as follows...
"Print 'Censored' if userInput contains the word 'darn', else print userInput. End with newline."
No new variables can be created and only the code inside the two comments(// My answer) can be edited.