#include <fstream>
using namespace std;
char maze[10][10];//字符数组,存储UDLR指令
//文件读入字符数组
void infile(char filename[])
{
ifstream f1(filename);
if(!f1)
cout<<"error"<<endl;
else
for(int i = 0; i < 10; i++)
for(int j = 0; j < 10; j++)
f1>>maze[i][j];
f1.close();
}