Error while using "cout", "endl" and "using namespace std"

I have attached the screenshot. Plz tell me where i went wrong i am using vs 2017Screenshot%20(3)

You have to include the iostream library to be able to use cout.

ohhhh…that’s y… XD… damn stupid of me to forget such a silly things anyways thanks

Also, just to be clear, #include always go first, then using namespace.

When you see indentifier is undefined it means you miss an include.

Privacy & Terms