How accurate is the science in ‘The Martian’? Could a man really survive on Mars for so long as shown in the film?

I saw the movie. It was really good. A lot of the science was pretty good, but not all of it. The soil of Mars can grow food…