# Error in package Algorithm2e

I need to put some pseudocodes in a job, but I get the following errors:

! LaTeX Error: Command \algorithm already defined.Or name \end... illegal, see p.192 of the manual.See the LaTeX manual or LaTeX Companion for explanation.Type H for immediate help.... }

! LaTeX Error: Command \algorithm already defined.Or name \end... illegal, see p.192 of the manual.See the LaTeX manual or LaTeX Companion for explanation.Type H for immediate help.... }

! LaTeX Error: Command \algorithm already defined.Or name \end... illegal, see p.192 of the manual.See the LaTeX manual or LaTeX Companion for explanation.Type H for immediate help.... }

! LaTeX Error: Command \listofalgorithms already defined.Or name \end... illegal, see p.192 of the manual.See the LaTeX manual or LaTeX Companion for explanation.Type H for immediate help.... }

I have not even put a pseudocode and already made this error in the compilation

Thank

• This looks like some kind of packages clash... One hackish way would be \let\algorithm\undefined before loading algorithm2e. But I advise you not to do that. Instead of the errors, show us a [minimal working example (MWE)](https://tex.meta.stackexchange.com/q/228) that produces the error, so that we can sort it out. – Phelype Oleinik May 29 '18 at 13:46
• I guess you loaded several aglorithm typesetting packages such as algorithmic,algorithmicx, algorithm2e – BambOo May 29 '18 at 14:02
• Any updates here? Please provide us with a minimal working example, as suggested in the first comment. – Troy Jun 18 '18 at 2:27