============================================================ How to tune Vim, use the C compiler and more about the shell [TOC] ============================================================ ---- VIDEO ------------------------------ https://www.youtube.com/embed/a2AQb_hwWpM ----------------------------------------- Quiz 02 ======= Once everything is setup do the following on our server `theon`: - Create a file `quiz02_hello1.c` with the following content: ---- CODE (type=c, file=session02/tmp/quiz02_hello1.c) ----------------------- int main() { puts("hello, world!"); } ------------------------------------------------------------------------------ - Compile this source file and run the generated executable `hello1` as follows (it is intended that you see some warnings here) ---- SHELL (path=session02/tmp) ---------------------------------------------- gcc -o hello1 quiz02_hello1.c hello1 ------------------------------------------------------------------------------ Note that `gcc` produces a warning but not an error! So despite its concerns `gcc` actually created a executable (and correct) program. Copy the output produced by `gcc` (i.e. the warning in the box above) in a file `quiz02_hello1.txt`. - Create a file `quiz02_hello2.c` with the following content: ---- CODE (type=c, file=session02/tmp/quiz02_hello2.c) ----------------------- int puts(const char*); int main() { puts("hello, world!"); } ------------------------------------------------------------------------------ - Compile this source file and run the generated executable `hello2` as follows ---- SHELL (path=session02/tmp) ---------------------------------------------- gcc -o hello2 quiz02_hello2.c hello2 ------------------------------------------------------------------------------ Copy the output produced by `hello2` in a file `quiz02_hello2.txt`. - Submit the created files using the `submit` command as follows: ---- SHELL (path=session02/tmp, hide) ---------------------------------------- touch quiz02_hello1.txt quiz02_hello2.txt ------------------------------------------------------------------------------ ---- SHELL (path=session02/tmp) ---------------------------------------------- submit hpc quiz02 quiz02_hello1.c quiz02_hello1.txt quiz02_hello2.c +++ quiz02_hello2.txt ------------------------------------------------------------------------------ Not that quiz02 you only get some feedback from `submit` if there was a problem. So "no news" means "good news". That's because in this submission we have no automatic tests for your submission, i.e. we accept anything.