记录详情

Compile Error

/in/foo.cc:42:17: error: 'NOde' has not been declared
  void PostOrder(NOde*p)
                 ^~~~
/in/foo.cc: In constructor 'BinTree::BinTree(const char*, const char*)':
/in/foo.cc:20:19: error: 'strlen' was not declared in this scope
   int n=strlen(pre);
                   ^
/in/foo.cc: In member function 'void BinTree::PostOrder()':
/in/foo.cc:40:17: error: no matching function for call to 'BinTree::PostOrder(Node*&)'
   PostOrder(Root);
                 ^
/in/foo.cc:38:7: note: candidate: void BinTree::PostOrder()
  void PostOrder()
       ^~~~~~~~~
/in/foo.cc:38:7: note:   candidate expects 0 arguments, 1 provided
/in/foo.cc:42:7: note: candidate: void BinTree::PostOrder(int*)
  void PostOrder(NOde*p)
       ^~~~~~~~~
/in/foo.cc:42:7: note:   no known conversion for argument 1 from 'Node*' to 'int*'
/in/foo.cc: In member function 'void BinTree::PostOrder(int*)':
/in/foo.cc:46:16: error: request for member 'lchild' in '* p', which is of non-class type 'int'
   POstOrder(p->lchild);
                ^~~~~~
/in/foo.cc:46:22: error: 'POstOrder' was not declared in this scope
   POstOrder(p->lchild);
                      ^
/in/foo.cc:47:16: error: request for member 'rchild' in '* p', which is of non-class type 'int'
   POstOrder(p->rchild);
                ^~~~~~
/in/foo.cc:48:12: error: request for member 'data' in '* p', which is of non-class type 'int'
   cout<<p->data;
            ^~~~

信息

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