Note: At the time that this meta answer post was initially created, the latest revision of this main-site post is/was revision 4. If after reading this meta answer post you want to engage in extended discussion with me about my thoughts on this, feel free to ping me in chat.
At least after Tsyvarev edited the title, I don't see a glaring issue (note that I did not check to see if this question is a duplicate, and several dup targets have been suggested, but I'm a unsatisfied with them). It seems like a clear programming question. If that title edit had been made in Staging Ground, I would have then published it. In fact, personally, I think this is a nice, useful question (for C++ newbies). A good teaching opportunity to get into the compile+link build model and to talk about the utility of interfaces.
Could the question be further generalized? Yes. Would generalizing it to the extent that an SME knows how to be better or worse of searchability for someone with a question like it? I think potentially worse. At least coming from the angle of someone doing leetcode challenges. And like it or not, leetcode is not even some tiny little-known thing. I can see this specialized angle to a potentially more generalized question being useful long-term.
I can try to guess why people downvoted it. As Gimby alluded to, SMEs in the C++ tag are pretty involved/active in voting. I think it's probably also a combination of SMEs in C++ having high standards, and some disdain (or some other feeling I don't know) here and there for coding challenge sites. Maybe to an SME, it sounds like a dumb question. I'll try not to judge people's value judgements.
Also, I think the shock in the comments at how this came out of Staging Ground is a little overblown. SG is not meant to fix everything. Reviewers in SG are not expected to be SMEs. Aside from the title improvement Tsyvarev made, which I might have preferred to have happened in the SG phase, I think SG kind of did its job. See for yourself. It's there for fixing general issues that don't require SMEise to evaluate.
I see the question has been closed again as "needs details or clarity". I for one cannot see what detail or clarity it is lacking. I don't know the exact answer to the question with full confidence (are multiple translation units involved and compiled and linked together? or is source text concatenation/inclusion used to build with just a single translation unit? etc.), but I can guess, and I have confidence that if I did some basic investigation (at a level I'd consider normal for an answerer), I could answer with full confidence. And someone else (the asker of this meta question) could answer it (albeit with a little less detail than I think ideal). I've voted to reopen.
Update: I went and did my investigation and wrote an answer post.
To my surprise, a mod thinks that we can't know the answer to this question (leaving the closure explanation "I’m voting to close this question because we can't know, we can only speculate"), when to a large extent, my answer post shows that we can know and don't need to speculate.
Also, to anyone who claims that this question is useless, read the bottom of my answer post on main. The understanding that comes from this Q&A has applications such as optimizing program IO on a highly popular platform for creating efficient solutions to programming problems.
In response to some specific comments:
I suppose a better action from me would have been to explain why the question, in pretty much any wording, was going to be poorly received and needed to be refocused from "How do I start a program through a member function?" to "Where is the main function coming from?" Still going to be poorly received, but shouldn't have been such an epic bloodbath. I'd hoped I'd answered enough in a comment that the asker would just drop it.
SG isn't meant for answering questions. Personal note: I'm of the unofficial opinion that pointing askers to basic pre-readings to suggest they read them if you think it will have significant value in enabling the asker to improve the quality/usefulness of their question post is ok.
The purpose of SG is to improve stuff that is on-topic and steer things into the site's scope where possible/appropriate/reasonable. I think the heart of SG that we want reviewers to have is to want to improve stuff and draw out good potential instead of just hoping that fixer-uppers get washed away and forgotten. Of course, no one can force you as a reviewer to have that heart and put in the time and care to act upon it (I can sympathize with feeling tired at that idea. I feel it too) (of course, we do expect though that you follow basic guidelines. I'm more trying to say that you don't have any contractual obligation or anything to go the extra mile whenever you are capable of doing that). But hopefully you can at least understand it.
I see Staging Ground as an excellent place for a to stave off questions that will be poorly received
The first order goal isn't to stave off bad stuff. It's to workshop stuff and improve it. "Staving off" is for issues like typo/no-repro questions, categorically-off-topic questions, duplicates, etc.
main
function coming from?" Still going to be poorly received, but shouldn't have been such an epic bloodbath. I'd hoped I'd answered enough in a comment that the asker would just drop it.main
function?" so the lack of amain
that would run the program is the whole point of the question.