鱼C论坛

 找回密码
 立即注册
查看: 1888|回复: 0

launch.json出错(vs code)

[复制链接]
发表于 2022-11-20 19:59:38 | 显示全部楼层 |阅读模式
3鱼币
今天运行文件,上午还好好的,下午就让VS CODE新打开了个文件夹,这家伙就出错了@陈尚涵
黑灰.png
cpp代码:
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5.     map<int,int> a;
  6.     a[3]=2;
  7.     a[10000000000]=4;
  8.     a[-100]=5;
  9.     cout<<a.count(3)<<" "<<a.count(4)<<endl;
  10.     a.clear();
  11.     cout<<a.size()<<endl;
  12.     return 0;
  13. }
复制代码

lunch.json代码:
  1. {
  2.     "version": "0.2.0",
  3.     "configurations": [
  4.      
  5.       {
  6.         "name": "C/C++ Runner: Debug Session",
  7.         "type": "cppdbg",
  8.         "request": "launch",
  9.         "args": [],
  10.         "stopAtEntry": false,
  11.         "externalConsole": true,
  12.         "cwd": "c:/Users/w/Desktop/code/Map(1)",
  13.         "program": "C:/MinGW/bin",
  14.         "MIMode": "gdb",
  15.         "miDebuggerPath": "gdb",
  16.         "setupCommands": [
  17.           {
  18.             "description": "Enable pretty-printing for gdb",
  19.             "text": "-enable-pretty-printing",
  20.             "ignoreFailures": true
  21.           }
  22.         ]
  23.       }
  24.     ]
  25.   }
复制代码

想知道小甲鱼最近在做啥?请访问 -> ilovefishc.com
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|Archiver|鱼C工作室 ( 粤ICP备18085999号-1 | 粤公网安备 44051102000585号)

GMT+8, 2024-5-1 14:20

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表