VSCODE运行代码使无有效结果

问题遇到的现象和发生背景

img


如图所示,就只输出那么个结果。

下面是我的launch.json代码。请指教

问题相关代码,请勿粘贴截图

{
"version": "0.2.0",
"configurations": [
{
"name": "C/C++",
"type": "cppdbg",
"request": "launch",
"program": "${fileDirname}/${fileBasenameNoExtension}.exe",
"args": [],
"stopAtEntry": false,
"cwd": "${workspaceFolder}",
"environment": [],
"externalConsole": true,
"MIMode": "gdb",
"miDebuggerPath": "C:/mingw64/bin/gdb.exe",
"preLaunchTask": "g++",
"setupCommands": [
{
"description": "Enable pretty-printing for gdb",
"text": "-enable-pretty-printing",
"ignoreFailures": true
}
],
},
]
}

运行结果及报错内容
我的解答思路和尝试过的方法
我想要达到的结果

将"草稿.c"改名为"草稿.cpp"

首先将external terminal改为false,然后切到"终端",应该就OK了