I am getting Terminal error on Visual Studio Code - c++

I have just started learning C++ and I am getting this terminal error. I tried every possible way on the internet and uninstalled and reinstalled VS Code 3 times, but nothing is working. This is the error I get:
The code is running if I try to run it through command prompt. This is the code:

Related

installed visual code and its giving me include error | path/crtdbg

so i have installed visual code after trying to learn some basics. i have installed visual studio 2022 before so i have that on my computer. i tried changing the path but im still getting the same error. i have installed vs code on another drive. i was wondering if anyone know how to fix this or whats causing it. i attached a screenshot of terminal to so you can see the error for yourself.
Image
Thanks

Cant run C++ onto console in Visual Studio Code

Every time I click F5 to debug or run my code to console, I only receive an error message and im not so sure what to do. Im new to VSCode and help is highly appreciated.
I get an error saying: launch program " does not exist
Any advice as to what I should do? My OS is windows 10.
I've tried installing code runner and reinstalling visual studio all together. Though I cant find anything on the internet for any information.

LNK1124 error debugger cannot find .exe file

image of error
I'm having an error with visual studio every time I'm trying to use cin to get the guess of the user without that it works fine.
code
console message with error
this happening to me since I install visual studio 2017 just a couple of days ago.
I'm trying to learn c++ for unreal engine just started learning and i came across
that error anyone who have this error maybe this can be helpful for them.
first, let me tell you wah t the problem was i was trying to run a 32bit debugger on my 64bit pc cause visual studio install it that way so if you are getting this error on any of your projects all you have to do is change the project to an x64 bit project.
go to the Top bar "Build"
then go to "Configuration manager"
in there change it to x64 bit instead of 32bit
hopefully this can help someone
the link to the page that i read to fix is here.
after all the changes code runs well and no error anymore.

vs command line error: LINK : fatal error LNK1104: cannot open file 'main.exe'

I am getting this error when compiling c++ code in the visual studio command window. The command cl /EHsc main.cpp works except for the error stated in the title. I have been trying suggestions for hours and none of them have worked. I have tried repairing, modifying, and reinstalling visual studio. Last time I used this software (about 6 months ago), I never had this issue. I had a different computer but still was using windows 10 and visual studio. Also, sometimes it doesn't give me this error and builds the .exe file, but then says "Access denied". I programmed c++ in VS a lot before and never had this issue.

Unable to attach matlab.exe process to visual studio 2013 for debugging mex files?

I am writing some mex files to run in my matlab program using visual studio 2013 compiler.
In order to be able to debug your mex files, you should follow these steps
Everything was right just some minutes ago and I was doing my project without any problem.
Today I have typed the code
mex -g mx_minimum_power.cpp cvm_em64t_debug.lib
on command prompt many times and after getting the success message, I've attached matlab.exe to visual studio and through setting a break point, I've
debugged my code.
But this time I suddenly ran into the following error and I don't know how to solve it.
When I right-clicked on the third option and clicked run as administrator, I encountered the following message:
Then if I choose configure remote debugging, I'll encounter:
Now I have the following processes that are shown to be running.
and again:
When I click on permissions or options for remote debugger:
After running visual studio remote debugging monitor and getting the following message:
One should click the Find button in this window in order to find the msvsmon.exe that is being run on the subnet
and then choose MATLAB.exe, in the Available Processes list.