Your program should compile without warnings [WARNINGS: 1-3 points]
Avoid compiler warnings. They usually tell you about an important issue with your program. Since I will compile with warnings turned on, you should also turn them on. That you chose not to request warnings is not an excuse for ignoring them. |
Do not unnecessarily duplicate sequences of code that are more than two lines long. Use a function. |
End the last line of output. [EOL-AT-END-OF-OUTPUT: 1 point]
Your program should write an end-of-line at the end of what it writes. |