When I started my car the dash board lights went off and on and my car would on 2005 Honda Accord

not start. So then I left the car alone for about 30 minutes and then it started with no problem at all. What is going on?

Asked by for the 2005 Honda Accord