记录详情

Compile Error

foo.c: In function 'gys':
foo.c:7:6: error: 'xy' undeclared (first use in this function); did you mean 'y'?
    7 |    y=xy
      |      ^~
      |      y
foo.c:7:6: note: each undeclared identifier is reported only once for each function it appears in
foo.c:7:8: error: expected ';' before 'return'
    7 |    y=xy
      |        ^
      |        ;
    8 |  return y;
      |  ~~~~~~ 
foo.c:4:8: warning: variable 'y' set but not used [-Wunused-but-set-variable]
    4 |  int x,y;
      |        ^
foo.c:9:1: warning: control reaches end of non-void function [-Wreturn-type]
    9 | }
      | ^
foo.c: In function 'main':
foo.c:21:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   21 |  scanf("%d%d",&x1,&x2);
      |  ^~~~~~~~~~~~~~~~~~~~~
foo.c:22:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   22 |  scanf("%d%d",&x3,&x4);
      |  ^~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A6-2 最大公约数专题:分数的加法
比赛
2022春 C语言课程设计 作业1
语言
C
递交时间
2022-03-01 00:25:32
评测时间
2022-03-01 00:25:32
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes