Expected a ";" C/C++ Error Code When Adding User Input Declarations (Lesson 23)

Hi,

I added the user input declaration and the print statements but I am receiving an error message:

I double checked my work and I see that I have semicolons at the end of every line that’s required. Why am I still receiving this error message?

This is not preventing me from compiling and running my code, I just wanted to see if there was a resolution.

Regards,
Meteorwave

I don’t see any mistakes from you. I also did try to write your code in my visual studio code and I got no errors.

if it’s running well it’s probably just a false error message from IntelliSense. Restarting visual studio code may fix it if you have not tried it already.

1 Like

Yup, restarting it fixed it. Should have tried that first. Thanks a lot.

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.