/ Vijos /

记录详情

Compile Error

foo.c: In function 'main':
foo.c:6:9: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'scanf'
    6 |         scanf("%d %d",&a,&b);
      |         ^~~~~
foo.c:8:16: error: 'b' undeclared (first use in this function)
    8 |         if(a*i%b==0)
      |                ^
foo.c:8:16: note: each undeclared identifier is reported only once for each function it appears in
foo.c:9:33: error: expected ';' before 'else'
    9 |                 printf("%d",a*i)
      |                                 ^
      |                                 ;
   10 |         else
      |         ~~~~                     
[Hydro](https://hydro.ac)提供评测服务

信息

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