As GG has already mentioned, "the floor needs to be swept" is correct and standard.
You can also say "the floor needs sweeping", and that would also be standard.
"The floor needs swept" is a non-standard format. However, there are a few areas in which you might hear people use it in informal English. (I think people in the Pittsburgh, PA area sometimes use it, for example.)