0

My Code :-

#include <bits/stdc++.h>
using namespace std;

int main() {
    int t;
    cin>>t;
    cout<<t;
}

I am getting an error on the 1st line of the code (#include <bits/stdc++.h>) saying the following :

#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit

This is what my C++ Properties file looks like:-

{
    "configurations": [
        {
            "name": "Mac",
            "includePath": [
                "${workspaceFolder}/**"
            ],
            "defines": [],
            "macFrameworkPath": [],
            "compilerPath": "/usr/bin/g++",
            "cStandard": "gnu17",
            "cppStandard": "gnu++14",
            "intelliSenseMode": "gcc-x64"
        }
    ],
    "version": 4
}

The Error has been popping up since I have updated my Mac commmand line tools .

I have tried changing my includePath to /inc but that still doesn’t fix the problem.

Dev
  • 9
  • 4
    Please read [Why should I not #include ?](https://stackoverflow.com/questions/31816095/why-should-i-not-include-bits-stdc-h) and [Why is “using namespace std;” considered bad practice?](https://stackoverflow.com/questions/1452721/why-is-using-namespace-std-considered-bad-practice) – Some programmer dude Dec 22 '20 at 05:42
  • The problem persist even if i change it to #include – Dev Dec 22 '20 at 06:00
  • @Dev Is it the same error now ? please update the post with new code and new error – puio Dec 22 '20 at 08:05
  • Is there a reason you're not using clang on macOS ? – puio Dec 22 '20 at 08:06

0 Answers0