Before you submit your solution, please go through the check list.
-
Have you modified any file that is not required for grading? If you modify any of them, your submitted program may not work. The top of every file should clearly mark whether you are allowed to modify the file or not. If a file is not marked, please contact the instructor.
-
Do you write any code outside
#ifdef ... #endif
? The pairs of#ifdef
and#endif
are used to provide partial credits when your programs do not work completely. If you write code outside any pair, it is impossible giving partial credits. -
Do you include all files that are required for grading? Do you exclude the files that should not be submitted?
-
Do you delete all object files and rebuild the program?
-
Do you check whether you have compiled your program using the correct
gcc
flags? If you do not use the correctgcc
flags, you may lose many (possibly all) points. Most important, you must enable warnings. -
Do you use Makefile to run through all test cases given to you?
-
Do you use
valgrind
to check memory errors? If the program has invalid memory access, it is very likely that your program gets zero. Memory leak will cost you many (possibly all) points. -
Do you submit to the correct homework? If you submit incorrectly, you will get zero point.
Please understand that the grading program is very strict and you must follow all rules.