#include <iostream>
#include <string>
#include <windows.h>
#include <cstdlib>
usingnamespace std;
int main() {
int pass;
cout << "Hello sean, what is your password?" << endl;
cin >> pass;
if (pass == 123) // bad to have a semi-colon on this line as well
{ // put enclosing braces in, even if if you one line under your if and else
cout << "Access granted welcome sean" << endl;
cout << "how old are you sean? " << endl;
int iNumber;
cin >> iNumber;
cout << "Sean you're " << iNumber << "Years old" << endl;
}
else
{
cout << "Access denied! Password is incorrect." << endl;
Sleep(1000);
cout << "Quiting in 5 seconds" << endl;
Sleep(1000);
cout << "4" << endl;
Sleep(1000);
cout << "3" << endl;
Sleep(1000);
cout << "2" << endl;
Sleep(1000);
cout << "1" << endl;
Sleep(1000);
return(0);
abort();
}
return 0;
}