Click this link to an explanation about the E18 error. My Canon Digital Elph S110 also had a lens problem. It cost me US$150 to have it fixed. I've had my Elph for over 5 years and couldn't bear to let it go, hence I chose to repair it rather than buy a new one.
http://en.wikipedia.org/wiki/E18_error
Hope this helps,
Val