cws/disclaimer.sty
changeset 347 4de31fdc0d67
parent 335 7e00d2b13b04
child 424 daf561a83ba6
--- a/cws/disclaimer.sty	Sun Nov 01 01:21:31 2020 +0000
+++ b/cws/disclaimer.sty	Mon Nov 02 02:31:44 2020 +0000
@@ -32,6 +32,39 @@
 \end{itemize}
 }
 
+\newcommand{\IMPORTANTNONE}[1]{%
+\subsubsection*{Important\alert}
+
+\begin{itemize}
+\item Make sure the files you submit can be processed by just calling\\
+  \mbox{\texttt{scala <<filename.scala>>}} on the commandline.\footnote{All
+    major OSes, including Windows, have a commandline. So there is no
+    good reason to not download Scala, install it and run it on your
+    own computer. Just do it!} Use the
+  template files provided and do not make any changes to arguments of
+  functions or to any types. You are free to implement any auxiliary
+  function you might need.
+
+\item \textbf{Do not leave any test cases running in your code because this might slow
+  down your program!} Comment out test cases before submission, otherwise you
+  might hit a time-out.
+
+\item Do not use any mutable data structures in your
+submissions! They are not needed. This means you cannot create new 
+\texttt{Array}s or \texttt{ListBuffer}s, for example. 
+
+\item Do not use \texttt{return} in your code! It has a different
+  meaning in Scala than in Java. It changes the meaning of your program,
+  and you should never use it.
+
+\item Do not use \texttt{var}! This declares a mutable variable. Only
+  use \texttt{val}!
+
+\item Do not use any parallel collections! No \texttt{.par} therefore!
+  Our testing and marking infrastructure is not set up for it.
+\end{itemize}
+}
+
 \newcommand{\IMPORTANTEXAM}{%
 \noindent
 \subsubsection*{Important}