/ Vijos /

记录详情

Time Exceeded

foo.cc: In function 'int main()':
foo.cc:67:12: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[50]' [-Wformat=]
   67 |  scanf("%d%s%s%s",&n,&_a,&_b,&_c);
      |           ~^         ~~~
      |            |         |
      |            char*     char (*)[50]
foo.cc:67:14: warning: format '%s' expects argument of type 'char*', but argument 4 has type 'char (*)[50]' [-Wformat=]
   67 |  scanf("%d%s%s%s",&n,&_a,&_b,&_c);
      |             ~^           ~~~
      |              |           |
      |              char*       char (*)[50]
foo.cc:67:16: warning: format '%s' expects argument of type 'char*', but argument 5 has type 'char (*)[50]' [-Wformat=]
   67 |  scanf("%d%s%s%s",&n,&_a,&_b,&_c);
      |               ~^             ~~~
      |                |             |
      |                char*         char (*)[50]
foo.cc:67:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   67 |  scanf("%d%s%s%s",&n,&_a,&_b,&_c);
      |  ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 16ms 384.0 KiB
#2 Accepted 4ms 384.0 KiB
#3 Accepted 3ms 384.0 KiB
#4 Accepted 6ms 384.0 KiB
#5 Accepted 91ms 384.0 KiB
#6 Accepted 9ms 512.0 KiB
#7 Time Exceeded ≥1100ms ≥384.0 KiB
#8 Time Exceeded ≥1100ms ≥256.0 KiB
#9 Time Exceeded ≥1100ms ≥384.0 KiB
#10 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1099 虫食算
语言
C++
递交时间
2022-07-31 13:54:04
评测时间
2022-07-31 13:54:04
评测机
分数
70
总耗时
≥3435ms
峰值内存
≥512.0 KiB