\documentclass[a4paper,11pt]{article}
\usepackage[et]{eio}
\usepackage{amsthm}
\usepackage{hyperref}
\hypersetup{colorlinks=true}

\usepackage{csquotes}
\usepackage{listings}
\usepackage[dvipsnames]{xcolor}
\usepackage{tikz}
\usetikzlibrary{arrows.meta}
\usetikzlibrary{patterns}

\usepackage{svg}
\usepackage{pgfplots}
\usepackage{caption}
\usepackage{subcaption}
\pgfplotsset{compat=1.18}

\lstset{language=C++,
  basicstyle=\footnotesize\ttfamily,
  keywordstyle=\color{blue}\ttfamily,
  stringstyle=\color{purple}\ttfamily,
  commentstyle=\color{red}\ttfamily,
  breaklines = true,
  extendedchars = true,
  inputencoding = utf8,
  literate = {õ}{{\~o}}1 {ä}{{\"a}}1 {ö}{{\"o}}1 {ü}{{\"u}}1
}

% magic that is prepended to the yl and ylx environments
% this makes problem titles appear in the table of contents
% without having to specify problem titles in multiple places
\usepackage{xpatch}
\xpretocmd{\yl}{\phantomsection\addcontentsline{toc}{section}{#1. #2}}{}{}
\xpretocmd{\ylx}{\phantomsection\addcontentsline{toc}{section}{#1. #2}}{}{}

\newcommand{\problemtutorial}[1]{
  \graphicspath{{#1/tutorial/}}
  \include{#1/tutorial/tutorial.et}
}

\begin{document}
\begin{ol}{\eio}{\ev 4.12.2025}{\lah}{}
\tableofcontents

\problemtutorial{luud}
\problemtutorial{kuju1}
\problemtutorial{kapp}
\problemtutorial{torn}
\problemtutorial{kuju2}
\problemtutorial{ahel}

\end{ol}
\end{document}
