Compiling errors

Line 35
…(class UInputComponent* I nputComponent)
{…}

i in I nputComponent is capital you are assigning a class to a type.

And AttachTo(); is a function its not a variable you can set.