Hi I am answering the questions and users are upvoting my answers in SO but still I have not gained any reputation nor it is showing the questions that I have answered in my profile webpage.
What is meta?
- Any Stack Exchange user can ask a question
- The community provides support, votes on ideas, and reports bugs
- Your voice helps shape the way Stack Exchange operates
So you don't gain/lose reputation on deleted posts. And also you don't gain/lose any reputation by comments. Reputation changes from votes (both up and down) on deleted posts (including answers to a deleted question) are nullified (except an exception).
As already stated
Now going through 2 of your answers, the first one is more like a clarification in a question (which is off topic also), and you should use comment field for that kind of purpose. It was simply not an answer, and so moderator deleted it.
The second one is a link only answer, and which are discouraged here on SO. Your post should answer the question even if the link goes dead, which is not the case with your answer. So it is converted as a comment.