/ Vijos /

记录详情

Wrong Answer

/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]]);
                               ^
# 状态 耗时 内存占用
#1 Wrong Answer 4ms 360.0 KiB
#2 Accepted 3ms 364.0 KiB
#3 Accepted 3ms 360.0 KiB
#4 Accepted 3ms 344.0 KiB
#5 Accepted 4ms 384.0 KiB
#6 Accepted 3ms 356.0 KiB
#7 Accepted 3ms 344.0 KiB
#8 Accepted 3ms 384.0 KiB
#9 Accepted 3ms 352.0 KiB
#10 Accepted 3ms 352.0 KiB

信息

递交者
类型
递交
题目
P1752 潜伏者
语言
C++
递交时间
2018-01-09 19:01:01
评测时间
2018-01-09 19:01:01
评测机
分数
90
总耗时
37ms
峰值内存
384.0 KiB