What does 'error: expected ';' before ...' mean in c++?

Example:

int main() 
    std::cout << "Missing semicolon"
    return 0;
}

You missed placing a semicolon at the end of a statement.

Solution:

Add the missing semicolon.


int main() {
    std::cout << "Fixed missing semicolon";
    return 0;
}

Beginner's Guide to C++