记录详情

Runtime Error

foo.cc: In function 'int main()':
foo.cc:27:23: warning: left operand of comma operator has no effect [-Wunused-value]
         for (len=0;len<=minn(b-a-1, d-c-1), str[a+len-1]==str[c+len-1];len++);
                       ^
foo.cc:23:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%s", str);
     ~~~~~^~~~~~~~~~~
foo.cc:30:11: warning: ignoring return value of 'int system(const char*)', declared with attribute warn_unused_result [-Wunused-result]
     system("pause");
     ~~~~~~^~~~~~~~~

自豪的采用 HydroJudge 进行评测(github.com/hydro-dev/HydroJudge)
{"receive":"2020-08-06T06:28:09.556Z","handle":"2020-08-06T06:28:09.571Z","cache_start":"2020-08-06T06:28:09.728Z","read_cases":"2020-08-06T06:28:10.131Z","judge":"2020-08-06T06:28:10.153Z","done":"2020-08-06T06:28:19.073Z"}
# 状态 耗时 内存占用
#1 Accepted 2ms 696.0 KiB
#2 Runtime Error Segmentation fault 2ms 992.0 KiB
#3 Accepted 2ms 432.0 KiB
#4 Runtime Error Segmentation fault 2ms 328.0 KiB
#5 Wrong Answer 读取到 16 ,应为 11 3ms 444.0 KiB
#6 Wrong Answer 读取到 11 ,应为 2 3ms 448.0 KiB
#7 Wrong Answer 读取到 8035 ,应为 2860 585ms 2.957 MiB
#8 Runtime Error Segmentation fault 653ms 2.383 MiB
#9 Wrong Answer 读取到 25359 ,应为 3281 947ms 2.953 MiB
#10 Runtime Error Segmentation fault 1ms 568.0 KiB

信息

递交者
类型
递交
题目
P1017 最长公共前缀
语言
C++
递交时间
2020-08-06 14:28:09
评测时间
2020-08-06 14:28:09
评测机
分数
20
总耗时
2205ms
峰值内存
2.957 MiB