There is compilation error in the program. The file calculat)dat.txt is attached. The error "main already defined in some other file.
You missed the attachment but just check the files you have included and it looks like you have 2 main functions.