how to remove errors in c program