line 17 - remove extra semicolon at the end
lines 18 - 27, 29, 31, 33, 35 - remove char - you don't need this, you've already declared these variables to be char types
You look to be missing semi colons after the assignment statements inside the if loops.
Also by putting "char" before your variables inside the if statements you are actually creating new local variables that will be deleted once they go out of scope at the end of your if statement. You only need to denote the type of variable the first time you create said variable.
For information purposes you code would get quite messy if you were using this method for long passwords, I would suggest using a Array to store the password then access it using the index of the array.
To extend on my last post, you can also use strings if you prefer. The below example uses XOR to encrypt the message to show you the basics of using a loop to go through the whole string (or array if you prefer)
Your welcome, if you are not sure what my example is doing please ask. There is no point in me just handing you code over and you not understanding it.