I need help with some errors!

Hi sorry to bother anyone,
I was wondering what is wrong with my code.

Here it is:
using System;

class Program {
public static void Main (string args) {
string userName1 = “Jclary”;
string userName2 = “Bclary”;
string userName3 = “Mclary”;
string inputedUserName;
int inputedPassWord1;
Console.Clear();
Console.WriteLine(“Please Enter username(not usable currently!)”);
inputedUserName = Console.ReadLine();
if (inputedUserName == userName1)
{
Console.Clear();
Console.WriteLine(“Processing…”);
Console.WriteLine("…");
Console.WriteLine(“Welcome, Jonathan Clary”);
}
else if (inputedUserName == userName2)
{
Console.Clear();
Console.WriteLine(“Processing…”);
Console.WriteLine("…");
Console.WriteLine(“Welcome, Bridget Clary”);
}
else if (inputedUserName == userName3)
{
Console.Clear();
Console.WriteLine(“Processing…”);
Console.WriteLine("…");
Console.WriteLine(“Welcome, Martin Clary”);
}
else
{
Console.WriteLine(“Sorry, that is not a acceptable username!”);
Console.WriteLine(“Try again later.”);
}
Console.WriteLine(".");
Console.WriteLine(".");
string userGameInput;
int userGameInputnum;
int gameNumber = 8;
Console.WriteLine(“What do you wish to do?”);
Console.WriteLine(“Try a guessing game?”);
Console.WriteLine(“Ok Begin”);
Console.WriteLine(“Enter a number between 1-10”);
userGameInput = Console.ReadLine();
int userGameInputnum = Convert.ToInt32(userGameInput);
if (userGameInputnum == gameNumber)
{
Console.WriteLine(“Thats correct, thank you for playing!”);
}
}
}

There it is, if anyone could help me with the errors I get.
P.S.(I use replit, if its any help!.)

Hi!

What are the errors that you have?

int userGameInputnum;
int userGameInputnum = Convert.ToInt32(userGameInput);

You are trying to create this variable twice. You either want to delete the first one or change the second one to: userGameInputnum = Convert.ToInt32(userGameInput);

Also, you should probably make Program public to make it consistent with your Main method. public class Program {

If you are going to try to convert a value, I’d use TryParse instead of Convert.To().
TryParse won’t throw the same kind of exception that Convert.To() will.