I am wondering whether omitting the object in the following verb pattern would be considered wrong (grammatically speaking). Or it depends on the verb itself.
[Verb +Objet+ to + infinitive]
A1. The officers ordered their men to attack the building.
A2. The officers ordered to attack the building
B1. I warned him not to go there after dark.
B2. I warned not to go there after dark.