prog.cpp: In function ‘int main()’:
prog.cpp:5:3: error: ‘cout’ was not declared in this scope
cout << "Hello World" << endl;
^
prog.cpp:5:3: note: suggested alternative:
In file included from prog.cpp:1:0:
/usr/include/c++/4.8/iostream:61:18: note: ‘std::cout’
extern ostream cout; /// Linked to standard output
^
prog.cpp:5:28: error: ‘endl’ was not declared in this scope
cout << "Hello World" << endl;
^
prog.cpp:5:28: note: suggested alternative:
In file included from /usr/include/c++/4.8/iostream:39:0,
from prog.cpp:1:
/usr/include/c++/4.8/ostream:564:5: note: ‘std::endl’
endl(basic_ostream<_CharT, _Traits>& __os)
^