(2)All the girls here do not have short hair.
all the kids don't like to study.
the problem with these sentences ^^ is that we don't know what they mean.
imagine that "not" is an algebraic minus sign.
then the problem is that ... we don't know where the minus sign goes.
"ALL the girls do NOT have short hair" COULD mean...
"–(All the girls have short hair)" —> "it's false that all the girls have short hair" —> "AT LEAST ONE girl has LONG hair"
*OR*
"All the girls have –(short hair)" —> "ALL the girls have LONG hair"
same thing with "all the kids don't like to study"
this could mean...
–(all kids like to study) —> "at least one kid doesn't like to study"
OR
all kids –(like to study) —> "all the kids hate studying" / "NO kid likes to study"
--
this is honestly my best attempt to explain this—there is literally no possible way i could explain this beyond what i've already written here.
...so, hopefully this makes sense now (:
if this still doesn't make sense, then just memorize: you can't combine "all"/"both"/"and" + negative.