Requirements
Install Visual Studio Code.
Install the C/C++ extension for VS Code. You can install the C/C++ extension by searching for ‘c++’ in the Extensions view (Ctrl+Shift+X).
Get the latest version of Mingw-w64 via MSYS2, which provides up-to-date native builds of GCC, Mingw-w64, and
other helpful C++ tools and libraries.
————————————————————————————————————————————
FOLLOW THE STEPS TO INSTALL GCC
Download the installer
https://github.com/msys2/msys2-installer/releases/download/2021-06-04/msys2-x86_64-20210604.exe
Run the installer. MSYS2 requires 64 bit Windows 7 or newer.
Enter your desired Installation Folder ( c:\msys64)
When done, tick Run MSYS2 now
Update the package database and base packages. Unless your setup file is very recent, it will take two steps.
First run pacman -Syu

Run “MSYS2 MSYS” from Start menu. Update the rest of the base packages with pacman -Su

Now MSYS2 is ready for you. You will probably want to install some tools and the mingw-w64 GCC to start
compiling. Run: pacman -S –needed base-devel mingw-w64-x86_64-toolchain

Add the path to your Mingw-w64 bin folder to the Windows PATH environment variable by using the following
steps:
In the Windows search bar, type ‘settings’ to open your Windows Settings.
Search for Edit environment variables for your account.

Choose the Path variable and then select Edit.

Select New and add the Mingw-w64 destination folder path to the system path. The exact path depends on which
version of Mingw-w64 you have installed and where you installed it. If you used the settings above to install
Mingw-w64, then add this to the path: C:\msys64\mingw64\bin.

- Select OK to save the updated PATH. You will need to restart the system.
Debbuger ( Optional Terminal for LAHTP Server )
Download git to use Bash ( Terminal )
link : https://git-scm.com/download/win
Install Git from the above link
Open Visual Studio Code and press and hold Ctrl + ` to open the terminal

Select Git Bash from the options
Click on the + icon in the terminal window
The new terminal now will be a Git Bash terminal. Give it a few seconds to load Git Bash
Select bash terminal from the options

Start debugging your code

Hope this will help for someone .
Thankyou
@Ramesh267