记录详情

Compile Error

foo.c: In function 'main':
foo.c:5:17: warning: format '%f' expects argument of type 'float *', but argument 2 has type 'double *' [-Wformat=]
    5 |         scanf("%f%f",&x,&y);
      |                ~^    ~~
      |                 |    |
      |                 |    double *
      |                 float *
      |                %lf
foo.c:5:19: warning: format '%f' expects argument of type 'float *', but argument 3 has type 'double *' [-Wformat=]
    5 |         scanf("%f%f",&x,&y);
      |                  ~^     ~~
      |                   |     |
      |                   |     double *
      |                   float *
      |                  %lf
foo.c:8:24: error: invalid operands to binary % (have 'double' and 'double')
    8 |         printf("%f\n",x%y);
      |                        ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1078 xf1-1两数和、积、余
语言
C
递交时间
2022-10-05 23:20:44
评测时间
2022-10-05 23:20:44
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes