记录详情

Memory Exceeded

foo.cc: In function 'long long int hash_str(std::string)':
foo.cc:13:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   13 |         for (int i = 0; i < s.size(); i++)
      |                         ~~^~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:27:27: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   27 |         for (int i = 0; i <= str.size(); i++)
      |                         ~~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Memory Exceeded ≥52ms ≥16.016 MiB
#2 Memory Exceeded ≥38ms ≥16.016 MiB
#3 Memory Exceeded ≥39ms ≥16.016 MiB
#4 Memory Exceeded ≥39ms ≥16.016 MiB
#5 Memory Exceeded ≥38ms ≥16.016 MiB

信息

递交者
类型
递交
题目
P1057 OO11-9 set与单词统计
比赛
2023春面向对象的程序设计方法(3)
语言
C++
递交时间
2023-05-31 18:59:31
评测时间
2023-05-31 18:59:31
评测机
分数
0
总耗时
≥208ms
峰值内存
≥16.016 MiB