Main.cc: In function ‘int main()’:
Main.cc:19:19: warning: comparison with string literal results in unspecified behavior [-Waddress]
if(Map[i][j]=="C")
^~~
Main.cc:19:19: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:24:24: warning: comparison with string literal results in unspecified behavior [-Waddress]
else if(Map[i][j]=="M")
^~~
Main.cc:24:24: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:33:34: warning: comparison with string literal results in unspecified behavior [-Waddress]
if(m==0&&x-1>=0&&Map[x-1][y]!="*")
^~~
Main.cc:33:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:37:29: error: missing template arguments before ‘[’ token
else if(m==1&&y+1<10&&map[x][y+1]!="*")
^
Main.cc:41:39: warning: comparison with string literal results in unspecified behavior [-Waddress]
else if(m==2&&x+1<10&&Map[x+1][y]!="*")
^~~
Main.cc:41:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:45:39: warning: comparison with string literal results in unspecified behavior [-Waddress]
else if(m==3&&y-1>=0&&Map[x][y-1]!="*")
^~~
Main.cc:45:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:51:6: warning: operation on ‘m’ may be undefined [-Wsequence-point]
m=(++m)%4;
~^~~~~~~~
Main.cc:53:34: warning: comparison with string literal results in unspecified behavior [-Waddress]
if(m==0&&x-1>=0&&Map[x-1][y]!="*")
^~~
Main.cc:53:34: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:57:29: error: missing template arguments before ‘[’ token
else if(m==1&&y+1<10&&map[x][y+1]!="*")
^
Main.cc:61:39: warning: comparison with string literal results in unspecified behavior [-Waddress]
else if(m==2&&x+1<10&&Map[x+1][y]!="*")
^~~
Main.cc:61:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:65:39: warning: comparison with string literal results in unspecified behavior [-Waddress]
else if(m==3&&y-1>=0&&Map[x][y-1]!="*")
^~~
Main.cc:65:39: error: ISO C++ forbids comparison between pointer and integer [-fpermissive]
Main.cc:75:3: error: ‘prirntf’ was not declared in this scope
prirntf("%d\n",(X==x&&Y==y)?count:-1);
^~~~~~~
Main.cc:75:3: note: suggested alternative: ‘printf’
prirntf("%d\n",(X==x&&Y==y)?count:-1);
^~~~~~~
printf