I know this question has been asked before, but it didn't quite solve my issue. (How to embed a minted environment inside a tabular environment?)
The described workaround (bringing \end{minted} to a single line) does work, however only if the code comes second. When I try to put the minted-section into the first column I get this error:
! LaTeX Error: Something's wrong--perhaps a missing \item.See the LaTeX manual or LaTeX Companion for explanation.Type H <return> for immediate help.... \begin{Verbatim}[commandchars=\\\{\}, ]
I used this code:
\begin{tabular}{rp{0.5\textwidth}}
\begin{minted}{c}
int main() {
printf("hello, world");
return 0;
}
\end{minted}
& testing
\end{tabular}
What can I do? Thank you


rtype one, so paragraphs are not allowed in it. – egreg Jul 03 '14 at 17:39\begin{tabular}{p{0.5\textwidth}r}. Let us know if this resolves the issue :) Welcome! – cmhughes Jul 03 '14 at 17:52