Failed to execute multi-line commands at the ROOT prompt

Well, I learnd root by " First steps with ROOT" in Manaul. When I try the example like this:

root [0] {
root [1]   int j = 0;
root [2]   for (int i = 0; i < 3; i++)
root [3]   {
root [4]     j = j + i;
root [5]     std::cout << "i = " << i << ", j = " << j << std::endl;
root [6]   }
root [7] }
i = 0, j = 0
i = 1, j = 1
i = 2, j = 3

after the first line, I got a wrong:

{
root (cont'ed, cancel with .@)

I dont know whats wrong with it, may someone help me.
The ROOT version is ROOT 6.30/06. The platform is Ubuntu20.04LTS and Compiler is C++

That’s not an error, it’s just telling you that you can continue typing lines, or type .@ (and enter) to cancel this “multiline environment”. So, continue entering the commands, and after the last line (the } in your case) ROOT will (try to) execute the code.

oh!!!Thank you!
I am foolish, :joy:I mistake it means “cantend”

Any way it is true that what is shown in the manual is not conform to what you get when you enter manually some code. I made this PR update 1st step example by couet · Pull Request #996 · root-project/web · GitHub to make it more confrom to what you get.