Replicated variable in C++ doesnt work

How did you find out it wasn’t?