Help With Converting Char to Int

Where does this error occur?