简体   繁体   English

IntelliSenseMode 根据编译器参数和查询 compilerPath: "C:\MinGW\bin\gcc.exe" 从 "windows-gcc-x64" 更改为 "windows-gcc-x86"

[英]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.我将 Visual Studio 用于 c++ 项目超过六个月。 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.但是时间过去了,在下个学期,我在课程中有 java,所以我安装了 java package 并像视觉代码工作室的魅力一样工作。

But i am having problem with c++ now,as it keeps telling me但是我现在对 c++ 有问题,因为它一直在告诉我

#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.并且有所有类型的错误生成不包括#include <bits/stdc++.h>但它编译正确并给出结果但我不知道为什么它显示错误。

Your compiler is not installed correctly.您的编译器未正确安装。 IT would be helpful if you reinstall your compiler to resolve this error.如果您重新安装编译器以解决此错误,这将很有帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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