I get these error messages for all cout and endl:
cout
endl
main.cc:17:5: error: ‘cout’ was not declared in this scope main.cc:17:5: note: sugges
Everything in the Standard Template/Iostream Library resides in namespace std. You've probably used:
using namespace std;
In your classes, and that's why it worked.