title: How to Setup VS Code For C++ 14 /C ++17
body: <p>I tried to run a .cpp file from workspace but giving me this error about not adding c++11/higher flags but I have added them in task.json </p>
  
  <p><strong>Error</strong></p>
  
  <pre><code>[Running] cd "c:\Users\Nuhash\Desktop\test\" &amp;&amp; g++ main.cpp -o main &amp;&amp; "c:\Users\Nuhash\Desktop\test\"main
  main.cpp:8:1: error: expected unqualified-id before 'using'
  using ordered_set = tree&lt;T, null_type, less&lt;T&gt;, rb_tree_tag, tree_order_statistics_node_update&gt;;
  ^
  main.cpp:10:1: error: expected unqualified-id before 'using'
  using ordered_set_rev = tree&lt;T, null_type, greater&lt;T&gt;, rb_tree_tag, tree_order_statistics_node_update&gt;;
  ^
  main.cpp:12:1: error: expected unqualified-id before 'using'
  using dijkstra = priority_queue&lt;T, vector&lt;T&gt;, greater&lt;T&gt;&gt;;
  ^
  main.cpp:62:31: warning: variadic templates only available with -std=c++11 or -std=gnu++11
  template &lt;typename T, typename... Args&gt;
                                 ^
  main.cpp:63:52: warning: variadic templates only available with -std=c++11 or -std=gnu++11
  void err(istream_iterator&lt;string&gt; it, T a, Args... args) {
  </code></pre>
  
  <p><br></p>
  
  <p><strong>Task.Json</strong></p>
  
  <pre><code>{
      "version": "2.0.0",
      "tasks": [
          {
              "label": "build hello world",
              "type": "shell",
              "command": "g++",
              "args": [
                  "-g",
                  "-o",
                  "test",
                  "-std=c++14",
                  "main.cpp"
              ],
              "group": {
                  "kind": "build",
                  "isDefault": true
              },
              "problemMatcher": [
                  "$gcc"
              ]
          }
      ]
  }
  </code></pre>
  
  <p>Error message:</p>
  
  <pre><code>[Running] cd "c:\Users\Nuhash\Desktop\test\" &amp;&amp; g++ main.cpp -o main &amp;&amp; "c:\Users\Nuhash\Desktop\test\"main
  main.cpp:8:1: error: expected unqualified-id before 'using'
   using ordered_set = tree&lt;T, null_type, less&lt;T&gt;, rb_tree_tag, tree_order_statistics_node_update&gt;;
   ^
  main.cpp:10:1: error: expected unqualified-id before 'using'
   using ordered_set_rev = tree&lt;T, null_type, greater&lt;T&gt;, rb_tree_tag, tree_order_statistics_node_update&gt;;
   ^
  main.cpp:12:1: error: expected unqualified-id before 'using'
   using dijkstra = priority_queue&lt;T, vector&lt;T&gt;, greater&lt;T&gt;&gt;;
   ^
  main.cpp:62:31: warning: variadic templates only available with -std=c++11 or -std=gnu++11
   template &lt;typename T, typename... Args&gt;
                                 ^
  main.cpp:63:52: warning: variadic templates only available with -std=c++11 or -std=gnu++11
   void err(istream_iterator&lt;string&gt; it, T a, Args... args) {
  </code></pre>
  
  <p>c_cpp_properties:</p>
  
  <pre><code>    {
  
          "name": "Win32",
          "includePath": [
              "${workspaceFolder}"
          ],
          "defines": [
              "_DEBUG",
              "UNICODE",
              "_UNICODE"
          ],
          "intelliSenseMode": "clang-x64",
          "browse": {
              "path": [
                  "${workspaceFolder}"
              ],
              "limitSymbolsToIncludedHeaders": true,
              "databaseFilename": ""
          },
          "compilerPath": "F:\\Program Files (x86)\\CodeBlocks\\MinGW\\bin\\gcc.exe",
          "cStandard": "c11",
          "cppStandard": "c++17"
      }
  </code></pre>