/ FWOJ /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:8:13: warning: format '%ld' expects argument of type 'long int*', but argument 2 has type 'long long int*' [-Wformat=]
    8 |   scanf("%1ld",&n);
      |          ~~~^  ~~
      |             |  |
      |             |  long long int*
      |             long int*
      |          %1lld
foo.cc:13:14: warning: format '%ld' expects argument of type 'long int', but argument 2 has type 'long long int' [-Wformat=]
   13 |  }printf("%1ld %1ld\n",maxn,maxb);
      |           ~~~^         ~~~~
      |              |         |
      |              long int  long long int
      |           %1lld
foo.cc:13:19: warning: format '%ld' expects argument of type 'long int', but argument 3 has type 'long long int' [-Wformat=]
   13 |  }printf("%1ld %1ld\n",maxn,maxb);
      |                ~~~^         ~~~~
      |                   |         |
      |                   long int  long long int
      |                %1lld
foo.cc:6:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    6 |  scanf("%d",&a);
      |  ~~~~~^~~~~~~~~
foo.cc:8:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    8 |   scanf("%1ld",&n);
      |   ~~~~~^~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 9, expect 999443844895072. 2ms 384.0 KiB
#2 Wrong Answer Read 22442599280584, expect 999149944284938. 2ms 380.0 KiB
#3 Wrong Answer Read 9, expect 999931083907916. 3ms 384.0 KiB
#4 Wrong Answer Read 22838028115912, expect 999572641960666. 2ms 384.0 KiB
#5 Wrong Answer Read 23155202564040, expect 999945803003897. 4ms 384.0 KiB
#6 Wrong Answer Read 22838885392328, expect 999166991290000. 3ms 384.0 KiB
#7 Wrong Answer Read 23190216617928, expect 999396892050816. 4ms 384.0 KiB
#8 Wrong Answer Read 9, expect 998720745759256. 2ms 384.0 KiB
#9 Wrong Answer Read 23060366860232, expect 999561913691684. 2ms 384.0 KiB
#10 Wrong Answer Read 9, expect 998959665849659. 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1048 求最值
语言
C++
递交时间
2022-02-15 20:39:34
评测时间
2022-02-15 20:39:34
评测机
分数
0
总耗时
31ms
峰值内存
384.0 KiB