Which is a compound sentence?

 - The tailor measures the length of the pant leg.
 - The captain saw storm clouds, so he steered the ship back to shore.
The second sentence is the compound sentence. It is made up of two simple sentences joined by a comma and the conjunction so.
The captain saw storm clouds, so he steered the ship back to shore.