I can figure out what is wrong with this simple sketch

You have a lot to learn about the IDE and the programming language, don't be in a big hurry.
https://www.arduino.cc/en/Guide/