记录详情

Compile Error

foo.c: In function 'main':
foo.c:5:9: error: 'int24' undeclared (first use in this function); did you mean 'int'?
    5 |         int24,36;
      |         ^~~~~
      |         int
foo.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
foo.c:5:14: warning: left-hand operand of comma expression has no effect [-Wunused-value]
    5 |         int24,36;
      |              ^
foo.c:5:14: warning: statement with no effect [-Wunused-value]
foo.c:6:18: error: lvalue required as unary '&' operand
    6 |     scanf("%d%d",&24,&36);
      |                  ^
foo.c:6:22: error: lvalue required as unary '&' operand
    6 |     scanf("%d%d",&24,&36);
      |                      ^
foo.c:7:13: error: expected identifier or '(' before numeric constant
    7 |         int 12=--gcd(24,36);
      |             ^~
foo.c:9:13: error: expected identifier or '(' before numeric constant
    9 |         int 864=24*36;
      |             ^~~
foo.c:10:13: error: expected identifier or '(' before numeric constant
   10 |         int 72=864/12;
      |             ^~
foo.c:12:17: error: expected ';' before '}' token
   12 |         return 0
      |                 ^
      |                 ;
   13 | }
      | ~                
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1079 xf1-2最大公倍数与最小公因数
比赛
2022年迎新赛(第二场)
语言
C
递交时间
2022-08-27 17:37:21
评测时间
2022-08-27 17:37:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes