If you're not using VIM, this note does not apply to you.
The default VIM behavior is to add a new line at the end of file, that is {content}\nEOF
, which is automatically done at saving the file.
This can result a different test file from your expecation, potentially leading you to wrong program behavior.
However, it's your sole responsibility to make sure the program behaviors are correct, and editors are not an excuse.
You may want to:
You might encounter strange cases where your program works on your own laptop but fails on the server.
These are due to unexpected bahaviors, such as relying on automatically appended \n
to end the loop. Different platforms or OS may result in different behaviors, for example, referring to an uninitialized memory can result in arbitrary value (sometimes 0 but you cannot rely on that).
The grading is based on the lab computers.