can anyone tell me what is wrong with my algorithm code? it adds =0 at the end when I run it. this is the algorithm:
\documentclass{article}
\usepackage{algorithm}
\usepackage{algorithmic}
\usepackage{algpseudocode}
\begin{document}
\begin{algorithm}
\caption{Dynamic programming algorithm for RRH clustering problem}
\label{alg1}
\begin{algorithmic}[1]
\STATE return table[N,Capacity]
\end{algorithmic}
\end{algorithm}\end{document}
this is the result:

latinenvironment? – Bernard Jul 15 '18 at 09:14\documentclassto\end{document}that still shows the issue. – egreg Jul 15 '18 at 09:19\iffalse…\fiis quicker. Anyhow, I expect the problem is some code, somewhere, assigning zero to a counter, except the name of the counter got gobbled by other code. This might be caused by different packages interfering with each others' code, for example. – Harald Hanche-Olsen Jul 15 '18 at 09:38\usepackage{algorithmic}as well as after[N,Capacity]. – leandriis Jul 15 '18 at 10:57algorithmicandalgpseudocode; the command\STATEis for the former, so I removed the latter. No issue at all. Even if I change\STATE return table[N,Capacity]into\RETURN table[N,Capacity]the output is as expected. I believe the issue has something to do with bidirectional text. Please make a real example that shows the issue. – egreg Jul 15 '18 at 11:33=0that is added after[N,Capacity]. To conclude: Never rely on the 'output' of a compilation that yielded an error message. – leandriis Jul 15 '18 at 12:08