Runtime Error

foo.cc: In function 'bool cmp(std::string, std::string)':
foo.cc:9:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
    9 |         for(int i=0;i<a.size();i++)
      |                     ~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 9392912, expect 9392912. 5ms 668.0 KiB
#2 Runtime Error Segmentation fault 5ms 816.0 KiB
#3 Accepted 4ms 668.0 KiB
#4 Accepted 5ms 668.0 KiB
#5 Accepted 6ms 668.0 KiB
#6 Accepted 9ms 668.0 KiB
#7 Runtime Error Segmentation fault 5ms 756.0 KiB
#8 Runtime Error Segmentation fault 6ms 796.0 KiB
#9 Runtime Error Segmentation fault 6ms 668.0 KiB
#10 Runtime Error Segmentation fault 6ms 668.0 KiB

信息

递交者
类型
递交
题目
P1988 牛牛闯关
语言
C++
递交时间
2024-01-06 10:23:49
评测时间
2024-01-06 10:23:49
评测机
分数
40
总耗时
62ms
峰值内存
816.0 KiB