The user had a specific problem, and I gave them the answer they needed.
The next answer 20 mins later gets 8 up votes and is marked the correct answer.
Are new people not welcome to answer questions here?
The user had a specific problem, and I gave them the answer they needed.
The next answer 20 mins later gets 8 up votes and is marked the correct answer.
Are new people not welcome to answer questions here?
At the time of this answer, you've received one less vote than the accepted answer.
You have a vote split of +4/-4
:
The accepted answer has a +9/0
split:
You received up votes. If my math is correct, you received +32
reputation from this particular answer.
I am not active in the tags associated with this question, but I can speculate why you received down votes. There are several comments under your answer explaining that an alternative your your solution is possible. These include a link to documentation that may show your answer is incomplete. Your two line answer doesn't address these comments at all.
The accepted answer meets the concerns of these comments (using %i
instead of %d
). It also goes into a much better explanation of why their answer is correct.
In this case, you encountered some questions about your answer. When you didn't address those concerns and another answer did, it appears you were down voted.
New users are welcome (and encouraged) to provide answers. However, I don't think you can be that surprised at a less than stellar acceptance of the answer if you only provide two lines of text and don't address criticism.
The user had a specific problem, and I gave them the answer they needed.
To be pedantic, the question reads:
Why is it doing this?
Your answer quite simply did not address this.
Only the OP knows why they did not accept your answer but it is their decision and it is generally recommended that they accept the answer they personally found most helpful.
If they genuinely wanted to understand the "why" and not just "how to fix it" one could assume this is why they did not accept your answer. The accepted answer provides far greater detail and perhaps this OP appreciated a detailed explanation.
As a side note, the fact that you answered first is pretty much irrelevant.
marked the correct answer
The user who asks a question gets to accept any answer they choose. It is not an indication of correctness.
Are new people not welcome to answer questions here?
New people are certainly welcome to answer questions here and we all started out as new people.
Yes, new people aren't welcome here!