/in/foo.cc: In function 'int main()':
/in/foo.cc:31:19: warning: array subscript has type 'char' [-Wchar-subscripts]
if(g[s1[i]]&&g[s1[i]]!=s2[i]){
^
/in/foo.cc:31:29: warning: array subscript has type 'char' [-Wchar-subscripts]
if(g[s1[i]]&&g[s1[i]]!=s2[i]){
^
/in/foo.cc:34:19: warning: array subscript has type 'char' [-Wchar-subscripts]
if(f[s2[i]]&&f[s2[i]]!=s1[i]){
^
/in/foo.cc:34:29: warning: array subscript has type 'char' [-Wchar-subscripts]
if(f[s2[i]]&&f[s2[i]]!=s1[i]){
^
/in/foo.cc:37:19: warning: array subscript has type 'char' [-Wchar-subscripts]
if(f[s2[i]]==0)f[s2[i]]=s1[i],c1++;
^
/in/foo.cc:37:31: warning: array subscript has type 'char' [-Wchar-subscripts]
if(f[s2[i]]==0)f[s2[i]]=s1[i],c1++;
^
/in/foo.cc:38:19: warning: array subscript has type 'char' [-Wchar-subscripts]
if(g[s1[i]]==0)g[s1[i]]=s2[i],c2++;
^
/in/foo.cc:38:31: warning: array subscript has type 'char' [-Wchar-subscripts]
if(g[s1[i]]==0)g[s1[i]]=s2[i],c2++;
^
/in/foo.cc:48:18: warning: array subscript has type 'char' [-Wchar-subscripts]
if(f[s[i]]==0){
^
/in/foo.cc:55:17: warning: comparison with string literal results in unspecified behavior [-Waddress]
else if(s1=="A"&&s2=="A"&&s=="A")cout<<"Failed";
^~~
/in/foo.cc:55:26: warning: comparison with string literal results in unspecified behavior [-Waddress]
else if(s1=="A"&&s2=="A"&&s=="A")cout<<"Failed";
^~~
/in/foo.cc:55:34: warning: comparison with string literal results in unspecified behavior [-Waddress]
else if(s1=="A"&&s2=="A"&&s=="A")cout<<"Failed";
^~~
/in/foo.cc:57:31: warning: array subscript has type 'char' [-Wchar-subscripts]
printf("%c",f[s[i]]);
^