记录详情

Compile Error

foo.c: In function 'main':
foo.c:7:17: warning: format '%d' expects a matching 'int *' argument [-Wformat=]
    7 |         scanf("%d%d,&x1,&x2");
      |                ~^
      |                 |
      |                 int *
foo.c:7:19: warning: format '%d' expects a matching 'int *' argument [-Wformat=]
    7 |         scanf("%d%d,&x1,&x2");
      |                  ~^
      |                   |
      |                   int *
foo.c:14:31: error: expected ';' at end of input
   14 |         printf("y1\n,y2\n,y3")
      |                               ^
      |                               ;
   15 | 
foo.c:14:9: error: expected declaration or statement at end of input
   14 |         printf("y1\n,y2\n,y3")
      |         ^~~~~~
foo.c:9:19: warning: variable 'y3' set but not used [-Wunused-but-set-variable]
    9 |         int y1,y2,y3;
      |                   ^~
foo.c:9:16: warning: variable 'y2' set but not used [-Wunused-but-set-variable]
    9 |         int y1,y2,y3;
      |                ^~
foo.c:9:13: warning: variable 'y1' set but not used [-Wunused-but-set-variable]
    9 |         int y1,y2,y3;
      |             ^~
[Hydro](https://hydro.ac)提供评测服务

信息

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