Moved variables back out of main, and corrected their syntax errors. I'm assuming that they're supposed to be global variables??? I also added function prototypes.