When I compile this program:
#include<iostream>
using namespace std;
std::cout<<"before main"<<endl;
int main()
{
}
...I see this error from the compiler:
error: expected constructor, destructor, or type conversion before '<<' token
Please help me understand what this means and what's wrong with my program?