Once you understand what went wrong, then you can figure out why it went wrong. Most of the time the answer is very simple. The camera does most of the work for you. That is why it is called a point and shoot. Theoretically, you should be able to just point the camera and press the button.
Problem is that the camera has no brain.
It does not know what you wanted. In other words, it does not capture memories it records light. The camera does not see a beautiful sunset, it reads light of a certain brightness. It is the person behind the camera that records the memories. Unwanted reflections can totally ruin an image.