[Tex/LaTex] “Missing $ inserted” errors generated in tabular figure

compilingerrorstables

I've compiled my LaTeX document into a PDF using the website ScribTeX, and everything seems to look fine, but I keep getting the following errors:

enter image description here

Similar errors happen every time I use a table.

The code in question is this block, which starts with line 141:

\begin{figure}[h]
\begin{center}
\begin{tabular}{|c|}

\hline
`a' \rightarrow  \tt{e}, \tt{@}, \tt{A} \\
`nice' \rightarrow   \tt{naIs}, \tt{nis} \\
`cold' \rightarrow \tt{kould} \\
`hour' \rightarrow \tt{aU\char18 r} \\
\hline
\end{tabular}
\captionfonts
\caption[queryDBwithOrthoWordForSampa example]{ In this and all subsequent diagrams, a `string in quotes' indicates an orthographic word or phrase, and a \texttt{monospaced string} indicates that it is a SAMPA word or phrase.  }
\label{fig:oronymGeneration:queryDBwithOrthoWordForSampa}
\end{center}
\end{figure}

Best Answer

As the error says, you're missing $ signs. This is because \rightarrow is a math mode command, and must be used in math mode.

You can solve the problem by using $\rightarrow$ instead.