If it isn't dry yet, start it and use full heat on the floor and open a window a little.
It depends on how much water flooded the interior. A lot of carpets have a rubber backing that will not let water soak through. Some don't and if there is enough water it will soak through at the seat bolts.
If it was flooded, pull the carpet, as it will never be the same, next damp day it will smell.
The dirty/wet part of the carpet should be cleaned of, dirt, food etc. Water, APC and scrub, wet vac out a few times. The last scrub, introduce the enzyme deodorizer and suck out. When done, mist on the enzyme and let dry. Finish with a mist of Febreze.
Most OTC deodorizers are either a bacteria/enzyme (organic smells) product, that usually work if you can remove most of the cause of the smell first. And only work when the product is still damp. Might need a couple applications.
Or OTC deodorizers are an encapsulator type, Febreze, which is a good finishing product.
More involved deodorizers use chemical reaction, poison, oxidation or replacement.
Good luck.