foo.cc: In function 'int main()':
foo.cc:4:4: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
4 | cout<<5<<endl;
| ^~~~
| std::cout
In file included from foo.cc:1:
/usr/include/c++/13/iostream:63:18: note: 'std::cout' declared here
63 | extern ostream cout; ///< Linked to standard output
| ^~~~
foo.cc:4:13: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
4 | cout<<5<<endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/13/iostream:41:
/usr/include/c++/13/ostream:735:5: note: 'std::endl' declared here
735 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~