foo.c: In function 'main':
foo.c:5:11: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'b'
int a b c t;
^
foo.c:5:11: error: unknown type name 'b'
foo.c:5:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before 't'
int a b c t;
^
foo.c:6:17: error: 'a' undeclared (first use in this function)
scanf("%d %d",&a,&b);
^
foo.c:6:17: note: each undeclared identifier is reported only once for each function it appears in
foo.c:6:20: error: 'b' undeclared (first use in this function)
scanf("%d %d",&a,&b);
^
foo.c:9:3: error: 'c' undeclared (first use in this function)
{c=a;
^
foo.c:13:6: error: 't' undeclared (first use in this function)
for(t=a;t++)
^
foo.c:13:13: error: expected ';' before ')' token
for(t=a;t++)
^
foo.c:14:12: error: expected ')' before ';' token
if(t%a==0;t%b==0)
^
foo.c:15:4: warning: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
{print("%d",t);
^~~~~
printf
[Hydro](https://hydro.ac)提供评测服务