I need help solving this strange variable scope error

i just realized why, you didnt define setup(), for some reason if you dont define that variables break.