/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:30:10: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'LL*' {aka 'long long int*'} [-Wformat=]
   30 |  scanf("%d %d %lld",&n,&m,&s);
      |         ~^          ~~
      |          |          |
      |          int*       LL* {aka long long int*}
      |         %lld
foo.cc:30:13: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'LL*' {aka 'long long int*'} [-Wformat=]
   30 |  scanf("%d %d %lld",&n,&m,&s);
      |            ~^          ~~
      |             |          |
      |             int*       LL* {aka long long int*}
      |            %lld
foo.cc:33:12: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'LL*' {aka 'long long int*'} [-Wformat=]
   33 |   scanf(" %d %d",&w[i],&v[i]);
      |           ~^     ~~~~~
      |            |     |
      |            int*  LL* {aka long long int*}
      |           %lld
foo.cc:33:15: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'LL*' {aka 'long long int*'} [-Wformat=]
   33 |   scanf(" %d %d",&w[i],&v[i]);
      |              ~^        ~~~~~
      |               |        |
      |               int*     LL* {aka long long int*}
      |              %lld
foo.cc:38:12: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'LL*' {aka 'long long int*'} [-Wformat=]
   38 |   scanf(" %d %d",&l[i],&r[i]);
      |           ~^     ~~~~~
      |            |     |
      |            int*  LL* {aka long long int*}
      |           %lld
foo.cc:38:15: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'LL*' {aka 'long long int*'} [-Wformat=]
   38 |   scanf(" %d %d",&l[i],&r[i]);
      |              ~^        ~~~~~
      |               |        |
      |               int*     LL* {aka long long int*}
      |              %lld
foo.cc:30:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   30 |  scanf("%d %d %lld",&n,&m,&s);
      |  ~~~~~^~~~~~~~~~~~~~~~~~~~~~~
foo.cc:33:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   33 |   scanf(" %d %d",&w[i],&v[i]);
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~~~
foo.cc:38:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   38 |   scanf(" %d %d",&l[i],&r[i]);
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 6ms 3.375 MiB
#2 Accepted 6ms 3.375 MiB
#3 Accepted 7ms 3.375 MiB
#4 Accepted 6ms 3.5 MiB
#5 Accepted 14ms 3.375 MiB
#6 Accepted 8ms 3.375 MiB
#7 Accepted 12ms 3.5 MiB
#8 Accepted 15ms 3.5 MiB
#9 Accepted 20ms 3.5 MiB
#10 Accepted 17ms 3.75 MiB
#11 Accepted 20ms 3.75 MiB
#12 Accepted 27ms 3.711 MiB
#13 Accepted 22ms 3.875 MiB
#14 Accepted 19ms 3.75 MiB
#15 Accepted 47ms 5.117 MiB
#16 Accepted 54ms 5.742 MiB
#17 Accepted 65ms 6.492 MiB
#18 Accepted 110ms 7.992 MiB
#19 Accepted 97ms 7.992 MiB
#20 Accepted 111ms 9.617 MiB

信息

递交者
类型
递交
题目
P1740 聪明的质检员
语言
C++
递交时间
2022-01-22 21:32:49
评测时间
2022-01-22 21:32:49
评测机
分数
100
总耗时
692ms
峰值内存
9.617 MiB