Why does Rousseau criticize Hobbes and Locke

Why does Rousseau criticize Hobbes and Locke

Why does Rousseau criticize Hobbes and Locke?
How does Rousseau agree with Hobbes about human nature, while at the same time disagreeing with Hobbes about state of nature?

How has Rousseau influenced democratic theory, and the French Revolution in particular?