Identify the type of sentence used in the following example:

She went to the store, but forgot to buy milk
The example sentence is a compound sentence.
Complete the following task based on the instruction and optional input provided.### Instruction:
Identify the type of sentence used in the following example:

She went to the store, but forgot to buy milk

### Output:
The example sentence is a compound sentence.