Error: expected primary-expression before 'const'

Hello guys, I've been working on a log in programme and there seems to be a problem with it - error: expected primary-expression before 'const'
Here is my code

#include <iostream>
#include <string>

int main() {
std::string username;
std::string const password;
std::string const usern;
std::string const passw;

std::cout<<"Welcome User"<<std::endl;
std::cout<<"This is a login page"<<std::endl;
std::cout<<"Fill in the details"<<std::endl;
std::cout<<"Create a username: ";
std::cin >> username;
std::cout<<"Username is "<<username<<std::endl;
std::cout<<"Create Password: ";
std::cin >> const password;

const is part of the type. It is not part of the variable name.
This looks like a duplicate of the most recent question you asked in:

Please don't create multiple threads for the same question.
Registered users can post here. Sign in or register to post.