/ Vijos /

记录详情

Wrong Answer

/in/foo.cc: In function 'int main()':
/in/foo.cc:30:10: warning: format '%lf' expects argument of type 'double*', but argument 2 has type 'long double*' [-Wformat=]
   30 | scanf("%lf%lf%lf",a,a+1,a+2);
      |        ~~^        ~
      |          |        |
      |          double*  long double*
      |        %Lf
/in/foo.cc:30:13: warning: format '%lf' expects argument of type 'double*', but argument 3 has type 'long double*' [-Wformat=]
   30 | scanf("%lf%lf%lf",a,a+1,a+2);
      |           ~~^       ~~~
      |             |        |
      |             double*  long double*
      |           %Lf
/in/foo.cc:30:16: warning: format '%lf' expects argument of type 'double*', but argument 4 has type 'long double*' [-Wformat=]
   30 | scanf("%lf%lf%lf",a,a+1,a+2);
      |              ~~^        ~~~
      |                |         |
      |                double*   long double*
      |              %Lf
/in/foo.cc:33:10: warning: format '%lf' expects argument of type 'double*', but argument 2 has type 'long double*' [-Wformat=]
   33 | scanf("%lf%lf%lf",a,a+1,a+2);
      |        ~~^        ~
      |          |        |
      |          double*  long double*
      |        %Lf
/in/foo.cc:33:13: warning: format '%lf' expects argument of type 'double*', but argument 3 has type 'long double*' [-Wformat=]
   33 | scanf("%lf%lf%lf",a,a+1,a+2);
      |           ~~^       ~~~
      |             |        |
      |             double*  long double*
      |           %Lf
/in/foo.cc:33:16: warning: format '%lf' expects argument of type 'double*', but argument 4 has type 'long double*' [-Wformat=]
   33 | scanf("%lf%lf%lf",a,a+1,a+2);
      |              ~~^        ~~~
      |                |         |
      |                double*   long double*
      |              %Lf
# 状态 耗时 内存占用
#1 Wrong Answer 1ms 284.0 KiB
#2 Wrong Answer 1ms 344.0 KiB
#3 Wrong Answer 1ms 284.0 KiB
#4 Wrong Answer 1ms 304.0 KiB
#5 Wrong Answer 1ms 284.0 KiB
#6 Wrong Answer 1ms 284.0 KiB

信息

递交者
类型
递交
题目
P1511 废物利用
语言
C++
递交时间
2025-06-14 21:48:23
评测时间
2025-06-14 21:48:23
评测机
分数
0
总耗时
9ms
峰值内存
344.0 KiB