for (int n : nums) std::cout << n << " ";

Published: 2025 • Useful for teams still using Visual Studio 2019.

return 0;