簡體   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"

我將 Visual Studio 用於 c++ 項目超過六個月。 但是時間過去了,在下個學期,我在課程中有 java,所以我安裝了 java package 並像視覺代碼工作室的魅力一樣工作。

但是我現在對 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"

它也不斷發出信息

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"

我找不到任何我做錯的事情

#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;
}

並且有所有類型的錯誤生成不包括#include <bits/stdc++.h>但它編譯正確並給出結果但我不知道為什么它顯示錯誤。

您的編譯器未正確安裝。 如果您重新安裝編譯器以解決此錯誤,這將很有幫助。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM