/ AOCode /

记录详情

Accepted

/in/foo.cc: In function 'void change_lowercase(std::__cxx11::string&)':
/in/foo.cc:10:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i = 0; i < s.size(); i++)
                 ~~^~~~~~~~~~
/in/foo.cc: In function 'void cutpair(std::__cxx11::string, std::vector<codepair>&)':
/in/foo.cc:30:25: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  while(s[i] == ' ' && i < s.size()) cout << ' ', ++i;
                       ~~^~~~~~~~~~
/in/foo.cc:31:10: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  while(i < s.size()) {
        ~~^~~~~~~~~~
/in/foo.cc: In function 'void putdecode(codepair)':
/in/foo.cc:56:32: warning: array subscript has type 'char' [-Wchar-subscripts]
  pair<int, int> a = mapcode[p.f];
                                ^
/in/foo.cc:57:32: warning: array subscript has type 'char' [-Wchar-subscripts]
  pair<int, int> b = mapcode[p.r];
                                ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:91:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i = 0; i < k.size(); i++) {
                 ~~^~~~~~~~~~
/in/foo.cc:93:19: warning: array subscript has type 'char' [-Wchar-subscripts]
   else if(uni[k[i]]) continue;
                   ^
/in/foo.cc:96:12: warning: array subscript has type 'char' [-Wchar-subscripts]
    uni[k[i]] = true, mapcode[k[i]] = make_pair(p, q);
            ^
/in/foo.cc:96:34: warning: array subscript has type 'char' [-Wchar-subscripts]
    uni[k[i]] = true, mapcode[k[i]] = make_pair(p, q);
                                  ^
/in/foo.cc:128:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i = 0; i < v.size(); i++) {
                 ~~^~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 1ms 420.0 KiB
#2 Accepted 4ms 1.07 MiB
#3 Accepted 2ms 504.0 KiB
#4 Accepted 3ms 836.0 KiB
#5 Accepted 2ms 744.0 KiB
#6 Accepted 2ms 592.0 KiB
#7 Accepted 3ms 976.0 KiB
#8 Accepted 2ms 792.0 KiB
#9 Accepted 3ms 848.0 KiB
#10 Accepted 3ms 948.0 KiB
#11 Accepted 2ms 752.0 KiB
#12 Accepted 3ms 1.039 MiB
#13 Accepted 3ms 1.012 MiB
#14 Accepted 3ms 1000.0 KiB
#15 Accepted 3ms 740.0 KiB
#16 Accepted 1ms 568.0 KiB
#17 Accepted 2ms 772.0 KiB
#18 Accepted 3ms 956.0 KiB
#19 Accepted 2ms 588.0 KiB
#20 Accepted 4ms 1.078 MiB
#21 Accepted 2ms 780.0 KiB
#22 Accepted 4ms 1.039 MiB
#23 Accepted 3ms 960.0 KiB
#24 Accepted 3ms 860.0 KiB
#25 Accepted 6ms 1.453 MiB
#26 Accepted 4ms 1.059 MiB
#27 Accepted 2ms 756.0 KiB
#28 Accepted 3ms 1012.0 KiB
#29 Accepted 4ms 1.016 MiB
#30 Accepted 6ms 1.418 MiB
#31 Accepted 4ms 1.078 MiB
#32 Accepted 2ms 612.0 KiB
#33 Accepted 2ms 784.0 KiB
#34 Accepted 4ms 1.07 MiB
#35 Accepted 3ms 980.0 KiB
#36 Accepted 2ms 788.0 KiB
#37 Accepted 2ms 608.0 KiB
#38 Accepted 3ms 948.0 KiB
#39 Accepted 5ms 1.453 MiB
#40 Accepted 6ms 1.449 MiB
#41 Accepted 4ms 1.07 MiB
#42 Accepted 4ms 1.105 MiB
#43 Accepted 3ms 956.0 KiB
#44 Accepted 4ms 1.059 MiB
#45 Accepted 2ms 720.0 KiB
#46 Accepted 5ms 1.441 MiB
#47 Accepted 4ms 1.008 MiB
#48 Accepted 2ms 744.0 KiB
#49 Accepted 5ms 1.449 MiB
#50 Accepted 6ms 1.477 MiB
#51 Accepted 4ms 1.039 MiB
#52 Accepted 4ms 1.102 MiB
#53 Accepted 5ms 1.43 MiB
#54 Accepted 2ms 764.0 KiB
#55 Accepted 6ms 1.426 MiB
#56 Accepted 4ms 1.012 MiB
#57 Accepted 5ms 1.0 MiB
#58 Accepted 2ms 632.0 KiB
#59 Accepted 3ms 840.0 KiB
#60 Accepted 3ms 988.0 KiB
#61 Accepted 5ms 1.453 MiB
#62 Accepted 2ms 764.0 KiB
#63 Accepted 2ms 652.0 KiB
#64 Accepted 4ms 1.016 MiB
#65 Accepted 4ms 1.07 MiB
#66 Accepted 4ms 1.059 MiB
#67 Accepted 4ms 1.066 MiB
#68 Accepted 2ms 612.0 KiB
#69 Accepted 4ms 984.0 KiB
#70 Accepted 1ms 452.0 KiB
#71 Accepted 4ms 1.043 MiB
#72 Accepted 4ms 1.059 MiB
#73 Accepted 1ms 488.0 KiB
#74 Accepted 2ms 760.0 KiB
#75 Accepted 5ms 1.438 MiB
#76 Accepted 2ms 788.0 KiB
#77 Accepted 5ms 1.484 MiB
#78 Accepted 5ms 1.438 MiB
#79 Accepted 4ms 1.07 MiB
#80 Accepted 4ms 1.07 MiB
#81 Accepted 2ms 768.0 KiB
#82 Accepted 2ms 672.0 KiB
#83 Accepted 4ms 1.055 MiB
#84 Accepted 5ms 1.453 MiB
#85 Accepted 2ms 768.0 KiB
#86 Accepted 3ms 840.0 KiB
#87 Accepted 2ms 676.0 KiB
#88 Accepted 2ms 752.0 KiB
#89 Accepted 3ms 816.0 KiB
#90 Accepted 5ms 1.445 MiB
#91 Accepted 5ms 1.477 MiB
#92 Accepted 2ms 616.0 KiB
#93 Accepted 4ms 1016.0 KiB
#94 Accepted 3ms 848.0 KiB
#95 Accepted 5ms 1.453 MiB
#96 Accepted 2ms 504.0 KiB
#97 Accepted 5ms 1.426 MiB
#98 Accepted 3ms 836.0 KiB
#99 Accepted 5ms 1.07 MiB

信息

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