launch.json出错(vs code)
今天运行文件,上午还好好的,下午就让VS CODE新打开了个文件夹,这家伙就出错了@陈尚涵cpp代码:
#include<bits/stdc++.h>
using namespace std;
int main()
{
map<int,int> a;
a=2;
a=4;
a[-100]=5;
cout<<a.count(3)<<" "<<a.count(4)<<endl;
a.clear();
cout<<a.size()<<endl;
return 0;
}
lunch.json代码:
{
"version": "0.2.0",
"configurations": [
{
"name": "C/C++ Runner: Debug Session",
"type": "cppdbg",
"request": "launch",
"args": [],
"stopAtEntry": false,
"externalConsole": true,
"cwd": "c:/Users/w/Desktop/code/Map(1)",
"program": "C:/MinGW/bin",
"MIMode": "gdb",
"miDebuggerPath": "gdb",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
]
}
]
}
页:
[1]