Do you mean std::list or an array, because your syntax list[0] = sf::RectangleShape means array.
Anyways to draw a bunch of objects contained in an array/vector/list is pretty trivial.
for a vector/array:
std::vector<sf::RectangleShape> rects;
sf::RectangleShape box(sf::Vector2f(32, 32));
box.setFillColor(sf::Color::Red);
rects.push_back(box);
window.clear(sf::Color::White);
for(unsigned int i = 0; i < rect.size(); i++)
{
window.draw(rects[i]);
}
window.display();
for a list:
std::list<sf::RectangleShape> rects;
sf::RectangleShape box(sf::Vector2f(32, 32));
box.setFillColor(sf::Color::Red);
list.push_back(box);
window.clear(sf::Color::White);
std::list<sf::RectangleShape>::iterator it;
for(it = rects.begin(); it != rects.end(); it++)
{
sf::RectangleShape& rect = (*it);
window.draw(rect);
}
window.display();
Hope that helps some.