euler method with julia1.0

As for the error message, you are “hitting” REPL and for loops (scope behavior change).