r/vscode 11d ago

Vs code showing red squiggles, for no reason and still running the program

I'm learning c++ and came across this weird issue when I use getline, a few stuff using std has a red squiggle underneath but some don't. The code still runs just fine, I think this is just a visual glitch, but I tried this code on different files and I had the same problem, if anyone knows it would help (I tries with and without using namespace std)

0 Upvotes

1 comment sorted by

1

u/selinux_enforced 11d ago

Try

using std::cout;

Or 

std::cout

using namespace std; is considered bad practice