#include <algorithm> #include <iostream> #include <cmath> using namespace std; int main() { while(true){ string feedback; string command="";1 cout << command << endl;2 feedback=get_feedback(command);3 if(all_explored){4 cout << "END" << endl; cout << n << " " << m << endl; for(int i=0;i<n;i++){ for(int j=0;j<m;j++){ cout << map[i][j]; } cout << endl; } break; }else{5 } } return 0; }