Are there system smoke detectors that have built-in alarms?

We were at some State Park and were staying in cabins, and when I went to take the trash out, the only thing in the dumpster was an empty bottle and the smoke.