C++ variable scope explained 🌎