今天运行文件,上午还好好的,下午就让VS CODE新打开了个文件夹,这家伙就出错了@陈尚涵
cpp代码:#include<bits/stdc++.h>
using namespace std;
int main()
{
map<int,int> a;
a[3]=2;
a[10000000000]=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
}
]
}
]
}
|