Did the Sumerians and ancient Egyptians write in hieroglyphics?
The answer is: no
Sumerians wrote in cuneiform, which is a system of writing that uses wedge-shaped marks on clay tablets. Ancient Egyptians wrote in hieroglyphics, which is a system of writing that uses pictures and symbols to represent words and sounds.