Yeah, and sizeof and malloc are very easily things students could have been exposed to in high school or their own studies. I’ve seen C books that use them in the first chapter.
It’s fine to say solve this problem using the following tools, but not great to say “if you find another approach, I assume cheating.”