foo.cc: In function 'int main()':
foo.cc:8:22: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
8 | for(int i=0;i<strlen(sa);i++)
| ~^~~~~~~~~~~
foo.cc:11:19: warning: array subscript has type 'char' [-Wchar-subscripts]
11 | if(ym[z]!=0&&ym[z]!=sb[i]){cout<<"Failed";return 0;}
| ^
foo.cc:11:29: warning: array subscript has type 'char' [-Wchar-subscripts]
11 | if(ym[z]!=0&&ym[z]!=sb[i]){cout<<"Failed";return 0;}
| ^
foo.cc:12:19: warning: array subscript has type 'char' [-Wchar-subscripts]
12 | if(ym[z]==0)ym[z]=sb[i];//ym[]下标是数字,为最后输出作准备 }
| ^
foo.cc:12:28: warning: array subscript has type 'char' [-Wchar-subscripts]
12 | if(ym[z]==0)ym[z]=sb[i];//ym[]下标是数字,为最后输出作准备 }
| ^
foo.cc:21:23: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
21 | for(int i=0;i<strlen(sy);i++)cout<<ym[sy[i]];
| ~^~~~~~~~~~~
foo.cc:21:52: warning: array subscript has type 'char' [-Wchar-subscripts]
21 | for(int i=0;i<strlen(sy);i++)cout<<ym[sy[i]];
| ~~~~^
[Hydro](https://hydro.ac)提供评测服务