/ Vijos /

记录详情

Time Exceeded

foo.cc: In member function 'bool data::scan()':
foo.cc:12:59: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[45]' [-Wformat=]
 scanf("%s%s%s%c%d%a\n",num,&name,&sex,&age,&score,&address);
                            ~~~~~                          ^
foo.cc:12:59: warning: format '%c' expects argument of type 'char*', but argument 5 has type 'int*' [-Wformat=]
foo.cc:12:59: warning: format '%d' expects argument of type 'int*', but argument 6 has type 'char (*)[45]' [-Wformat=]
foo.cc:12:59: warning: format '%a' expects argument of type 'float*', but argument 7 has type 'char (*)[45]' [-Wformat=]
foo.cc:9:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf("%s",num);
 ~~~~~^~~~~~~~~~
foo.cc:12:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
 scanf("%s%s%s%c%d%a\n",num,&name,&sex,&age,&score,&address);
 ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Time Exceeded ≥856ms ≥105.609 MiB
#2 Time Exceeded ≥857ms ≥101.922 MiB
#3 Time Exceeded ≥971ms ≥108.891 MiB
#4 Time Exceeded ≥974ms ≥109.328 MiB
#5 Time Exceeded ≥1019ms ≥122.762 MiB
#6 Time Exceeded ≥1026ms ≥116.535 MiB
#7 Time Exceeded ≥1022ms ≥127.27 MiB
#8 Time Exceeded ≥1105ms ≥122.336 MiB
#9 Time Exceeded ≥1153ms ≥134.742 MiB
#10 Time Exceeded ≥1080ms ≥124.305 MiB
#11 Time Exceeded ≥1149ms ≥138.594 MiB
#12 Time Exceeded ≥1253ms ≥135.855 MiB
#13 Time Exceeded ≥1170ms ≥149.359 MiB
#14 Time Exceeded ≥1147ms ≥131.609 MiB
#15 Time Exceeded ≥1274ms ≥149.684 MiB
#16 Time Exceeded ≥1114ms ≥137.957 MiB
#17 Time Exceeded ≥1190ms ≥153.164 MiB
#18 Time Exceeded ≥1129ms ≥145.293 MiB
#19 Time Exceeded ≥1188ms ≥151.402 MiB
#20 Time Exceeded ≥1188ms ≥150.477 MiB

信息

递交者
类型
递交
题目
P1567 子串计数
语言
C++
递交时间
2021-08-28 14:07:29
评测时间
2021-08-28 14:07:29
评测机
分数
0
总耗时
≥21874ms
峰值内存
≥153.164 MiB