Ответ:
We were warned that we mustn't use our mobiles during the lessons or the teachers would punish us.
were warned, have to, will punish