As was pointed out above you are creating two int variables named analogPin, you need to rename one, or remove the int from the second one if you really want to reassign it to a new value just after you gave it one. 8^)
As was pointed out above you are creating two int variables named analogPin, you need to rename one, or remove the int from the second one if you really want to reassign it to a new value just after you gave it one. 8^)