记录详情

Runtime Error

foo.cc: In function 'int Index(char*, int, char*)':
foo.cc:13:18: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
   13 |         while (i <= strlen(S) && j <= strlen(T))
      |                ~~^~~~~~~~~~~~
foo.cc:13:36: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
   13 |         while (i <= strlen(S) && j <= strlen(T))
      |                                  ~~^~~~~~~~~~~~
foo.cc:26:15: warning: comparison of integer expressions of different signedness: 'int' and 'size_t' {aka 'long unsigned int'} [-Wsign-compare]
   26 |         if (j > strlen(T))
      |             ~~^~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:34:16: warning: 'a' is used uninitialized [-Wuninitialized]
   34 |         cin >> a;
      |                ^
foo.cc:36:16: warning: 'b' is used uninitialized [-Wuninitialized]
   36 |         cin >> b;
      |                ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Runtime Error Segmentation fault 4ms 512.0 KiB
#2 Runtime Error Segmentation fault 2ms 384.0 KiB
#3 Runtime Error Segmentation fault 2ms 384.0 KiB
#4 Runtime Error Segmentation fault 2ms 384.0 KiB
#5 Runtime Error Segmentation fault 4ms 384.0 KiB

信息

递交者
类型
递交
比赛
(中澳班)数据结构之“线性表”
语言
C++
递交时间
2022-10-03 22:46:12
评测时间
2022-10-03 22:46:13
评测机
分数
0
总耗时
16ms
峰值内存
512.0 KiB