I am working on the \'driver\' part of my programing assignment and i keep getting this absurd error:
error C2065: \'cout\' : undeclared identifier
The code below compiles and runs properly for me using gcc. Try copy/pasting this and see if it works.
#include using namespace std; int bob (int a) { cout << "hey" << endl; return 0; }; int main () { int a = 1; bob(a); return 0; }