compile when I get the message ' setLocked ' was not Declared In This scope

Try pressing 'CTRL T' in the IDE

.