1

Earlier I used to get error lines in the file name section and in the line also which contain error, but now I am not getting that. I have to run the program to know about the error in the code. Like in which line I am getting error.

As shown in the image also without running the program I am not getting the error message. enter image description here

  • You don't get error when running an already built program, you get errors when *building* the code into a program. How do you build your program? Are you sure that the file you show will be built? Please show us your `tasks.json` file (copy-paste it as *text* into your question), and any other build-related file. – Some programmer dude Dec 20 '21 at 07:25
  • On a few unrelated notes: [Don't use ``](https://stackoverflow.com/questions/31816095/why-should-i-not-include-bits-stdc-h); Don't use global variables; Don't use so-called "competition" or "online judge" sites for any kind of learning or teaching (using them as such do more harm than being useful). – Some programmer dude Dec 20 '21 at 07:27

1 Answers1

0

Enable Your Squiggles to resolve this:

  • click ctrl+shift+p
  • Search c/c++: enable error squiggles
  • click on it.

It will enable your error messages.

Anurag Yadav
  • 79
  • 10