Question: error #101 has already been declared in the current scope?
Answer: Reason: You are declaring the variable with the name you have already used for other declared variable. You are using the same name in enum type definition for one of the enum members.