/ Vijos /

记录详情

Compile Error

foo.c: In function 'main':
foo.c:5:9: error: 'inta' undeclared (first use in this function); did you mean 'int'?
    5 |         inta,b,c,d;
      |         ^~~~
      |         int
foo.c:5:9: note: each undeclared identifier is reported only once for each function it appears in
foo.c:5:14: error: 'b' undeclared (first use in this function)
    5 |         inta,b,c,d;
      |              ^
foo.c:5:13: warning: left-hand operand of comma expression has no effect [-Wunused-value]
    5 |         inta,b,c,d;
      |             ^
foo.c:5:16: error: 'c' undeclared (first use in this function)
    5 |         inta,b,c,d;
      |                ^
foo.c:5:15: warning: left-hand operand of comma expression has no effect [-Wunused-value]
    5 |         inta,b,c,d;
      |               ^
foo.c:5:18: error: 'd' undeclared (first use in this function)
    5 |         inta,b,c,d;
      |                  ^
foo.c:5:17: warning: left-hand operand of comma expression has no effect [-Wunused-value]
    5 |         inta,b,c,d;
      |                 ^
foo.c:6:24: error: 'a' undeclared (first use in this function)
    6 |         scanf("%d %d",&a,&b);
      |                        ^
foo.c:15:24: error: expected ';' before 'if'
   15 |                 c = a%b
      |                        ^
      |                        ;
   16 |                 if(c==0)
      |                 ~~      
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1047 最小公倍数
语言
C
递交时间
2022-10-04 14:45:25
评测时间
2022-10-04 14:45:25
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes