Dalhousie University    [  http://web.cs.dal.ca/~vlado/csci2132/faq.html  ]
Fall 2018 (Sep4-Dec4)
Faculty of Computer Science
Dalhousie University

CSCI 2132 — Frequently Asked Questions (FAQ)

[ Home | Calendar | Misc | FAQ | A0 | A1 | A2 | A3 | A4 | A5 | A6 | A7 | P1 | P2 | P3 | P4 | P5 ]

Question: How do I detect the end of input when there is no marker at the end, the total number of teste cases, or another explicit information about length of input?

Answer: The end of the standard input can be detected by all input functions. For example, if you are using getchar(), then it will return the value defined by EOF when it reaches the end of input. You can also check if you are at the end of input using the expression feof(stdin). These expressions will successfully detect the end of input if you redirect input from a file. If you are typing input using the keyboard, you can use Ctrl+D to indicate the end of input.

Question: I received "Time Limit Exceeded" feedback to my practicum submission. What does it mean?

Answer: "Time Limit Exceeded" outcome of a practicum submission means that the program was running for too long and had to be terminated. This usually happens because the program is stuck in an infinite loop, or it hangs expecting more input even though it reached the end of standard input.

Question: How do I check the contents of my SVN repository to be sure that I submitted assignment as required?

Answer: One easy way is to open the following URL with your browser:
https://svn.cs.dal.ca/csci2132/CSID
where is replaced with your Faculty of Computer Science user id (CSID).

Question: I am new to emacs, how do I save a file and get out of emacs?

Answer: To save the file press keyboard keys Ctrl x and then Ctrl s. In emacs notation, this is written as C-x C-s. To exit emacs: use C-x C-c


Currently maintained by: Vlado Keselj, last update: 18-Jun-2019