It’s been a long time since my last practice using C++, so a bit rusty here, but AFAI-can-tell that’s not how you print a text with variable between them.
int x=23;
cout << "They have prepared" << int << "cakes with honey and butter.";
This is an in-line string formatting. Most high level programming languages have this feature.
I don’t know much about C++, but in python it would be something like this:
var = 23
print(f"They have prepared {var} cakes with honey and butter.")
# or you could do the old way (before Python 3):
print("They have prepared {} cakes with honey and butter.".format(var))
In this post in StackOverflow, they use it like this for C++ 20: