I had the same issue. Here's how I corrected it by adding { } as shown on SFML's website
sf::RenderWindow window(sf::VideoMode({200, 200}), "SFML works!");