Rio de Janeiro: Japan and Ecuador were left heartbroken as their 1-1 draw in Belo Horizonte on Monday saw them miss out on the Copa America quarter-finals, with Paraguay qualifying instead.
Uruguay, meanwhile, topped Group C as Edinson Cavani's goal eight minutes from time gave them a 1-0 win over champions Chile, who also qualify, at Rio de Janeiro's Maracana stadium.
Japan and Ecuador faced a must win match in their bid to reach the knock-out stages as one of the two best third-placed finishers.
Peru had already secured their spot from Group A while Paraguay, in Group B, were left sweating on Monday's result having finished their campaign on Sunday with two points from three games.
Shoya Nakajima gave Japan the lead on 15 minutes with a goal validated by VAR, but 10 minutes from half time, Angel Mena equalised for Ecuador.
It meant Japan missed out on goal difference while Ecuador came up a point short. Paraguay will play hosts Brazil in the first quarter-final on Thursday in Porto Alegre.