Missing semicolon or comma? | Sololearn: Learn to code for FREE!


Missing semicolon or comma?

When I run the code, it says there might be a missing cons out semicolon behind my cout << "Ask me any yes or no question!". Can someone tell me what's going on? Here's the code: https://code.sololearn.com/cQC1n3Ph8RCN/?ref=app


9/8/2019 3:38:52 AM

Thomas Wald

5 Answers

New Answer


You just forgot to add a semicolon on line 8, which is why it was telling you you forgot it before the cout statement on line 10


Fuzzy Squid thanks!


Faisal thanks it worked, but how come I need to put a semicolon in front of curly braces?