Unexpected errors in C++ program?
Here is the program code:
#include<iostream>
int main() {
cout<<"Hello World";
return 0;
}
Errors using g++ in terminal :
[Raman@Fedora CPP]$ g++ hello.cpp
hello.cpp: In function ‘int main()’:
hello.cpp:3:1: error: ‘cout’ was not declared in this scope
This is first time I am using g++.I am not able to remove these errors .plz help
Laptop:
Operating System:Fedora 14, Kernel Linux 2.6.35.6-45.fc14x86_64, Gnome 2.32.0
Memory: 2 GiB
Processor: Pentium(R) Dual-Core CPU T4500