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
If you are working in ROOT, you do not even have to write #include and using namespace std; simply start from int filename().
#include
using namespace std;
int filename()
This will solve the issue.