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
"std" is a namespace used for STL (Standard Template Library). Please refer to https://en.wikipedia.org/wiki/Namespace#Use_in_common_languages
You can either write using namespace std; before using any stl functions, variables or just insert std:: before them.
using namespace std;
std::