Hi,
The problem does not seem to be in the "newScript.cc" but in the "primeiro.cc" (*)
I think that you have copied the text for that script from some document and there seems to be an encoding error.
See your image "ns3 fail.jpg" it mentions that the error is located in line 68 and the command
echoClient.SetAttribute("MaxPacket", UintegerValue(1));
but the quotation outside MaxPackets is printed as questionmak.
I would suggest to delete and re-write those quotation marks for your attributes and it should solve that problem.
Regards,
Kostas
(*) I do not know if you have used "newScript" as an example.