Brazil secured their place in the next round and first place with two narrow wins against Serbia and Switzerland but suffered a shock defeat to Cameroon on the last day.
Apart from their defeat to Brazil, Switzerland were otherwise solid and defeated Cameroon and Serbia to clinch 2nd place.
Cameroon will be heartbroken to be eliminated from the tournament despite their efforts but will be proud to go back as the first African team to beat Brazil at the World Cup.
Article continues below
Serbia showed a lot of heart and grit in their matches but had nothing to show for it apart from a point from their draw against Cameroon.