Why is visual studio code telling me that cout is not a member of std namespace? : <p>I am trying to setup visual studio code to program in c++. I have already installed the extensions <strong>C/C++</strong> and <strong>C/C++ Intellisense</strong></p>

<p>Following is my code:</p>

<pre><code>#include&lt;iostream&gt;
using namespace std;

int main()
{
 cout&lt;&lt; "hello" ;
}
</code></pre>

<p>The error I'm getting is <code>identifier cout is undefined</code> and when I write it as <code>std::cout</code> the error I get then is <code>namespace std has no member cout</code> . 
Following is my <code>task.json</code> file:</p>

<pre><code>{
"version": "0.1.0",
"command": "make",
"isShellCommand": true,
"tasks": [
    {
        "taskName": "Makefile",
        // Make this the default build command.
        "isBuildCommand": true,
        // Show the output window only if unrecognized errors occur.
        "showOutput": "always",
        // No args
        "args": ["all"],
        // Use the standard less compilation problem matcher.
        "problemMatcher": {
            "owner": "cpp",
            "fileLocation": ["relative", "${workspaceRoot}"],
            "pattern": {
                "regexp": "^(.*):(\\d+):(\\d+):\\s+(warning|error):\\s+(.*)$",
                "file": 1,
                "line": 2,
                "column": 3,
                "severity": 4,
                "message": 5
            }
        }
    }
]
}
</code></pre>

<p>How do i fix this?</p>
