Error code 0271 - Date and time error. Neither the date nor the time is set in the computer.
Run BIOS Setup Utility
to reset the time and date
It sounds as though your computer has the wrong time in the CMOS. The CMOS (Complementary Metal-Oxide Semiconductors) is the chip that holds the basic startup information for the BIOS, system and its peripherals while the system is turned on and off.
If you can get into the BIOS
check the date and time settings and make sure they are correct.
It may also be a case of the CMOS battery
going out. When this happens your computer will tend to not keep the correct time. They are cheap and relatively easy to replace. Before buying a new batter your can try to take it out and let it sit for about 10 minutes or so to reset the CMOS and then go put the battery back in and go into the BIOS and reset the clock.
Hopefully taking the batter out or replacing it will get past your lock icon asking for the password. Just search for CMOS or BIOS default password for your brand of laptop.