Better remove the carpet and have it dried under the sun. Otherwise, foul odor will come and rust might form on the flooring in the long run.