/ AOCode /

记录详情

Accepted

foo.cc: In function 'void change_lowercase(std::string&)':
foo.cc:10:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   10 |  for(int i = 0; i < s.size(); i++)
      |                 ~~^~~~~~~~~~
foo.cc: In function 'void cutpair(std::string, std::vector<codepair>&)':
foo.cc:30:25: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   30 |  while(s[i] == ' ' && i < s.size()) cout << ' ', ++i;
      |                       ~~^~~~~~~~~~
foo.cc:31:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   31 |  while(i < s.size()) {
      |        ~~^~~~~~~~~~
foo.cc: In function 'void putdecode(codepair)':
foo.cc:56:31: warning: array subscript has type 'char' [-Wchar-subscripts]
   56 |  pair<int, int> a = mapcode[p.f];
      |                             ~~^
foo.cc:57:31: warning: array subscript has type 'char' [-Wchar-subscripts]
   57 |  pair<int, int> b = mapcode[p.r];
      |                             ~~^
foo.cc: In function 'int main()':
foo.cc:91:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   91 |  for(int i = 0; i < k.size(); i++) {
      |                 ~~^~~~~~~~~~
foo.cc:93:19: warning: array subscript has type 'char' [-Wchar-subscripts]
   93 |   else if(uni[k[i]]) continue;
      |                   ^
foo.cc:96:12: warning: array subscript has type 'char' [-Wchar-subscripts]
   96 |    uni[k[i]] = true, mapcode[k[i]] = make_pair(p, q);
      |            ^
foo.cc:96:34: warning: array subscript has type 'char' [-Wchar-subscripts]
   96 |    uni[k[i]] = true, mapcode[k[i]] = make_pair(p, q);
      |                                  ^
foo.cc:128:19: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<codepair>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
  128 |  for(int i = 0; i < v.size(); i++) {
      |                 ~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 384.0 KiB
#2 Accepted 8ms 1.137 MiB
#3 Accepted 2ms 640.0 KiB
#4 Accepted 4ms 768.0 KiB
#5 Accepted 3ms 768.0 KiB
#6 Accepted 2ms 640.0 KiB
#7 Accepted 5ms 968.0 KiB
#8 Accepted 3ms 812.0 KiB
#9 Accepted 6ms 844.0 KiB
#10 Accepted 5ms 972.0 KiB
#11 Accepted 3ms 768.0 KiB
#12 Accepted 5ms 1.066 MiB
#13 Accepted 5ms 964.0 KiB
#14 Accepted 4ms 972.0 KiB
#15 Accepted 5ms 896.0 KiB
#16 Accepted 3ms 512.0 KiB
#17 Accepted 3ms 768.0 KiB
#18 Accepted 15ms 964.0 KiB
#19 Accepted 7ms 640.0 KiB
#20 Accepted 7ms 1.109 MiB
#21 Accepted 4ms 768.0 KiB
#22 Accepted 7ms 1.145 MiB
#23 Accepted 7ms 960.0 KiB
#24 Accepted 8ms 844.0 KiB
#25 Accepted 9ms 1.52 MiB
#26 Accepted 9ms 1.137 MiB
#27 Accepted 4ms 768.0 KiB
#28 Accepted 7ms 972.0 KiB
#29 Accepted 8ms 964.0 KiB
#30 Accepted 7ms 1.52 MiB
#31 Accepted 9ms 1.109 MiB
#32 Accepted 2ms 640.0 KiB
#33 Accepted 3ms 808.0 KiB
#34 Accepted 5ms 1.043 MiB
#35 Accepted 5ms 964.0 KiB
#36 Accepted 5ms 804.0 KiB
#37 Accepted 4ms 636.0 KiB
#38 Accepted 4ms 972.0 KiB
#39 Accepted 7ms 1.395 MiB
#40 Accepted 8ms 1.52 MiB
#41 Accepted 6ms 1.043 MiB
#42 Accepted 6ms 1.043 MiB
#43 Accepted 6ms 960.0 KiB
#44 Accepted 5ms 1.109 MiB
#45 Accepted 3ms 768.0 KiB
#46 Accepted 7ms 1.395 MiB
#47 Accepted 9ms 1004.0 KiB
#48 Accepted 5ms 768.0 KiB
#49 Accepted 7ms 1.395 MiB
#50 Accepted 13ms 1.395 MiB
#51 Accepted 5ms 1.109 MiB
#52 Accepted 8ms 1.031 MiB
#53 Accepted 11ms 1.395 MiB
#54 Accepted 8ms 768.0 KiB
#55 Accepted 16ms 1.508 MiB
#56 Accepted 11ms 1.062 MiB
#57 Accepted 6ms 960.0 KiB
#58 Accepted 3ms 512.0 KiB
#59 Accepted 6ms 832.0 KiB
#60 Accepted 6ms 972.0 KiB
#61 Accepted 8ms 1.395 MiB
#62 Accepted 3ms 768.0 KiB
#63 Accepted 4ms 512.0 KiB
#64 Accepted 7ms 1.066 MiB
#65 Accepted 6ms 1.109 MiB
#66 Accepted 6ms 1.109 MiB
#67 Accepted 5ms 1.145 MiB
#68 Accepted 3ms 640.0 KiB
#69 Accepted 4ms 1.066 MiB
#70 Accepted 2ms 384.0 KiB
#71 Accepted 5ms 1.109 MiB
#72 Accepted 6ms 1.109 MiB
#73 Accepted 2ms 384.0 KiB
#74 Accepted 3ms 768.0 KiB
#75 Accepted 7ms 1.52 MiB
#76 Accepted 9ms 768.0 KiB
#77 Accepted 12ms 1.395 MiB
#78 Accepted 8ms 1.52 MiB
#79 Accepted 12ms 1.109 MiB
#80 Accepted 11ms 1.109 MiB
#81 Accepted 4ms 768.0 KiB
#82 Accepted 3ms 640.0 KiB
#83 Accepted 7ms 1.109 MiB
#84 Accepted 15ms 1.52 MiB
#85 Accepted 4ms 768.0 KiB
#86 Accepted 3ms 844.0 KiB
#87 Accepted 4ms 640.0 KiB
#88 Accepted 5ms 768.0 KiB
#89 Accepted 5ms 768.0 KiB
#90 Accepted 8ms 1.395 MiB
#91 Accepted 17ms 1.52 MiB
#92 Accepted 3ms 640.0 KiB
#93 Accepted 5ms 960.0 KiB
#94 Accepted 8ms 844.0 KiB
#95 Accepted 19ms 1.52 MiB
#96 Accepted 5ms 512.0 KiB
#97 Accepted 7ms 1.395 MiB
#98 Accepted 4ms 844.0 KiB
#99 Accepted 11ms 1.109 MiB
#100 Accepted 16ms 1.508 MiB

信息

递交者
类型
递交
题目
P1015 Mission 2 - A1 : Crack the Code! (EASY)
比赛
AOCode Round #3 & AOSC #2
语言
C++
递交时间
2022-01-31 17:32:34
评测时间
2022-02-07 13:35:57
评测机
分数
100
总耗时
690ms
峰值内存
1.52 MiB