/ 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 ≥1214ms ≥168.312 MiB
#2 Time Exceeded ≥1215ms ≥168.727 MiB
#3 Time Exceeded ≥1461ms ≥162.129 MiB
#4 Time Exceeded ≥1463ms ≥162.848 MiB
#5 Time Exceeded ≥1457ms ≥162.172 MiB
#6 Time Exceeded ≥1459ms ≥162.656 MiB
#7 Time Exceeded ≥1445ms ≥161.055 MiB
#8 Time Exceeded ≥1453ms ≥161.57 MiB
#9 Time Exceeded ≥1419ms ≥184.504 MiB
#10 Time Exceeded ≥1419ms ≥184.965 MiB
#11 Time Exceeded ≥1413ms ≥200.578 MiB
#12 Time Exceeded ≥1410ms ≥200.828 MiB
#13 Time Exceeded ≥1453ms ≥202.664 MiB
#14 Time Exceeded ≥1453ms ≥203.359 MiB
#15 Time Exceeded ≥1442ms ≥205.242 MiB
#16 Time Exceeded ≥1441ms ≥205.191 MiB
#17 Time Exceeded ≥1449ms ≥205.258 MiB
#18 Time Exceeded ≥1452ms ≥205.621 MiB
#19 Time Exceeded ≥1455ms ≥206.141 MiB
#20 Time Exceeded ≥1476ms ≥208.316 MiB

信息

递交者
类型
递交
题目
P1567 子串计数
语言
C++
递交时间
2021-07-21 21:11:20
评测时间
2021-07-21 21:11:20
评测机
分数
0
总耗时
≥28459ms
峰值内存
≥208.316 MiB