/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:11:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<ss1.size();i++) {
              ~^~~~~~~~~~~
foo.cc:16:15: warning: array subscript has type 'char' [-Wchar-subscripts]
   if(ch[ss1[i]]==-1) ch[ss1[i]]=ss2[i];
               ^
foo.cc:16:31: warning: array subscript has type 'char' [-Wchar-subscripts]
   if(ch[ss1[i]]==-1) ch[ss1[i]]=ss2[i];
                               ^
foo.cc:17:20: warning: array subscript has type 'char' [-Wchar-subscripts]
   else if(ch[ss1[i]]!=ss2[i]) {
                    ^
foo.cc:28:15: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i=0;i<str.length();i++) {
              ~^~~~~~~~~~~~~
foo.cc:29:18: warning: array subscript has type 'char' [-Wchar-subscripts]
   cout<<ch[str[i]];
                  ^
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 340.0 KiB
#3 Wrong Answer Read {0}, expect {1}. ["HIJACK","Failed"] 1ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB
#6 Accepted 1ms 384.0 KiB
#7 Accepted 1ms 384.0 KiB
#8 Accepted 1ms 384.0 KiB
#9 Accepted 2ms 384.0 KiB
#10 Accepted 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1752 潜伏者
语言
C++
递交时间
2021-02-03 22:36:01
评测时间
2021-02-03 22:36:01
评测机
分数
90
总耗时
20ms
峰值内存
384.0 KiB