记录详情

Wrong Answer

foo.cc: In function 'bool compare(char*, int, std::string)':
foo.cc:9:16: 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=si;i<sub.size()+si;i++)
      |               ~^~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:22:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
   22 |  for(int i=0;i<top-sub.size();i++){
      |              ~^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 1ms 384.0 KiB
#2 Accepted 2ms 256.0 KiB
#3 Wrong Answer Read 3, expect 2. 1ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Wrong Answer Read 7, expect 4. 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1093 xf2-6情诗暗示
语言
C++
递交时间
2022-08-02 22:52:20
评测时间
2022-08-02 22:52:20
评测机
分数
60
总耗时
9ms
峰值内存
384.0 KiB