记录详情

Time Exceeded

foo.cc: In function 'bool Comapre(char*, char*, int)':
foo.cc:7:27: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
    7 |         for (int j = 0; j < strlen(t); j++)
      |                         ~~^~~~~~~~~~~
foo.cc: In function 'void Delete(char*, int)':
foo.cc:15:18: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
   15 |         for (; j < strlen(s) - 1; j++)
      |                ~~^~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:35:27: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
   35 |         for (int i = 0; i <= (strlen(s) - strlen(t1) + 1); )
      |                         ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
foo.cc:39:43: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
   39 |                         for (int j = 0; j < strlen(t1); j++)
      |                                         ~~^~~~~~~~~~~~
foo.cc:48:27: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
   48 |         for (int i = 0; i < strlen(s); i++)
      |                         ~~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Time Exceeded ≥1101ms ≥328.0 KiB
#2 Time Exceeded ≥1101ms ≥412.0 KiB
#3 Time Exceeded ≥1101ms ≥412.0 KiB
#4 Time Exceeded ≥1101ms ≥412.0 KiB
#5 Time Exceeded ≥1100ms ≥412.0 KiB

信息

递交者
类型
递交
题目
P1052 OO11-4 string中的查找替换
语言
C++
递交时间
2023-06-20 11:25:49
评测时间
2023-06-20 11:25:49
评测机
分数
0
总耗时
≥5505ms
峰值内存
≥412.0 KiB