Big problems with HC-SR04 Ultrasonic sensor

And maybe you wanted to make 'distance' float

int distance;

distance= duration*0.034/2;