title: Latex algorithmic package error "a missings \item"
body: <p>I'm trying to compile my text and getting an error from the following oart</p>
  
  <pre><code>\begin{algorithm}
  \caption{$Point2PointCollision()$}
  \label{P2P}
  \begin{algorithmic}[1]
  \State {\textbf{Input:} $bla bla$}
  \State {\textbf{Output:} $bla bla$}
  \State {calculate $blabla$}
      \If {$bla bla$} 
      \State {$bla bla$}
      \Else 
      \State {$bla bla$}
      \EndIf
  \end{algorithmic}
  \end{algorithm}
  </code></pre>
  
  <p>error is </p>
  
  <blockquote>
    <p>LaTeX Error: Something's wrong--perhaps a missing \item.</p>
    
    <p>See the LaTeX manual or LaTeX Companion for explanation. Type  H
      for immediate help.  ...                                    </p>
  
  <pre><code>                                               l.383 \end{algorithmic}
  </code></pre>
  </blockquote>
  
  <p>Here is themain tex file:</p>
  
  <pre><code>\documentclass[twoside,10pt]{Latex/Classes/PhDthesisPSnPDF}
  
  % put the packages you want to use here
  \usepackage{amsmath}
  \usepackage{amsthm}
  \usepackage{paralist}
  \usepackage{graphicx} % for pdf, bitmapped graphics files
  \usepackage{epsfig} % for postscript graphics files
  \usepackage{textcomp}
  \usepackage{adjustbox}
  \usepackage{epsf}
  \usepackage{epstopdf} % for postscript graphics files
  \usepackage{times} % assumes new font selection scheme installed
  \usepackage{amsmath} % assumes amsmath package installed
  \usepackage{amssymb}  % assumes amsmath package installed
  \let\proof\relax
  \let\endproof\relax
  \usepackage{cite}
  \usepackage{graphicx}
  \usepackage{psfrag}
  \usepackage{algorithm}  %for algorithm environment
  %\usepackage{algorithmic}
  \usepackage{algpseudocode}
  \renewcommand{\algorithmicrequire}{\textbf{Input:}}
  \renewcommand{\algorithmicensure}{\textbf{Output:}}
  \usepackage{enumerate}
  \usepackage{makecell}
  \usepackage{booktabs}
  \usepackage{multirow}
  \usepackage{dblfloatfix}
  \usepackage{setspace}
  \usepackage{paralist}
  \usepackage{booktabs}
  \theoremstyle{definition}
  \newtheorem{exmp}{Definition}
  \usepackage{bm,upgreek}
  \usepackage{bmpsize}
  \usepackage{tikz}
  \newtheorem{definition}{Definition}
  
  \usepackage[normalem]{ulem}
  \include{3_chapter/chapter}
  \end{document}
  </code></pre>
  
  <p>Can anyone help me how to solve this?</p>
  
  <p>Thanks in advance</p>