记录详情

Compile Error

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)提供评测服务

信息

递交者
类型
递交
语言
C
递交时间
2021-08-12 21:02:29
评测时间
2021-08-12 21:03:31
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes