Accepted
/in/foo.cc: In function 'void rugan(int, int)':
/in/foo.cc:12:6: warning: unused variable 'tx' [-Wunused-variable]
int tx=x,ty=y;
^~
/in/foo.cc:12:11: warning: unused variable 'ty' [-Wunused-variable]
int tx=x,ty=y;
^~
/in/foo.cc: In function 'int main()':
/in/foo.cc:40:45: warning: format '%c' expects argument of type 'char*', but argument 2 has type 'int*' [-Wformat=]
for(int j=1;j<=m+1;j++) scanf("%c",&a[i][j]);
~~~~~~~~^