/in/foo.cc: In function 'int main()':
/in/foo.cc:12:18: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'char*' [-Wformat=]
scanf("%d",&n);
^
/in/foo.cc:13:37: warning: array subscript has type 'char' [-Wchar-subscripts]
for(i=1;i<=n;++i) scanf("%s",a[i]);
^
/in/foo.cc:18:37: warning: array subscript has type 'char' [-Wchar-subscripts]
for(k=0;k<strlen(a[i])&&k<strlen(a[j]);++k){
^
/in/foo.cc:18:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(k=0;k<strlen(a[i])&&k<strlen(a[j]);++k){
~^~~~~~~~~~~~~
/in/foo.cc:18:53: warning: array subscript has type 'char' [-Wchar-subscripts]
for(k=0;k<strlen(a[i])&&k<strlen(a[j]);++k){
^
/in/foo.cc:18:42: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
for(k=0;k<strlen(a[i])&&k<strlen(a[j]);++k){
~^~~~~~~~~~~~~
/in/foo.cc:19:27: warning: array subscript has type 'char' [-Wchar-subscripts]
if(a[i][k]==a[j][k]) ret++;
^
/in/foo.cc:19:30: warning: array subscript has type 'char' [-Wchar-subscripts]
if(a[i][k]==a[j][k]) ret++;
^
/in/foo.cc:19:36: warning: array subscript has type 'char' [-Wchar-subscripts]
if(a[i][k]==a[j][k]) ret++;
^
/in/foo.cc:19:39: warning: array subscript has type 'char' [-Wchar-subscripts]
if(a[i][k]==a[j][k]) ret++;
^
/in/foo.cc:21:30: warning: array subscript has type 'char' [-Wchar-subscripts]
ans[i]=max(ret,ans[i]);
^
/in/foo.cc:21:45: warning: array subscript has type 'char' [-Wchar-subscripts]
ans[i]=max(ret,ans[i]);
^
/in/foo.cc:28:25: warning: array subscript has type 'char' [-Wchar-subscripts]
for(j=0;j<=ans[i];++j) printf("%c",a[i][j]);
^
/in/foo.cc:28:47: warning: array subscript has type 'char' [-Wchar-subscripts]
for(j=0;j<=ans[i];++j) printf("%c",a[i][j]);
^
/in/foo.cc:28:50: warning: array subscript has type 'char' [-Wchar-subscripts]
for(j=0;j<=ans[i];++j) printf("%c",a[i][j]);
^