I have this piece of code that prints out a pattern, I ran it on an online IDE and it compiled and gave correct output. But in VS code I get build error when I copy paste it to