记录详情

Compile Error

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

信息

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