title: How to fix namespace "std" has no member "sqrt" in VSCode?
body: <p>I am able to compile and execute my code successfully. However, VSCode keeps showing me the error message:</p>
  
  <blockquote>
    <p>namespace std has no member "sqrt". </p>
  </blockquote>
  
  <p>I adjusted the properties.json. Please advice why is the vscode showing this error. I tried googling but no avail.</p>
  
  <pre><code>#include &lt;iostream&gt;
  #include &lt;cmath&gt;
  #include &lt;complex&gt;
  
  int main() {
   double a,b,c;
   int root1, root2;
  
  
    std::cout&lt;&lt;"Enter a: \n";
    std::cin &gt;&gt; a;
    std::cout&lt;&lt;"Enter b: \n";
    std::cin &gt;&gt; b;
    std::cout&lt;&lt;"Enter c: \n";
    std::cin &gt;&gt; c;
  
    root1 = (-b + std::sqrt (b*b - 4*a*c)) / (2*a);
    std::cout&lt;&lt;"Root 1 Number: " &lt;&lt; root1 &lt;&lt; "\n";
  
    root2 = (-b - std::sqrt (b*b - 4*a*c)) / (2*a);
    std::cout&lt;&lt;"Root 2 Number: " &lt;&lt; root2 &lt;&lt; "\n";
  
  }
  
  json:
  {
      "configurations": [
          {
              "name": "Win32",
              "includePath": [
                  "${workspaceRoot}",
                  "C:/MinGW/lib/gcc/mingw32/8.2.0/include/c++",
                  "C:/MinGW/lib/gcc/mingw32/8.2.0/include/c++/backward",
                  "C:/MinGW/lib/gcc/mingw32/8.2.0/include",
                  "C:/MinGW/lib/gcc/mingw32/8.2.0/include/c++/tr1",
                  "C:/MinGW/lib/gcc/mingw32/8.2.0/include/c++/tr2"
              ],
              "defines": [
                  "_DEBUG",
                  "UNICODE",
                  "__GNUC__=6",
                  "__cdecl=__attribute__((__cdecl__))"
              ],
              "cStandard": "c11",
              "cppStandard": "c++17",
              "intelliSenseMode": "msvc-x64",
              "browse": {
                  "path": [
                      "${workspaceRoot}",
                      "C:/MinGW/lib/gcc/mingw32/8.2.0/include/c++",
                      "C:/MinGW/lib/gcc/mingw32/8.2.0/include/c++/backward",
                      "C:/MinGW/lib/gcc/mingw32/8.2.0/include",
                      "C:/MinGW/lib/gcc/mingw32/8.2.0/include/c++/tr1",
                      "C:/MinGW/lib/gcc/mingw32/8.2.0/include"
                  ]
              }
  
          }
      ],
      "version": 4
  }
  </code></pre>