Yes, I am pressing f5, after I click it it shows me this error: error exist after running prelaunchtask c/c++ cpp.exe build active file. When I click it in the terminal shows: executing task: ... \bin\cpp.exe -g 'd:\path to file\file.cpp' -o 'd:\path to file\file.exe'
The thing is, I can't really help you without know more context. To use #include <> you probably need to modify your compilers include path. I assume you use g++ and have it in your path.
Inside the .vscode folder create a tasks.json with the following content
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "2.0.0",
"tasks": [
{
"label": "buildCustomIncludePath",
"type": "shell",
"command": "<your command, see below>",
"problemMatcher": [],
"group": {
"kind": "build",
"isDefault": true
}
}
]
}
To make sure this works you can use "g++ *.cpp -I <your include path> -o output.exe" as your command.
———————————-
Assuming you have .vscode/launch.json, change the preLaunchTask to the name of your build config (buildCustomIncludePath in the example above)