记录详情

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, d-c), 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:30:21.264Z","handle":"2020-08-06T06:30:21.264Z","cache_start":"2020-08-06T06:30:21.271Z","read_cases":"2020-08-06T06:30:21.379Z","judge":"2020-08-06T06:30:21.381Z","done":"2020-08-06T06:30:27.307Z"}
# 状态 耗时 内存占用
#1 Wrong Answer 读取到 0 ,应为 1 2ms 504.0 KiB
#2 Runtime Error Segmentation fault 1ms 256.0 KiB
#3 Wrong Answer 读取到 -1 ,应为 1 1ms 504.0 KiB
#4 Runtime Error Segmentation fault 2ms 256.0 KiB
#5 Wrong Answer 读取到 8 ,应为 0 3ms 504.0 KiB
#6 Wrong Answer 读取到 3 ,应为 1 3ms 504.0 KiB
#7 Wrong Answer 读取到 3923 ,应为 3924 742ms 528.0 KiB
#8 Runtime Error Segmentation fault 801ms 384.0 KiB
#9 Time Exceeded ≥1107ms ≥384.0 KiB
#10 Runtime Error Segmentation fault 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1017 最长公共前缀
语言
C++
递交时间
2020-08-06 14:30:21
评测时间
2020-08-06 14:30:21
评测机
分数
0
总耗时
2667ms
峰值内存
528.0 KiB