LCD - CustomCharacter:117: error: call of overloaded 'write(int)' is ambiguous

why did u use the ""lcd.write((byte)0);""" instead of "lcd.write(0);"

It's because of how the Arduino IDE deals with 'writing'. The complete explanation can be found here: Caracteres Speacial - #6 by bperrybap - Displays - Arduino Forum.

Scroll up a few posts (Caracteres Speacial - #2 by floresta - Displays - Arduino Forum) and I explain how you could have used: lcd.write(8);

Don