# File ended while scanning use of \FancyVerbGetLine

Error:

Runaway argument?
! File ended while scanning use of \FancyVerbGetLine.
<inserted text>


Have already seen and tried workarounds mentioned here and here.

Code: Here

If I comment out lines 185 to 188, I get the above mentioned error.

Any help is highly appreciated!

• Please, made a shorter example showing the issue. Dec 9, 2018 at 13:38

There should be no space between \end and {minted}.

The offending lines have

\begin {minted}{cpp}
string s = to_string (num);
\end {minted}


While the space after \begin is irrelevant, the one after \end is relevant and should be removed. With

\begin{minted}{cpp}
string s = to_string (num);
\end{minted}


you will be on track again.