MakeFile fix
wtite_ans fix
main fixed
main exit code fix
eof fix