The correct option that represents a compound sentence is:
A. We went to the railroad station, but the train had already departed.
A compound sentence contains two independent clauses joined by a coordinating conjunction (in this case, "but"). The other options are either simple sentences or complex sentences.