\begin{table}
\centering
\begin{tabular}{|l|l|}
\hline
Period & Expected yearly rate of return %\\
\hline
Renaissance & $6.1$\\\\
Neoclassicism & $5.0$\\\\
Romanticism & $4.1$\\\\
Modern art & $3.3$\\\\
Contemporary art & $2.4$
\hline
\end{tabular}
\end{table}
Hi guys, I have this entered in TeXstudio and I have a problem. I get the same error at every \hline I entered:
- misplaced no
\align. - you cant use
\hrulehere except with leaders - Missing number treated as zero
- illegal unit of measure
I also get an error in the line with Renaissance & $6.15$\\, namely:
Extra alignment tab has been changed to \cr
I don't understand how to solve this.

The TEX primitive \noalign is internally used to place "nonaligned" material between rows of alignment displays. It is therefore allowed only directly following the command that finishes a row. For example, you get this error when you use \hline outside of array or tabular, or not directly after \ within these environments.
– David Carlisle Dec 03 '14 at 21:47