Squash lasts for quite awhile (months, even!) at room temperature. If it has soft mushy spots or is slimy and mushy when you cut it open, those are good indicators that it has gone bad.