Compile Error
foo.c: In function ‘gcd’:
foo.c:4:7: warning: statement with no effect [-Wunused-value]
    4 |     a >= b
      |     ~~^~~~
foo.c:4:11: error: expected ‘;’ before ‘int’
    4 |     a >= b
      |           ^
      |           ;
    5 |     int r = a % b;
      |     ~~~    
foo.c:6:9: error: ‘r’ undeclared (first use in this function)
    6 |     if (r == 0) {
      |         ^
foo.c:6:9: 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 | }
      | ^
  信息
- 递交者
 - 类型
 - 递交
 - 题目
 - A6-2 最大公约数专题:分数的加法
 - 比赛
 - 南师大(含泰州学院)2024年新生赛(第一场)
 - 语言
 - C
 - 递交时间
 - 2024-08-18 14:39:51
 - 评测时间
 - 2024-08-18 14:39:51
 - 评测机
 
- 分数
 - 0
 - 总耗时
 - 0ms
 - 峰值内存
 - 0 Bytes