vscode无法运行c++文件

vscode目前写过c和python,遇到的问题多多少少按网上教程都解决了。
但是在配置c++的时候一直无法运行代码,而且json文件怎么调(各种网上的调试方法都试过)都无法运行c++文件。
目前如果我新建一个文件夹,用vscode打开,创建c++文件,写几行代码运行,调试控制台会出现以下报错。

=thread-group-added,id="i1"
GNU gdb (GDB) 11.2
Copyright (C) 2022 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later 
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Type "show copying" and "show warranty" for details.
This GDB was configured as "x86_64-w64-mingw32".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
.
Find the GDB manual and other documentation resources online at:
    .

For help, type "help".
Type "apropos word" to search for commands related to "word".
Warning: Debuggee TargetArchitecture not detected, assuming x86_64.
=cmd-param-changed,param="pagination",value="off"
[New Thread 14392.0x54b8]
[New Thread 14392.0x4538]
[New Thread 14392.0x4224]

Thread 1 hit Breakpoint 1, main () at D:\3Work\VS Code Project\1\1.cpp:6
6        cout << "test";
Loaded 'C:\WINDOWS\SYSTEM32\ntdll.dll'. Symbols loaded.
Loaded 'C:\WINDOWS\System32\kernel32.dll'. Symbols loaded.
Loaded 'C:\WINDOWS\System32\KernelBase.dll'. Symbols loaded.
Loaded 'C:\WINDOWS\SYSTEM32\apphelp.dll'. Symbols loaded.
Loaded 'C:\WINDOWS\System32\ucrtbase.dll'. Symbols loaded.
Loaded 'D:\3Work\mingw64\bin\libstdc++-6.dll'. Symbols loaded.
Loaded 'D:\3Work\mingw64\opt\bin\libgcc_s_seh-1.dll'. Symbols loaded.
[Thread 14392.0x4224 exited with code 0]
[Thread 14392.0x54b8 exited with code 0]
[Thread 14392.0x4538 exited with code 0]
[Inferior 1 (process 14392) exited normally]
The program 'D:\3Work\VS Code Project\1\1.exe' has exited with code 0 (0x00000000).