Find Error | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Find Error

Plz find what and where is the error ? https://code.sololearn.com/c12sEj0xYtya/?ref=app

5th Jun 2018, 1:52 AM
Sakaar Sen
Sakaar Sen - avatar
2 Answers
+ 6
DevTycoon - In your code, you typed in ';' instead of the required ':' after the case statements. That's what is causing the errors to pop up. For example, Replace 'case 7;' by 'case 7:' Hope this helps!
5th Jun 2018, 2:02 AM
Rahul George
Rahul George - avatar
+ 8
You havevto use colons, not semicolons after the case expressions. They will be like this: case 7: cout<<"Blah"; break;
5th Jun 2018, 2:01 AM
DAB
DAB - avatar