Hundreds of thousands of homes and businesses in the greater St. Louis area were without electricity on Thursday in the wake of a powerful thunderstorm that tore through Missouri and Illinois and left residents to cope with ripped roofs , fallen trees and a withering heat wave .