/ 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:57:32: warning: array subscript has type 'char' [-Wchar-subscripts]
  pair<int, int> a = mapcode[p.f];
                                ^
/in/foo.cc:58: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:93:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i = 0; i < k.size(); i++) {
                 ~~^~~~~~~~~~
/in/foo.cc:95:19: warning: array subscript has type 'char' [-Wchar-subscripts]
   else if(uni[k[i]]) continue;
                   ^
/in/foo.cc:98:12: warning: array subscript has type 'char' [-Wchar-subscripts]
    uni[k[i]] = true, mapcode[k[i]] = make_pair(p, q);
            ^
/in/foo.cc:98:34: warning: array subscript has type 'char' [-Wchar-subscripts]
    uni[k[i]] = true, mapcode[k[i]] = make_pair(p, q);
                                  ^
/in/foo.cc:130:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
  for(int i = 0; i < v.size(); i++) {
                 ~~^~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 420.0 KiB
#2 Accepted 129ms 1.043 MiB
#3 Accepted 16ms 488.0 KiB
#4 Accepted 64ms 784.0 KiB
#5 Accepted 39ms 680.0 KiB
#6 Accepted 28ms 584.0 KiB
#7 Accepted 65ms 948.0 KiB
#8 Accepted 45ms 780.0 KiB
#9 Accepted 53ms 796.0 KiB
#10 Accepted 60ms 964.0 KiB
#11 Accepted 29ms 748.0 KiB
#12 Accepted 71ms 936.0 KiB
#13 Accepted 72ms 1.043 MiB
#14 Accepted 62ms 952.0 KiB
#15 Accepted 41ms 800.0 KiB
#16 Accepted 12ms 484.0 KiB
#17 Accepted 33ms 708.0 KiB
#18 Accepted 67ms 1.016 MiB
#19 Accepted 18ms 616.0 KiB
#20 Accepted 104ms 1.078 MiB
#21 Accepted 40ms 740.0 KiB
#22 Accepted 96ms 1.039 MiB
#23 Accepted 75ms 1.012 MiB
#24 Accepted 53ms 792.0 KiB
#25 Accepted 127ms 1.453 MiB
#26 Accepted 102ms 1.039 MiB
#27 Accepted 35ms 748.0 KiB
#28 Accepted 65ms 992.0 KiB
#29 Accepted 81ms 1.039 MiB
#30 Accepted 139ms 1.469 MiB
#31 Accepted 103ms 1.031 MiB
#32 Accepted 14ms 532.0 KiB
#33 Accepted 41ms 740.0 KiB
#34 Accepted 92ms 1.086 MiB
#35 Accepted 69ms 1.039 MiB
#36 Accepted 40ms 744.0 KiB
#37 Accepted 19ms 616.0 KiB
#38 Accepted 65ms 1.02 MiB
#39 Accepted 136ms 1.457 MiB
#40 Accepted 155ms 1.449 MiB
#41 Accepted 112ms 1.07 MiB
#42 Accepted 110ms 1.062 MiB
#43 Accepted 109ms 1.012 MiB
#44 Accepted 107ms 1.043 MiB
#45 Accepted 39ms 720.0 KiB
#46 Accepted 120ms 1.434 MiB
#47 Accepted 84ms 1.035 MiB
#48 Accepted 32ms 708.0 KiB
#49 Accepted 125ms 1.457 MiB
#50 Accepted 116ms 1.48 MiB
#51 Accepted 103ms 1012.0 KiB
#52 Accepted 96ms 1.059 MiB
#53 Accepted 108ms 1.434 MiB
#54 Accepted 38ms 716.0 KiB
#55 Accepted 145ms 1.453 MiB
#56 Accepted 81ms 1.016 MiB
#57 Accepted 68ms 972.0 KiB
#58 Accepted 19ms 536.0 KiB
#59 Accepted 58ms 816.0 KiB
#60 Accepted 55ms 1.031 MiB
#61 Accepted 122ms 1.457 MiB
#62 Accepted 38ms 772.0 KiB
#63 Accepted 21ms 584.0 KiB
#64 Accepted 70ms 1.043 MiB
#65 Accepted 96ms 1.062 MiB
#66 Accepted 101ms 1.039 MiB
#67 Accepted 102ms 1.039 MiB
#68 Accepted 24ms 616.0 KiB
#69 Accepted 77ms 1.039 MiB
#70 Accepted 6ms 488.0 KiB
#71 Accepted 108ms 1.039 MiB
#72 Accepted 98ms 1.035 MiB
#73 Accepted 5ms 480.0 KiB
#74 Accepted 31ms 748.0 KiB
#75 Accepted 108ms 1.438 MiB
#76 Accepted 37ms 744.0 KiB
#77 Accepted 131ms 1.477 MiB
#78 Accepted 116ms 1.434 MiB
#79 Accepted 89ms 1.086 MiB
#80 Accepted 90ms 1.09 MiB
#81 Accepted 35ms 744.0 KiB
#82 Accepted 24ms 616.0 KiB
#83 Accepted 97ms 1.035 MiB
#84 Accepted 119ms 1.453 MiB
#85 Accepted 38ms 748.0 KiB
#86 Accepted 57ms 848.0 KiB
#87 Accepted 25ms 632.0 KiB
#88 Accepted 39ms 744.0 KiB
#89 Accepted 60ms 788.0 KiB
#90 Accepted 158ms 1.453 MiB
#91 Accepted 169ms 1.48 MiB
#92 Accepted 35ms 608.0 KiB
#93 Accepted 97ms 1.039 MiB
#94 Accepted 68ms 820.0 KiB
#95 Accepted 139ms 1.43 MiB
#96 Accepted 18ms 488.0 KiB
#97 Accepted 128ms 1.445 MiB
#98 Accepted 66ms 816.0 KiB
#99 Accepted 86ms 1.066 MiB
#100 Accepted 79ms 1.488 MiB

信息

递交者
类型
递交
题目
P1015 Mission 2 - A1 : Crack the Code! (EASY)
语言
C++
递交时间
2021-07-27 21:26:43
评测时间
2022-01-28 20:59:45
评测机
分数
100
总耗时
7341ms
峰值内存
1.488 MiB