记录详情

Compile Error

foo.c: In function 'aaa':
foo.c:9:12: error: 'x' undeclared (first use in this function)
    9 |     return x;
      |            ^
foo.c:9:12: note: each undeclared identifier is reported only once for each function it appears in
foo.c:10:1: warning: control reaches end of non-void function [-Wreturn-type]
   10 | }
      | ^
foo.c: In function 'main':
foo.c:16:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   16 |  scanf("%d %d",&b1,&a1);
      |  ^~~~~~~~~~~~~~~~~~~~~~
foo.c:17:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   17 |  scanf("%d %d",&b2,&a2);
      |  ^~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
A6-2 最大公约数专题:分数的加法
语言
C
递交时间
2022-02-28 21:18:02
评测时间
2022-02-28 21:18:02
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes