Searches for R-parity-violating supersymmetry in pp collisions at sqrt(s) = 8 TeV in final states with 0-4 leptons