We will be able to fill the glass up to the amount of water possible to hold in the glass, minus the amount in the cube. This means it will be able to hold cubic cm of water.
Using the difference of cubes formula(you can prove this by expanding back out again), we get that
Therefore, the answer is cubic centimeters and we're done!