Nothing to do with your code, suspect would have same problem with any sketch. What are you uploading to? Is correct board selected? Did the board previously work?
Nothing to do with your code, suspect would have same problem with any sketch. What are you uploading to? Is correct board selected? Did the board previously work?