/ Vijos /

记录详情

Time Exceeded

foo.cc: In member function 'bool data::scan()':
foo.cc:12:11: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[45]' [-Wformat=]
   12 | scanf("%s%s%s%c%d%a\n",num,&name,&sex,&age,&score,&address);
      |          ~^                ~~~~~
      |           |                |
      |           char*            char (*)[45]
foo.cc:12:15: warning: format '%c' expects argument of type 'char*', but argument 5 has type 'int*' [-Wformat=]
   12 | scanf("%s%s%s%c%d%a\n",num,&name,&sex,&age,&score,&address);
      |              ~^                       ~~~~
      |               |                       |
      |               char*                   int*
      |              %d
foo.cc:12:17: warning: format '%d' expects argument of type 'int*', but argument 6 has type 'char (*)[45]' [-Wformat=]
   12 | scanf("%s%s%s%c%d%a\n",num,&name,&sex,&age,&score,&address);
      |                ~^                          ~~~~~~
      |                 |                          |
      |                 int*                       char (*)[45]
foo.cc:12:19: warning: format '%a' expects argument of type 'float*', but argument 7 has type 'char (*)[45]' [-Wformat=]
   12 | scanf("%s%s%s%c%d%a\n",num,&name,&sex,&age,&score,&address);
      |                  ~^                               ~~~~~~~~
      |                   |                               |
      |                   float*                          char (*)[45]
foo.cc:9:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    9 | scanf("%s",num);
      | ~~~~~^~~~~~~~~~
foo.cc:12:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   12 | scanf("%s%s%s%c%d%a\n",num,&name,&sex,&age,&score,&address);
      | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Time Exceeded ≥1121ms ≥311.117 MiB
#2 Time Exceeded ≥1119ms ≥337.242 MiB
#3 Time Exceeded ≥1127ms ≥386.742 MiB
#4 Time Exceeded ≥1126ms ≥377.617 MiB
#5 Time Exceeded ≥1135ms ≥473.367 MiB
#6 Time Exceeded ≥1129ms ≥441.871 MiB
#7 Time Exceeded ≥1133ms ≥475.867 MiB
#8 Time Exceeded ≥1098ms ≥512.016 MiB
#9 Time Exceeded ≥1127ms ≥512.016 MiB
#10 Time Exceeded ≥1129ms ≥512.016 MiB
#11 Time Exceeded ≥1120ms ≥512.016 MiB
#12 Time Exceeded ≥1128ms ≥431.367 MiB
#13 Time Exceeded ≥1119ms ≥512.016 MiB
#14 Time Exceeded ≥1118ms ≥512.016 MiB
#15 Time Exceeded ≥1130ms ≥512.016 MiB
#16 Time Exceeded ≥1075ms ≥512.016 MiB
#17 Time Exceeded ≥1033ms ≥510.742 MiB
#18 Time Exceeded ≥1129ms ≥512.016 MiB
#19 Time Exceeded ≥1171ms ≥512.016 MiB
#20 Time Exceeded ≥1132ms ≥512.016 MiB

信息

递交者
类型
递交
题目
P1567 子串计数
语言
C++
递交时间
2021-12-25 15:56:58
评测时间
2021-12-25 15:56:58
评测机
分数
0
总耗时
≥22409ms
峰值内存
≥512.016 MiB