This cat really needs to get to the vet. If this is a urinary tract problem (blockage) it can be fatal. If it's an urinary tract infection (UTI) she needs antibiotics. Cats will go outside the litter box if they have this because they associate the pain they are having with the litter box. Please have her checked ASAP!