记录详情

Compile Error

foo.c: In function 'main':
foo.c:7:9: error: unknown type name 'lomg'; did you mean 'long'?
    7 |         lomg x,y,m[100];
      |         ^~~~
      |         long
foo.c:11:34: error: expected ')' before ';' token
   11 |                 scanf("%ld",&m[k];
      |                      ~           ^
      |                                  )
foo.c:11:26: warning: format '%ld' expects argument of type 'long int *', but argument 2 has type 'int *' [-Wformat=]
   11 |                 scanf("%ld",&m[k];
      |                        ~~^  ~~~~~
      |                          |  |
      |                          |  int *
      |                          long int *
      |                        %d
foo.c:11:35: error: expected ';' before '}' token
   11 |                 scanf("%ld",&m[k];
      |                                   ^
      |                                   ;
   12 |     }
      |     ~                              
foo.c:18:19: error: 'gcd\U0000ff08x' undeclared (first use in this function)
   18 |                 x=gcd(x,y);
      |                   ^~~~~~
foo.c:18:19: note: each undeclared identifier is reported only once for each function it appears in
foo.c:18:25: warning: left-hand operand of comma expression has no effect [-Wunused-value]
   18 |                 x=gcd(x,y);
      |                         ^
foo.c:18:17: warning: statement with no effect [-Wunused-value]
   18 |                 x=gcd(x,y);
      |                 ^
foo.c:18:27: error: expected ';' before ')' token
   18 |                 x=gcd(x,y);
      |                           ^
      |                           ;
foo.c:18:27: error: expected statement before ')' token
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
5-3 最大公约数
语言
C
递交时间
2023-10-01 18:37:43
评测时间
2023-10-01 18:37:43
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes