记录详情

Compile Error

/in/foo.c:1:12: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 int BinTree::Count(Node *p)
            ^
/in/foo.c:9:1: error: unknown type name 'Node'
 Node * BinTree::Search(char c)
 ^~~~
/in/foo.c:9:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 Node * BinTree::Search(char c)
               ^
/in/foo.c:13:1: error: unknown type name 'Node'
 Node * BinTree::Search(Node *p, char c)
 ^~~~
/in/foo.c:13:15: error: expected '=', ',', ';', 'asm' or '__attribute__' before ':' token
 Node * BinTree::Search(Node *p, char c)
               ^
/in/foo.c: In function 'main':
/in/foo.c:25:2: error: 'cin' undeclared (first use in this function)
  cin.getline(c, 1000);
  ^~~
/in/foo.c:25:2: note: each undeclared identifier is reported only once for each function it appears in
/in/foo.c:26:2: error: unknown type name 'BinTree'
  BinTree T(c);
  ^~~~~~~
/in/foo.c:26:2: warning: parameter names (without types) in function declaration
/in/foo.c:27:3: error: request for member 'Order' in something not a structure or union
  T.Order();
   ^

信息

递交者
类型
自测
题目
DS5-2 根据先序和中序序列创建二叉树
语言
C
递交时间
2019-04-06 12:00:15
评测时间
2019-04-06 12:00:15
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes