title: VSCode C++ Terminal Process terminated with exit code: 1
body: <p>I want to use VSCode to do basic data sorting in C++, and needed to include a new library; while doing so, I think I accidentally screwed up something serious in the background (probably one of the .json files), because every time I try to build even the most basic programs with g++ through MinGW, I get the message "The terminal process terminated with exit code: 1. Even a basic "Hello World" project that I know works and previously made into an .exe, won't compile into an executable anymore.
  <strong>helloworld.cpp</strong>
  <div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>#include &lt;iostream&gt;
  #include &lt;vector&gt;
  #include &lt;string&gt;
  
  using namespace std;
  
  int main()
  {
      std::cout &lt;&lt;"Hello World!\n";
      
  }</code></pre>
  </div>
  </div>
  </p>
  
  <p>I tried restarting the window, reinstalling VSCode, starting a new project in a different directory, using the default json files in case I changed something I shouldn't have... I'm used to doing similar data tasks in FORTRAN through gfortran and Python with Spyder through Anaconda, but I'm inexperienced with both C++ and VSCode and am growing frustrated with the level of complexity to do something as simple as make a program run.</p>
  
  <p>Any advice on how to fix this would be helpful; I've checked other similar questions, and no suggestion has worked.</p>
  
  <p><strong>Tasks.json</strong></p>
  
  <pre><code>{
      "version": "2.0.0",
      "tasks": [
          {
              "type": "shell",
              "label": "C/C++: g++.exe build active file",
              "command": "D:\\MinGW\\bin\\g++.exe",
              "args": [
                  "-g",
                  "${file}",
                  "-o",
                  "${fileDirname}\\${fileBasenameNoExtension}.exe"
              ],
              "options": {
                  "cwd": "${workspaceFolder}"
              },
              "problemMatcher": [
                  "$gcc"
              ],
              "group": {
                  "kind": "build",
                  "isDefault": true
              }
          }
      ]
  }
  </code></pre>
  
  <p><strong>c_cpp_properties.json</strong></p>
  
  <pre><code>{
      "configurations": [
          {
              "name": "Win32",
              "includePath": [
                  "${workspaceFolder}/**"
              ],
              "defines": [
                  "_DEBUG",
                  "UNICODE",
                  "_UNICODE"
              ],
              "windowsSdkVersion": "10.0.17134.0",
              "compilerPath": "C:/Program Files (x86)/Microsoft Visual Studio/2017/Community/VC/Tools/MSVC/14.14.26428/bin/Hostx64/x64/cl.exe",
              "cStandard": "c11",
              "cppStandard": "c++17",
              "intelliSenseMode": "msvc-x64"
          }
      ],
      "version": 4
  }
  </code></pre>
  
  <p><strong>launch.json</strong></p>
  
  <pre><code>{
  // Use IntelliSense to learn about possible attributes.
  // Hover to view descriptions of existing attributes.
  // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
  "version": "0.2.0",
  "configurations": [
      {
          "name": "(Windows) Launch",
          "type": "cppvsdbg",
          "request": "launch",
          "program": "${workspaceFolder}/helloworld.exe",
          "args": [],
          "stopAtEntry": false,
          "cwd": "${workspaceFolder}",
          "environment": [],
          "externalConsole": false
      }
  ]
  </code></pre>
  
  <p>}</p>