记录详情

Compile Error

foo.c:9:12: error: unknown type name 'data'
 int Search(data* p, int cnt, int q, int r)
            ^~~~
foo.c:19:23: error: unknown type name 'data'
 int Div(int a, int b, data* p)
                       ^~~~
foo.c:37:12: error: unknown type name 'data'
 void print(data* p, int end)
            ^~~~
foo.c: In function 'main':
foo.c:50:2: error: unknown type name 'data'; use 'struct' keyword to refer to the type
  data x1, x2;
  ^~~~
  struct 
foo.c:53:4: error: request for member 'Int' in something not a structure or union
  x1.Int = a1 / b1, x2.Int = a2 / b2;
    ^
foo.c:53:22: error: request for member 'Int' in something not a structure or union
  x1.Int = a1 / b1, x2.Int = a2 / b2;
                      ^
foo.c:53:18: warning: left-hand operand of comma expression has no effect [-Wunused-value]
  x1.Int = a1 / b1, x2.Int = a2 / b2;
                  ^
foo.c:54:13: warning: implicit declaration of function 'Div' [-Wimplicit-function-declaration]
  int end1 = Div(a1, b1, &x1);
             ^~~
foo.c:56:2: warning: implicit declaration of function 'print'; did you mean 'printf'? [-Wimplicit-function-declaration]
  print(&x1, end1);
  ^~~~~
  printf
foo.c:52:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d%d%d%d", &a1, &b1, &a2, &b2);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
A11-5 小数的循环节
比赛
2021(四) 作业第三场:热身赛
语言
C
递交时间
2021-11-14 21:52:47
评测时间
2021-11-14 21:52:47
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes