It’s funny how sometimes, even after putting all you’ve got into doing something, you do not get the results that can qualify your effort as a success. If this gets you down, you’ve indeed failed.
If you keep going, you will eventually realize that the “failure” was very much needed in order to succeed!
Success is simply about how far you go. Even a person who stops when he thinks he has succeeded, has achieved everything he hoped for, is a failure at some level. On the flip side, even the person who gives up after the first try has succeeded to an extent.