Accepted

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:23: warning: array subscript has type 'char' [-Wchar-subscripts]
   11 |                 if(ym[z]==0)ym[z]=sb[i];
      |                       ^
foo.cc:11:32: warning: array subscript has type 'char' [-Wchar-subscripts]
   11 |                 if(ym[z]==0)ym[z]=sb[i];
      |                                ^
foo.cc:12:28: warning: array subscript has type 'char' [-Wchar-subscripts]
   12 |                 else if(ym[z]!=sb[i]){cout<<"Failed";return 0;}
      |                            ^
foo.cc:23:22: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
   23 |         for(int i=0;i<strlen(sy);i++)cout<<ym[sy[i]];
      |                     ~^~~~~~~~~~~
foo.cc:23:51: warning: array subscript has type 'char' [-Wchar-subscripts]
   23 |         for(int i=0;i<strlen(sy);i++)cout<<ym[sy[i]];
      |                                               ~~~~^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 6ms 412.0 KiB
#2 Accepted 6ms 412.0 KiB
#3 Accepted 4ms 284.0 KiB
#4 Accepted 4ms 516.0 KiB
#5 Accepted 4ms 412.0 KiB
#6 Accepted 4ms 412.0 KiB
#7 Accepted 4ms 412.0 KiB
#8 Accepted 3ms 328.0 KiB
#9 Accepted 5ms 412.0 KiB
#10 Accepted 4ms 412.0 KiB

信息

递交者
类型
递交
题目
P1387 1.7.11 潜伏者潜伏者
语言
C++
递交时间
2023-06-25 20:41:28
评测时间
2023-06-25 20:41:28
评测机
分数
100
总耗时
47ms
峰值内存
516.0 KiB