completed some problems in c and added the -lm and -lgmp flags for eval.