问题描述
我使用 Visual Studio 进行 C++ 项目已有超过六个月的时间。 但是时间过去了,下学期我在课程中学习了 Java,所以我安装了 Java 包,并在 Visual Code Studio 中发挥了作用。
但是我现在对 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>
而生成了所有类型的错误,但它可以正确编译并给出结果,但我不知道为什么会显示错误。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)