It looks like this error happens due to version of your MSBuild, an old version of MSBuild can only compile C# version 4.
error happens due to wrong use of argument in line number 21.
In line 21 if(other.gameObject.name = "Ball").
Replace the code with if(other.gameObject.name == "Ball").