%---------
% place your email id between the braces so that your homework has a name
\def\yourname{}
% -----------------------------------------------------
\def\duedate{6/23/2025}
\def\duelocation{via \href{https://www.gradescope.com/courses/1007022}{Gradescope}}
\def\hnumber{1}
\def\prof{Konstantinos Ameranis}
\def\course{\href{https://canvas.uchicago.edu/courses/64693}{CMSC 14300 - Summer 2025}}
%-------------------------------------

\documentclass[10pt]{article}
\usepackage[colorlinks,urlcolor=blue]{hyperref}
\usepackage[osf]{mathpazo}
\usepackage{amsmath,amsfonts,graphicx}
\usepackage{latexsym}
\usepackage{subfig}
\usepackage{algpseudocode}
\usepackage[shortlabels]{enumitem}
\usepackage{algorithm}
\usepackage{listings}
%\usepackage[top=1in,bottom=1.4in,left=1.5in,right=1.5in,centering]{geometry}
\usepackage{fullpage}
\usepackage{color}
\definecolor{mdb}{rgb}{0.3,0.02,0.02}
\definecolor{cit}{rgb}{0.05,0.2,0.45}
%\pagestyle{myheadings}
\markboth{\yourname}{\yourname}

\thispagestyle{empty}

\newenvironment{proof}{\par\noindent{\it Proof.}\hspace*{1em}}{$\Box$\bigskip}
\newcommand{\qed}{$\Box$}
\newcommand{\alg}[1]{\mathsf{#1}}
\newcommand{\handout}{
   \renewcommand{\thepage}{H\hnumber-\arabic{page}}
   \noindent
   \begin{center}
      \vbox{
    \hbox to \columnwidth {\sc{\course} --- \prof \hfill}
    \vspace{-2mm}
    \hbox to \columnwidth {\sc due \MakeLowercase{\duedate} \duelocation\hfill {\Huge\color{mdb}H\hnumber.\yourname}}
      }
   \end{center}
   \vspace*{2mm}
}
\newcommand{\solution}[1]{
\vspace{2mm}

\noindent Collaborators:

\vspace{5mm}

\medskip\noindent{\color{cit}\textbf{Solution:} #1}}

\newcommand{\bit}[1]{\{0,1\}^{ #1 }}
\newcommand{\extraspace}{\medskip\noindent{\color{cit} Extra space for your solution}\newpage}
%\dontprintsemicolon
%\linesnumbered=
\newtheorem{problem}{\sc\color{cit}Problem}
\newtheorem{lemma}{Lemma}
\newtheorem{theorem}{Theorem}
\newtheorem{definition}{Definition}
\newtheorem{claim}{Claim}


\begin{document}
\handout

\begin{problem}
What is the error that you get for the following situations, and does the error make sense to you? Please restore the program if you change it in any way.

\begin{enumerate}[(a)]
    \item When you use an undeclared variable; e.g. remove line 57 in encrypt.c.
    \vfill

    \item When you use an undeclared function; e.g. remove the declaration on line 41.
    \vfill

    \item When you use a declared but undefined function; e.g. remove the definition of is\_upper\_letter on lines 80-83.
    \vfill

    \item When you forgot to {\tt \#include} a library; e.g. remove either line 11 or line 12.
    \vfill
    
\end{enumerate}
    
\end{problem}

\begin{problem}
In the assignment specification, we know that passing {\tt -o <name>} to clang will instruct it to produce an executable called {\tt <name>}. However, when you don't include the {\tt -o <name>} flag,  lang will choose a default name for the produced executable. What is that default name?

\vfill
\end{problem}
\newpage

\begin{problem}
There are three secret messages in secrets directory that are encrypted with
difference keys. Use your frequency analysis to figure out the keys and decrypt
the messages.

\begin{enumerate}[(a)]
    \item What is secret0.txt? What is the key? Don't include the entire text, just tell me what it is.
    \vfill

    \item What is secret1.txt? What is the key? Don't include the entire text, just tell me what it is.
    \vfill

    \item What is secret2.txt? What is the key? Don't include the entire text, just tell me what it is.
    \vfill

\end{enumerate}
    
\end{problem}

\begin{problem}
Describe your coding set up. What editor do you use? How do you compile, run, and test your code? How many windows/tabs do you use? etc.
\vfill
\end{problem}

\begin{problem}
How many hours did you spend for this assignment?
\vfill    
\end{problem}

\begin{problem}
Document your collaboration here.
\vfill    
\end{problem}

\end{document}                                                                                                                                                                                                

