Senegal failed to qualify as they finished third behind second-placed Japan after picking up more yellow cards than the Asian side throughout the tournament.