![Este comando algorítmico não está sendo executado](https://rvso.com/image/399818/Este%20comando%20algor%C3%ADtmico%20n%C3%A3o%20est%C3%A1%20sendo%20executado.png)
\documentclass{article}
\usepackage{algpseudocode}
\usepackage{algorithm}
\begin{document}
\begin{algorithm}
\caption{family}
\hspace*{\algorithmicindent} \textbf{Input}\\
\hspace*{\algorithmicindent} \textbf{Output}
\begin{algorithmic}[1]
\State sing
\While dark
\State radar
\If {not found}
\State does
\ElsIf {pick}
\State case \If do
\State did
\EndIf
\EndWhile
\end{algorithmic}
\end{algorithm}
\end{document}
Responder1
Você não fechou uma de suas instruções If. Este código funciona:
\documentclass{article}
\usepackage{algpseudocode}
\usepackage{algorithm}
\begin{document}
\begin{algorithm}
\caption{family}
\hspace*{\algorithmicindent}
\textbf{Input}\
\hspace*{\algorithmicindent}
\textbf{Output}
\begin{algorithmic}[1]
\State sing
\While dark
\State radar
\If {not found}
\State does
\ElsIf {pick}
\State case
\If do
\State
did
\EndIf
\EndIf
\EndWhile
\end{algorithmic}
\end{algorithm}
\end{document}
Além disso, por favor vejaComo fazer boas perguntas?e formate seu código para uma leitura mais fácil. Espero poder ajudar.