/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'bool cmp(std::__cxx11::string, std::__cxx11::string)':
foo.cc:10:19: warning: array subscript has type 'char' [-Wchar-subscripts]
   if(k && pos[a[i]] > pos[b[i]]) return false;
                   ^
foo.cc:10:31: warning: array subscript has type 'char' [-Wchar-subscripts]
   if(k && pos[a[i]] > pos[b[i]]) return false;
                               ^
foo.cc:11:20: warning: array subscript has type 'char' [-Wchar-subscripts]
   if(!k && pos[a[i]] < pos[b[i]]) return false;
                    ^
foo.cc:11:32: warning: array subscript has type 'char' [-Wchar-subscripts]
   if(!k && pos[a[i]] < pos[b[i]]) return false;
                                ^
foo.cc: In function 'int main()':
foo.cc:18:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i = 0; i < str1.size(); i++) pos[str1[i]] = i;
                 ~~^~~~~~~~~~~~~
foo.cc:18:50: warning: array subscript has type 'char' [-Wchar-subscripts]
  for(int i = 0; i < str1.size(); i++) pos[str1[i]] = i;
                                                  ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read yagrlthtjxucwqpw..., expect iuyvpxmyacqdhfge.... 2ms 448.0 KiB
#2 Wrong Answer Read wdvlo, expect uoffdckpd. 3ms 488.0 KiB
#3 Wrong Answer Read scakkmidwbzbinwy..., expect qqcaibnipzimdwiv.... 6ms 776.0 KiB
#4 Wrong Answer Read onvlokpxibiydttg..., expect p. 6ms 728.0 KiB
#5 Wrong Answer Read debamhfquehttkzf..., expect ggxkylljlwjylkml.... 5ms 692.0 KiB
#6 Wrong Answer Read hdhpvpfwgjhssqxj..., expect mzzxdkkkhmixbgyc.... 3ms 508.0 KiB
#7 Wrong Answer Read wuccmwojy, expect mmikyykiwhomtsps.... 3ms 516.0 KiB
#8 Wrong Answer Read qhrcwbcdqvsjgrcv..., expect jrkpcmtuluwacrpd. 2ms 420.0 KiB
#9 Wrong Answer Read eulawenwpyvccqeh..., expect bcpubbwlkrjltylq.... 3ms 544.0 KiB
#10 Wrong Answer Read vwqzrqqhokuwwprd..., expect mjalcdnhtehobxiq.... 6ms 724.0 KiB

信息

递交者
类型
递交
题目
P1500 笨笨的单词排序
语言
C++
递交时间
2021-07-17 13:57:10
评测时间
2021-07-17 13:57:10
评测机
分数
0
总耗时
45ms
峰值内存
776.0 KiB