/ Vijos /

记录详情

Memory 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]
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Time Exceeded ≥1017ms ≥512.016 MiB
#2 Time Exceeded ≥1041ms ≥512.016 MiB
#3 Memory Exceeded ≥888ms ≥512.016 MiB
#4 Memory Exceeded ≥902ms ≥512.016 MiB
#5 Memory Exceeded ≥892ms ≥512.016 MiB
#6 Memory Exceeded ≥903ms ≥512.016 MiB
#7 Memory Exceeded ≥867ms ≥512.016 MiB
#8 Memory Exceeded ≥683ms ≥512.016 MiB
#9 Memory Exceeded ≥898ms ≥512.016 MiB
#10 Memory Exceeded ≥914ms ≥512.016 MiB
#11 Memory Exceeded ≥925ms ≥512.016 MiB
#12 Memory Exceeded ≥886ms ≥512.016 MiB
#13 Memory Exceeded ≥904ms ≥512.016 MiB
#14 Memory Exceeded ≥986ms ≥512.016 MiB
#15 Memory Exceeded ≥931ms ≥512.016 MiB
#16 Memory Exceeded ≥895ms ≥512.016 MiB
#17 Memory Exceeded ≥996ms ≥512.016 MiB
#18 Time Exceeded ≥1012ms ≥512.016 MiB
#19 Memory Exceeded ≥920ms ≥512.016 MiB
#20 Memory Exceeded ≥916ms ≥512.016 MiB

信息

递交者
类型
递交
题目
P1567 子串计数
语言
C++
递交时间
2023-08-11 12:32:27
评测时间
2023-08-11 12:32:27
评测机
分数
0
总耗时
≥18386ms
峰值内存
≥512.016 MiB