Atmega 328P pin 0 as input errors

If only there was a sticky reminding people to post the full code (or attach the sketch file) and also include schematic or picture of the setup. We're not going to steal your code or something but if you're going to ask for help you need to open up more.