Answer: (a,b)=(0,1), (1,2), (2,2) and (−n,n) for any integer n≥0.
If a+b=0 then (a,b)=(−n,n) for an integer n≥0, so now assume that a+b=0. Then a+b=a2−ab+b2 and hence (a−b)2+(a−1)2+(b−1)2=2. By setting x=a−1,y=b−1 we get x≤y and x2+y2+(x−y)2=2. Clearly, (x,y)=(±1,±1), (0,1),(−1,0), and therefore (a,b)=(0,1),(1,2),(2,2).