It looks like you have defined things twice with the same name, possibly because you don't realise that putting int in front of the variable name defines a new variable with that name every time.
If you posted the code you were compiling we'd know definitely what was wrong.
Steve