Compile and run error

C:\Users\India\AppData\Local\Temp\ccEDR9Zy.o:helloworld.cpp:(.text+0x19): undefined reference to std::cout' C:\Users\India\AppData\Local\Temp\ccEDR9Zy.o:helloworld.cpp:(.text+0x1e): undefined reference to std::basic_ostream<char, std::char_traits >& std::operator<< <std::char_traits >(std::basic_ostream<char, std::char_traits >&, char const*)’
C:\Users\India\AppData\Local\Temp\ccEDR9Zy.o:helloworld.cpp:(.text+0x35): undefined reference to std::ios_base::Init::~Init()' C:\Users\India\AppData\Local\Temp\ccEDR9Zy.o:helloworld.cpp:(.text+0x56): undefined reference to std::ios_base::Init::Init()’
collect2.exe: error: ld returned 1 exit status
[Finished in 0.5s with exit code 1]
[shell_cmd: gcc “C:\Users\India\Documents\helloworld.cpp” -o “C:\Users\India\Documents/helloworld” && “C:\Users\India\Documents/helloworld”]
[dir: C:\Users\India\Documents]
[path: C:\MinGW\bin]

i face this type of error while compiling

@manoj2597 hey add using namespace std; after header files, it will work.

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.