2 3 2 1 0 3 2 2 2
It seems to have no problem. The data have been tampered with! Hint For the first testcase: One possible way is: $Team1$ won $Team2$ and $Team3$,gained $2$ marks.$Team2$ won $Team3$ but lost the game with $Team1$,gained $1$ mark.$Team3$ lost both games and gained 0. For the second testcase: It's obviously impossible that all the teams would win all the games.So it must have been modified. The Input ${a}_{i}$ is disordered.