简体   繁体   中英

IntelliSenseMode was changed from "windows-gcc-x64" to "windows-gcc-x86" based on compiler args and querying compilerPath: "C:\MinGW\bin\gcc.exe"

I was using visual studio for c++ projects for over a period of six months. But time passed and in next semester i had java in course so i installed java package and works like charm with visual code studio.

But i am having problem with c++ now,as it keeps telling me

#include errors detected. Please update your includePath. Squiggles are disabled for this translation unit (C:\Users\DELL\Desktop\problem 1\a.c).

cannot open source file "bits/stdc++.h"

and it keeps giving a message too

For C source files, IntelliSenseMode was changed from "windows-gcc-x64" to "windows-gcc-x86" based on compiler args and querying compilerPath: "C:\MinGW\bin\gcc.exe"

I could not find anything which i am doing wrong

#include <bits/stdc++.h>
using namespace std;
#define fast   ios_base::sync_with_stdio(false); cin.tie(NULL);
int main()
{
fast
int num,n;
cin>>n;
vector<vector<int>> v;


for(int i=0;i<n;i++)
{
    vector<int> v1;
   for(int j=0;j<n;j++)
    {
        v1.push_back(j+1);
    }
    v.push_back(v1);
}

return 0;
}

and there are all types of error which are generated for not including #include <bits/stdc++.h> but it compiles correctly and also gives results but i don't know why it is showing errors.

Your compiler is not installed correctly. IT would be helpful if you reinstall your compiler to resolve this error.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM