Re: exit status 1

  cm = distance*100

    Serial.print(cm);

Semicolons on the ends of statements are NOT optional.