Please can someone help me figure why my Tex does not run whenever I try cite the references. Without reference citing, my whole Tex file will build(run).
Here is the latex file
\documentclass[preprint,3p, review,times]{elsarticle}
\usepackage[colorlinks=true]{hyperref}
\usepackage{epsfig}
\usepackage{amssymb}
\usepackage{setspace}
\usepackage{amsthm}
\usepackage[running]{lineno}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{graphicx}
\usepackage{amsbsy}
\usepackage{color}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{float}
\usepackage{moreverb}
\usepackage{adjustbox}
\usepackage[english]{babel}
\usepackage{cite}
\usepackage{amscd}
\usepackage{epsfig}
\usepackage{amsfonts}
\usepackage{mathtools}
\usepackage{fancyhdr}
\newtheorem{definition}{Definition}
\newtheorem{notation}{Notation}
\newtheorem{theorem}{Theorem}[section]
\newtheorem{corollary}{Corollary}[theorem]
\newtheorem{lemma}[theorem]{Lemma}
\setlength{\unitlength}{0.8cm}
\theoremstyle{remark}
\newtheorem*{remark}{Remark}
\usepackage{natbib}
\usepackage{cite}
\usepackage[utf8]{inputenc}
\begin{document}
Cramer's rule was named after a Swiss mathematician Gabriel Cramer
(1704-1752) \cite{Cramer}. Historically, an Italian mathematician
Gerolamo Cardano gave a rule called \textit{regula de modo}- mother of rules, in his ``\textit{ars magna''}. Though his
methods were practically based on $2\times 2$ resultants. \cite{Gardano}.
\noindent \textbf{References}
\bibliography{ok}
\bibliographystyle{model1-num-names}
\end{document}
and here is the bibtex file
@book{cramer1750introduction,
title={Introduction a l'analyse des lignes courbes algebriques par Gabriel Cramer...},
author={Cramer and Gabriel and Cramer fr{\`e}res \& Philibert and Claude},
year={1750},
publisher={chez les freres Cramer \& Cl. Philibert}
}
@article{cardano1968ars,
title={Ars magna (1545)},
author={Cardano, Girolamo and Spon, C},
journal={Opera Omnia},
volume={4},
pages={221--302},
year={1968}
}