Multiple "Not Declared In This Scope" Errors

I don't understand why it would work for the creator of the code then