Noussair Mazraoui and Bryan Mbeumo's nations both advanced to the last eight of the competition on Sunday.
Hosts Morocco overcame Tanzania 1-0, thanks to a great goal by Brahim Diaz, with Mazraoui producing a solid game at left-back to help preserve a clean sheet, before being withdrawn with 14 minutes remaining.
After that tie, Cameroon saw off South Africa 2-1, despite a late rally by Bafana Bafana.
The Indomitable Lions led through Stoke City's Junior Tchamadeu in the first half, with the goal given after a lengthy VAR check, and doubled the advantage when youngster Christian Kofane headed home, two minutes after the break.