[Solved] C++ Once again code works properly in My Code Bits but fails Code Coach, don't understand why
Very odd, works in standard Sololearn editor/compiler but fails in the code coach. In My Code Bits if the first word satisfies the task it calls a return and the code ends immediately as I would expect. However in code coach it continues processing. Am I using the return statement incorrectly? Is there another way to terminate the function once the condition is satisfied? Or do I possibly need a function that isn't "void"? The task is at the bottom of the code, pretty self-explanatory. From the Community Code Coach "hard" level. As always, any advice or suggestions to a newbie welcome. As I do all my coding on a phone and have no computer, maybe someone with a better understanding, more experience or different compiler will see the error in my code. https://code.sololearn.com/c3GWvVZMV76F/?ref=app