I am using ubuntu 12.04. I have eclipse juno. I wrote test.cpp :
#include <iostream>
using namespace std;
int main() {
cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
return 0;
}
I enter to the terminal and I succeeded to run it. The same file in eclipse I was also able to run but eclipse always warn about errors regarding the lines (red errors).
Why is it happening ? How can I fix it ? Why is it tells me : cout can not be resolved