/ AOCode /

记录详情

Accepted

foo.cc: In function 'void change_lowercase(std::__cxx11::string&)':
foo.cc:10:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i = 0; i < s.size(); i++)
                 ~~^~~~~~~~~~
foo.cc: In function 'void cutpair(std::__cxx11::string, std::vector<codepair>&)':
foo.cc:30:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  while(s[i] == ' ' && i < s.size()) cout << ' ', ++i;
                       ~~^~~~~~~~~~
foo.cc:31:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  while(i < s.size()) {
        ~~^~~~~~~~~~
foo.cc: In function 'void putdecode(codepair)':
foo.cc:57:32: warning: array subscript has type 'char' [-Wchar-subscripts]
  pair<int, int> a = mapcode[p.f];
                                ^
foo.cc:58:32: warning: array subscript has type 'char' [-Wchar-subscripts]
  pair<int, int> b = mapcode[p.r];
                                ^
foo.cc: In function 'int main()':
foo.cc:93:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i = 0; i < k.size(); i++) {
                 ~~^~~~~~~~~~
foo.cc:95:19: warning: array subscript has type 'char' [-Wchar-subscripts]
   else if(uni[k[i]]) continue;
                   ^
foo.cc:98:12: warning: array subscript has type 'char' [-Wchar-subscripts]
    uni[k[i]] = true, mapcode[k[i]] = make_pair(p, q);
            ^
foo.cc:98:34: warning: array subscript has type 'char' [-Wchar-subscripts]
    uni[k[i]] = true, mapcode[k[i]] = make_pair(p, q);
                                  ^
foo.cc:130:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i = 0; i < v.size(); i++) {
                 ~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 424.0 KiB
#2 Accepted 29ms 1.168 MiB
#3 Accepted 5ms 520.0 KiB
#4 Accepted 14ms 896.0 KiB
#5 Accepted 9ms 740.0 KiB
#6 Accepted 7ms 652.0 KiB
#7 Accepted 20ms 1.039 MiB
#8 Accepted 15ms 856.0 KiB
#9 Accepted 15ms 872.0 KiB
#10 Accepted 18ms 1.035 MiB
#11 Accepted 9ms 732.0 KiB
#12 Accepted 21ms 1.051 MiB
#13 Accepted 22ms 1.094 MiB
#14 Accepted 18ms 1.086 MiB
#15 Accepted 14ms 836.0 KiB
#16 Accepted 5ms 584.0 KiB
#17 Accepted 10ms 760.0 KiB
#18 Accepted 19ms 1.066 MiB
#19 Accepted 7ms 648.0 KiB
#20 Accepted 34ms 1.172 MiB
#21 Accepted 14ms 804.0 KiB
#22 Accepted 27ms 1.191 MiB
#23 Accepted 24ms 1.027 MiB
#24 Accepted 16ms 908.0 KiB
#25 Accepted 35ms 1.531 MiB
#26 Accepted 30ms 1.188 MiB
#27 Accepted 10ms 780.0 KiB
#28 Accepted 18ms 1.0 MiB
#29 Accepted 23ms 1.027 MiB
#30 Accepted 39ms 1.555 MiB
#31 Accepted 32ms 1.184 MiB
#32 Accepted 5ms 636.0 KiB
#33 Accepted 14ms 808.0 KiB
#34 Accepted 26ms 1.188 MiB
#35 Accepted 20ms 1.031 MiB
#36 Accepted 12ms 824.0 KiB
#37 Accepted 7ms 596.0 KiB
#38 Accepted 18ms 1.047 MiB
#39 Accepted 35ms 1.551 MiB
#40 Accepted 36ms 1.566 MiB
#41 Accepted 28ms 1.113 MiB
#42 Accepted 26ms 1.191 MiB
#43 Accepted 22ms 1.012 MiB
#44 Accepted 28ms 1.195 MiB
#45 Accepted 10ms 744.0 KiB
#46 Accepted 32ms 1.512 MiB
#47 Accepted 26ms 1.031 MiB
#48 Accepted 9ms 748.0 KiB
#49 Accepted 36ms 1.574 MiB
#50 Accepted 41ms 1.578 MiB
#51 Accepted 26ms 1.16 MiB
#52 Accepted 25ms 1.176 MiB
#53 Accepted 32ms 1.465 MiB
#54 Accepted 13ms 804.0 KiB
#55 Accepted 42ms 1.535 MiB
#56 Accepted 25ms 1.012 MiB
#57 Accepted 23ms 1.008 MiB
#58 Accepted 6ms 636.0 KiB
#59 Accepted 15ms 856.0 KiB
#60 Accepted 16ms 1.035 MiB
#61 Accepted 34ms 1.52 MiB
#62 Accepted 13ms 792.0 KiB
#63 Accepted 6ms 580.0 KiB
#64 Accepted 25ms 1.055 MiB
#65 Accepted 31ms 1.191 MiB
#66 Accepted 29ms 1.211 MiB
#67 Accepted 30ms 1.203 MiB
#68 Accepted 8ms 700.0 KiB
#69 Accepted 22ms 1.062 MiB
#70 Accepted 3ms 448.0 KiB
#71 Accepted 27ms 1.137 MiB
#72 Accepted 30ms 1.18 MiB
#73 Accepted 3ms 460.0 KiB
#74 Accepted 11ms 732.0 KiB
#75 Accepted 32ms 1.48 MiB
#76 Accepted 13ms 804.0 KiB
#77 Accepted 39ms 1.559 MiB
#78 Accepted 36ms 1.473 MiB
#79 Accepted 27ms 1.156 MiB
#80 Accepted 28ms 1.137 MiB
#81 Accepted 10ms 792.0 KiB
#82 Accepted 8ms 628.0 KiB
#83 Accepted 30ms 1.16 MiB
#84 Accepted 35ms 1.535 MiB
#85 Accepted 11ms 804.0 KiB
#86 Accepted 16ms 828.0 KiB
#87 Accepted 8ms 692.0 KiB
#88 Accepted 10ms 768.0 KiB
#89 Accepted 15ms 892.0 KiB
#90 Accepted 36ms 1.57 MiB
#91 Accepted 40ms 1.555 MiB
#92 Accepted 8ms 716.0 KiB
#93 Accepted 23ms 1.062 MiB
#94 Accepted 16ms 916.0 KiB
#95 Accepted 35ms 1.547 MiB
#96 Accepted 5ms 592.0 KiB
#97 Accepted 38ms 1.605 MiB
#98 Accepted 15ms 892.0 KiB
#99 Accepted 31ms 1.164 MiB
#100 Accepted 41ms 1.621 MiB

信息

递交者
类型
递交
题目
P1015 Mission 2 - A1 : Crack the Code! (EASY)
语言
C++
递交时间
2021-07-28 16:56:41
评测时间
2021-10-02 15:00:51
评测机
分数
100
总耗时
2147ms
峰值内存
1.621 MiB