cave.cpp: In function 'void exploreCave(int)':
cave.cpp:37:16: error: 'cout' was not declared in this scope
if(ans[i]!=0)cout<<"blablabla"<<endl;
^~~~
cave.cpp:37:16: note: suggested alternative:
In file included from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:75:0,
from cave.cpp:2:
/usr/include/c++/7/iostream:61:18: note: 'std::cout'
extern ostream cout; /// Linked to standard output
^~~~
cave.cpp:37:35: error: 'endl' was not declared in this scope
if(ans[i]!=0)cout<<"blablabla"<<endl;
^~~~
cave.cpp:37:35: note: suggested alternative:
In file included from /usr/include/c++/7/istream:39:0,
from /usr/include/c++/7/sstream:38,
from /usr/include/c++/7/complex:45,
from /usr/include/c++/7/ccomplex:39,
from /usr/include/x86_64-linux-gnu/c++/7/bits/stdc++.h:52,
from cave.cpp:2:
/usr/include/c++/7/ostream:590:5: note: 'std::endl'
endl(basic_ostream<_CharT, _Traits>& __os)
^~~~