Hundreds have pitched their tents in central Madrid, while the Spanish prime minister has called a snap election.