Reading through your comments here, I see that you're 22 and an intern at Amazon. Well, at 22 I still didn't have a job, not even as an intern. You're comparing yourself to people who have full-time jobs and feeling like you're not making much money. At 22, I was making $0.
You're probably looking at people around you and thinking that they know more than you. That's how it goes as an intern. You're not supposed to know more than them. You're supposed to be learning faster than them. (The rate at which they are learning new things is probably not that high.)
You're looking at other peoples' pay, and feeling inadequate. But that's because you're looking only at the people above you. And you'll never make yourself happy by focusing on what you don't have.
Most (all?) of us are mediocre at most things. But all it takes is finding one thing that you're not mediocre at. That may not be programming (at 22, it's far too early to tell). If it's not programming, it's not. Go find what it is. (But be sure it's not programming before you go looking for something else.)
dynamicdox recommended rock climbing. I might suggest ultimate frisbee. The read-and-react style of play is a nice change of pace from the normal style of programming.
konradb said that you're mistaking your own voice for reality. That may well be true. If so, you need to talk to yourself more and listen to yourself less (if that makes sense).