记录详情

Compile Error

foo.c:7:1: error: unknown type name 'bool'; did you mean '_Bool'?
 bool panding=0;
 ^~~~
 _Bool
foo.c:28:12: error: unknown type name 'chuanh'; did you mean 'char'?
 void hanoi(chuanh chuanr){
            ^~~~~~
            char
foo.c: In function 'main':
foo.c:48:2: error: unknown type name 'chuanh'; use 'struct' keyword to refer to the type
  chuanh chuan1;
  ^~~~~~
  struct 
foo.c:55:8: error: request for member 'ge' in something not a structure or union
  chuan1.ge=zong;
        ^
foo.c:56:8: error: request for member 'cong' in something not a structure or union
  chuan1.cong=1;
        ^
foo.c:57:8: error: request for member 'jing' in something not a structure or union
  chuan1.jing=3;
        ^
foo.c:58:8: error: request for member 'dao' in something not a structure or union
  chuan1.dao=2;
        ^
foo.c:59:2: warning: implicit declaration of function 'hanoi' [-Wimplicit-function-declaration]
  hanoi(chuan1);
  ^~~~~
foo.c:50:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d",&zong);
  ^~~~~~~~~~~~~~~~~
foo.c:52:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
   scanf("%d",&daoo[i]);
   ^~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1015 新年趣事之玩具
语言
C
递交时间
2021-09-23 20:57:51
评测时间
2021-09-23 20:57:51
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes