window.create(sf::VideoMode(x, y), "SFML window", sf::Style::Resize, 0);
I don't understand why people seem to think, that setting something specifically will remove it?
You're not the first one asking this, but it might be interesting to hear why you thought it would prevent resizing by setting the resize property?
Maybe Laurent can make it clearer in the documentation/tutorial (or haven't you taken a look those?).
Btw. for posting code, don't use the quote tag, but use the code=cpp tag.