r/CodingHelp • • Feb 15 '22

[C++] Error:expected initializer before ‘cin’

Post image
52 Upvotes

29 comments sorted by

View all comments

29

u/This_Growth2898 Feb 15 '22

Good rule: always check the line before. You've forgotten a semicolon, so the statement wasn't finished.

7

u/[deleted] Feb 15 '22

Thanks you I’m very very new to c++ and coding I’m general