This code compiles, but I have a run time error in Visual Studio:
Run-time check failure #3 - the variable \'x\' is being used without being initializ
x is defined at the left of =.
x
=
so in x[x], [x] refer to the global one,
x[x]
[x]
whereas in x = x;, x hides the global x and initializes from itself -> UB.
x = x;