Are the second sentences all correct with the changes:

3. (Pronoun Agreement Error) The cafeteria was in an uproar because every student was overcharged for their lunch.
NEW SENTENCE:
Every student in the cafeteria was in an uproar because they were overcharged for their lunch.
5. (Subject-Verb Agreement) The container of toxic chemicals are on the top shelf.
NEW SENTENCE
The toxic chemicals in the container are on the top shelf.

10. (Misplaced Modifier Error) The magician dazzled and surprised the audience members wearing a cloak and top hat.
NEW SENTNENCE
The magician who was wearing the cloak ant top hat dazzled and surprised the members of the audience.

5 and 10 are correct. 3 is wrong.

3. (Pronoun Agreement Error) The cafeteria was in an uproar because every student was overcharged for their lunch.

NEW SENTENCE:
The cafeteria was in an uproar because students were overcharged for their lunches.

Yes, all of the changes made in the new sentences are correct.

3. (Pronoun Agreement Error) The original sentence had a pronoun agreement error because the pronoun "their" was referring to "every student," which is a singular subject. In the new sentence, the pronoun "they" correctly agrees with the plural subject "every student."

5. (Subject-Verb Agreement) The original sentence had a subject-verb agreement error because the singular noun "container" was paired with the plural verb "are." In the new sentence, the plural subject "toxic chemicals" is paired with the appropriate plural verb "are."

10. (Misplaced Modifier Error) The original sentence had a misplaced modifier error because the phrase "wearing a cloak and top hat" was placed after "audience members," suggesting that the audience members were the ones wearing the cloak and top hat. In the new sentence, the modifier "who was wearing the cloak and top hat" is correctly placed next to "the magician," clarifying that the magician is the one wearing the cloak and top hat.