Wrong Answer

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=1;i<strlen(s);i++)
      |                     ~^~~~~~~~~~
foo.cc:9:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
    9 |                 a[s[i]]++;
      |                   ~~~^
foo.cc:12:22: warning: array subscript has type ‘char’ [-Wchar-subscripts]
   12 |                 if(a[i]!=0)
      |                      ^
# 状态 耗时 内存占用
#1 Wrong Answer Read abdejx, expect abdejxz. 2ms 536.0 KiB
#2 Wrong Answer Read abcjoqu, expect abcjoquz. 2ms 320.0 KiB
#3 Wrong Answer Read bcdef, expect abcdef. 2ms 768.0 KiB

信息

递交者
类型
递交
比赛
2024.7.19暑期中级1班练习
语言
C++
递交时间
2024-07-20 09:40:37
评测时间
2024-07-20 09:40:37
评测机
分数
0
总耗时
8ms
峰值内存
768.0 KiB