#include <bits/stdc++.h> using namespace std; string command="left"; bool all_explored; char map[105][105]; int main(){ while (true) { string feedback; cout << command << endl; cin >> feedback; if(all_explored){ 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{ if(command=="go"){ } } } return 0; }