The "C++ shark tank" is a red herring here. The fundamental problem in both cases lies with the question itself.
In the first example, the asker hasn't made is sufficiently clear what language he is using. The body text clearly states that it is C++, but the code is apparently written in C. The inclusion of stdio.h
, and especially the use of printf
and scanf
, are telling. Someone needs to ask this user which language he is using or intends to be using. Until that is answered, the question cannot be reasonably answered—and should therefore be closed to prevent an influx of answers that will become wrong as soon as the necessary clarification is made.
Note, of course, that heavy-handed editing is not appropriate in this case. You can't just pick either the c or c++ tag to remove. The choice would depend strictly on your whimsy, since there are mixed signals coming from the question.
I don't think people asking this question in the comments about which language the asker is actually using counts as falling into a "shark tank". Those are some pretty tame sharks.
In the second example, the question is straight up off-topic. The choice of tags is irrelevant—he could have thrown the perl and python tags in there, too. It wouldn't have made any difference. There are at least three inherent problems with the question content:
- It is unfocused and asks too many different questions.
- It is too broad, mainly because it doesn't give enough detailed information about the asker's unique requirements.
- It is a recommendation question, twice over.
And that's not even considering the cosmetic problems, like a poor title and a noisy signature.
This question, too, should be closed, at least until it can be banged into shape by a substantial edit. Closure of a question that is unclear, too broad, or off-topic is not "sharky" behavior, it is standard practice on this site, called out very clearly in the Tour for new users. It would (and should) happen regardless of which tags were applied to the question.
It has been suggested recently that the users who regularly monitor the c++ tag are quick to vote on, close, and delete questions, according to their perception of quality. This is something I see as a good thing. It would be nice if we could encourage this type of behavior for other tags, not discourage it for the c++ tag.
And we certainly don't want to suggest that users shy away from tagging their C++ questions appropriately because they might fall into a "shark tank". If there are sharks in these waters, they're a special species—the kind that you really want to answer your programming question.