'doorlock' does not name a type

So what should i do to complete the code