c_problem_11 and some fixes to c template.