cws/disclaimer.sty
changeset 347 4de31fdc0d67
parent 335 7e00d2b13b04
child 424 daf561a83ba6
equal deleted inserted replaced
346:663c2a9108d1 347:4de31fdc0d67
     1 \newcommand{\IMPORTANT}[1]{%
     1 \newcommand{\IMPORTANT}[1]{%
     2 \subsubsection*{Important\alert}
     2 \subsubsection*{Important\alert}
     3 
     3 
     4 \begin{itemize}
     4 \begin{itemize}
     5 \item #1  
     5 \item #1  
       
     6 \item Make sure the files you submit can be processed by just calling\\
       
     7   \mbox{\texttt{scala <<filename.scala>>}} on the commandline.\footnote{All
       
     8     major OSes, including Windows, have a commandline. So there is no
       
     9     good reason to not download Scala, install it and run it on your
       
    10     own computer. Just do it!} Use the
       
    11   template files provided and do not make any changes to arguments of
       
    12   functions or to any types. You are free to implement any auxiliary
       
    13   function you might need.
       
    14 
       
    15 \item \textbf{Do not leave any test cases running in your code because this might slow
       
    16   down your program!} Comment out test cases before submission, otherwise you
       
    17   might hit a time-out.
       
    18 
       
    19 \item Do not use any mutable data structures in your
       
    20 submissions! They are not needed. This means you cannot create new 
       
    21 \texttt{Array}s or \texttt{ListBuffer}s, for example. 
       
    22 
       
    23 \item Do not use \texttt{return} in your code! It has a different
       
    24   meaning in Scala than in Java. It changes the meaning of your program,
       
    25   and you should never use it.
       
    26 
       
    27 \item Do not use \texttt{var}! This declares a mutable variable. Only
       
    28   use \texttt{val}!
       
    29 
       
    30 \item Do not use any parallel collections! No \texttt{.par} therefore!
       
    31   Our testing and marking infrastructure is not set up for it.
       
    32 \end{itemize}
       
    33 }
       
    34 
       
    35 \newcommand{\IMPORTANTNONE}[1]{%
       
    36 \subsubsection*{Important\alert}
       
    37 
       
    38 \begin{itemize}
     6 \item Make sure the files you submit can be processed by just calling\\
    39 \item Make sure the files you submit can be processed by just calling\\
     7   \mbox{\texttt{scala <<filename.scala>>}} on the commandline.\footnote{All
    40   \mbox{\texttt{scala <<filename.scala>>}} on the commandline.\footnote{All
     8     major OSes, including Windows, have a commandline. So there is no
    41     major OSes, including Windows, have a commandline. So there is no
     9     good reason to not download Scala, install it and run it on your
    42     good reason to not download Scala, install it and run it on your
    10     own computer. Just do it!} Use the
    43     own computer. Just do it!} Use the