I got these errors while writing an algorithm. Can anyone help?
Missing number, treated as zero.
\ALG@currentblock@0 l.273 \end{algorithmic}Missing = inserted for \ifnum.
l.273 \end{algorithmic} I was expecting to see
<',=', or `>'. Didn't.
The algorithm structure look like this:
\begin{algorithm}[H]
\SetAlgoLined
\caption{my Algorithm}
\begin{algorithmic}[1]
\FOR {$iteration=1,2,\ldots$}
\STATE cdss
\ENDFOR
\ENDFOR $t_i$
\RETURN $M^{(R)}$ and $\eta_{t}$
\end{algorithmic}
\end{algorithm}
this is my code
\documentclass{article}
\usepackage{algorithm, algpseudocode}
\begin{document}
\begin{algorithm}[H]
\SetAlgoLined
\caption{,MY Algorithm}
\begin{algorithmic}[1]
\renewcommand{\algorithmicrequire}{\textbf{Input:}}
\renewcommand{\algorithmicensure}{\textbf{Output:}}
\REQUIRE {aaa}
\ENSURE { bbb}
\\ \textit{111} :
\FOR {$iteration=1,2,\ldots$}
\STATE mmm
\FOR{$iteration=1,2,\ldots$}
\STATE nnnnn
\ENDFOR
\FOR {$iteration=1,2,\ldots$}
\STATE hhhh
\ENDFOR
\FOR {$iteration=1,2,\ldots$}
\STATE bbb
\ENDFOR
\ENDFOR
\RETURN $t^{(m)}$
\end{algorithmic}
\end{algorithm}
\end{document}

\documentclass{...}, the required\usepackage's,\begin{document}, and\end{document}. That may seem tedious to you, but think of the extra work it represents for TeX.SX users willing to give you a hand. Help them help you: remove that one hurdle between you and a solution to your problem.algorithmicandalgorithm2e