/ 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:56:32: warning: array subscript has type 'char' [-Wchar-subscripts]
  pair<int, int> a = mapcode[p.f];
                                ^
foo.cc:57:32: warning: array subscript has type 'char' [-Wchar-subscripts]
  pair<int, int> b = mapcode[p.r];
                                ^
foo.cc: In function 'int main()':
foo.cc:91:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i = 0; i < k.size(); i++) {
                 ~~^~~~~~~~~~
foo.cc:93:19: warning: array subscript has type 'char' [-Wchar-subscripts]
   else if(uni[k[i]]) continue;
                   ^
foo.cc:96:12: warning: array subscript has type 'char' [-Wchar-subscripts]
    uni[k[i]] = true, mapcode[k[i]] = make_pair(p, q);
            ^
foo.cc:96:34: warning: array subscript has type 'char' [-Wchar-subscripts]
    uni[k[i]] = true, mapcode[k[i]] = make_pair(p, q);
                                  ^
foo.cc:128: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 456.0 KiB
#2 Accepted 5ms 1.168 MiB
#3 Accepted 2ms 512.0 KiB
#4 Accepted 3ms 812.0 KiB
#5 Accepted 3ms 720.0 KiB
#6 Accepted 2ms 564.0 KiB
#7 Accepted 4ms 1.055 MiB
#8 Accepted 3ms 812.0 KiB
#9 Accepted 3ms 872.0 KiB
#10 Accepted 4ms 1.051 MiB
#11 Accepted 3ms 740.0 KiB
#12 Accepted 5ms 1.074 MiB
#13 Accepted 5ms 1.059 MiB
#14 Accepted 5ms 1.055 MiB
#15 Accepted 4ms 816.0 KiB
#16 Accepted 2ms 596.0 KiB
#17 Accepted 3ms 768.0 KiB
#18 Accepted 4ms 1.051 MiB
#19 Accepted 2ms 564.0 KiB
#20 Accepted 6ms 1.184 MiB
#21 Accepted 3ms 768.0 KiB
#22 Accepted 5ms 1.168 MiB
#23 Accepted 5ms 1.078 MiB
#24 Accepted 4ms 844.0 KiB
#25 Accepted 7ms 1.547 MiB
#26 Accepted 5ms 1.227 MiB
#27 Accepted 3ms 728.0 KiB
#28 Accepted 5ms 972.0 KiB
#29 Accepted 6ms 1.055 MiB
#30 Accepted 7ms 1.555 MiB
#31 Accepted 5ms 1.168 MiB
#32 Accepted 2ms 512.0 KiB
#33 Accepted 3ms 816.0 KiB
#34 Accepted 5ms 1.168 MiB
#35 Accepted 4ms 1.047 MiB
#36 Accepted 3ms 812.0 KiB
#37 Accepted 2ms 640.0 KiB
#38 Accepted 4ms 964.0 KiB
#39 Accepted 6ms 1.531 MiB
#40 Accepted 7ms 1.535 MiB
#41 Accepted 5ms 1.16 MiB
#42 Accepted 5ms 1.109 MiB
#43 Accepted 4ms 1.09 MiB
#44 Accepted 5ms 1.191 MiB
#45 Accepted 3ms 724.0 KiB
#46 Accepted 6ms 1.535 MiB
#47 Accepted 4ms 1.066 MiB
#48 Accepted 3ms 756.0 KiB
#49 Accepted 6ms 1.598 MiB
#50 Accepted 6ms 1.547 MiB
#51 Accepted 5ms 1.164 MiB
#52 Accepted 4ms 1.109 MiB
#53 Accepted 6ms 1.527 MiB
#54 Accepted 3ms 788.0 KiB
#55 Accepted 7ms 1.543 MiB
#56 Accepted 5ms 1.07 MiB
#57 Accepted 4ms 1.047 MiB
#58 Accepted 2ms 640.0 KiB
#59 Accepted 3ms 808.0 KiB
#60 Accepted 4ms 1.051 MiB
#61 Accepted 7ms 1.535 MiB
#62 Accepted 3ms 768.0 KiB
#63 Accepted 3ms 560.0 KiB
#64 Accepted 5ms 1.078 MiB
#65 Accepted 5ms 1.207 MiB
#66 Accepted 6ms 1.16 MiB
#67 Accepted 6ms 1.176 MiB
#68 Accepted 3ms 640.0 KiB
#69 Accepted 5ms 1.004 MiB
#70 Accepted 2ms 384.0 KiB
#71 Accepted 6ms 1.188 MiB
#72 Accepted 5ms 1.168 MiB
#73 Accepted 2ms 384.0 KiB
#74 Accepted 4ms 768.0 KiB
#75 Accepted 9ms 1.488 MiB
#76 Accepted 4ms 800.0 KiB
#77 Accepted 10ms 1.512 MiB
#78 Accepted 9ms 1.543 MiB
#79 Accepted 7ms 1.16 MiB
#80 Accepted 7ms 1.129 MiB
#81 Accepted 4ms 768.0 KiB
#82 Accepted 4ms 600.0 KiB
#83 Accepted 7ms 1.168 MiB
#84 Accepted 9ms 1.52 MiB
#85 Accepted 4ms 776.0 KiB
#86 Accepted 5ms 872.0 KiB
#87 Accepted 4ms 700.0 KiB
#88 Accepted 4ms 752.0 KiB
#89 Accepted 5ms 896.0 KiB
#90 Accepted 9ms 1.484 MiB
#91 Accepted 10ms 1.543 MiB
#92 Accepted 4ms 592.0 KiB
#93 Accepted 7ms 1.055 MiB
#94 Accepted 5ms 908.0 KiB
#95 Accepted 10ms 1.52 MiB
#96 Accepted 3ms 584.0 KiB
#97 Accepted 9ms 1.461 MiB
#98 Accepted 5ms 844.0 KiB
#99 Accepted 8ms 1.18 MiB

信息

递交者
类型
递交
题目
P1015 Mission 2 - A1 : Crack the Code! (EASY)
语言
C++
递交时间
2021-08-15 18:48:36
评测时间
2021-08-15 18:48:36
评测机
分数
99
总耗时
525ms
峰值内存
1.598 MiB