You did not write in what language you are programming. The "Syntax error at '<EOF>'" error usually affects the end of the code. You have to search the whole code for maybe wrong data parsing.
Regards
P.S
Fill in the data about the problem and write how you will solve the problem so that others who have a similar problem can solve it