treasure.cpp: In function 'void findTreasure(int)':
treasure.cpp:12:13: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
12 | cout << 1 << " " << 1 << " "<< i << " " << j << "\n";
| ^~~~
| std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:75,
from treasure.cpp:2:
/usr/include/c++/10/iostream:61:18: note: 'std::cout' declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
treasure.cpp:14:13: error: 'cin' was not declared in this scope; did you mean 'std::cin'?
14 | cin >>cnt;
| ^~~
| std::cin
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:75,
from treasure.cpp:2:
/usr/include/c++/10/iostream:60:18: note: 'std::cin' declared here
60 | extern istream cin; /// Linked to standard input
| ^~~
treasure.cpp:19:5: error: 'cout' was not declared in this scope; did you mean 'std::cout'?
19 | cout <<"END\n"
| ^~~~
| std::cout
In file included from /usr/include/x86_64-linux-gnu/c++/10/bits/stdc++.h:75,
from treasure.cpp:2:
/usr/include/c++/10/iostream:61:18: note: 'std::cout' declared here
61 | extern ostream cout; /// Linked to standard output
| ^~~~
treasure.cpp:7:15: warning: unused variable 'ans' [-Wunused-variable]
7 | int cnt , ans;
| ^~~