/in/foo.cc: In function 'int main()':
/in/foo.cc:12:9: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
12 | cout >> ans >> endl;
| ^~~~
| std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/12/bits/stdc++.h:75,
from /in/foo.cc:1:
/usr/include/c++/12/iostream:61:18: note: 'std::cout' declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
/in/foo.cc:12:24: error: 'endl' was not declared in this scope; did you mean 'std::endl'?
12 | cout >> ans >> endl;
| ^~~~
| std::endl
In file included from /usr/include/c++/12/istream:39,
from /usr/include/c++/12/sstream:38,
from /usr/include/c++/12/complex:45,
from /usr/include/c++/12/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/12/bits/stdc++.h:54:
/usr/include/c++/12/ostream:688:5: note: 'std::endl' declared here
688 | endl(basic_ostream<_CharT, _Traits>& __os)
| ^~~~