What is the output of the following code?

int main()

for (int i = 0; i < 3; i)

cout << i;

cout << i;
return 0;

1) 012
2) 0122
3) 0123
4) Error: the variable i is not declared in the right scope