Compiling error of Grove - IMU 9DOF v2.0 example

thanks its working. but how can I find that reading are correct? how to find static z axis value?