So, your first problem is your code doesn't have a setup() or loop(). Not sure how you got this far without those.