You should email the professor immediately if you have his or her email explaining the situation. If they see that this was an honest mistake that you are working on, they'll give you flexibility, especially given it's the beginning of the semester.