Trouble with compass HMC5883L

pedrorodrigo:
and if I use an example of HMC5883L, this happens:

is a hardware problem??

Not if the magnetometer is lying still.

On the reason for the 49 on your first post, it's hard to tell. I am having trouble seeing your code. Some folks would assume that you correctly copied working code to your Arduino, but those folks are not me. Call me skeptical.