Error when I tried to compile an example