记录详情

Compile Error

foo.cc:80:1: error: expected '}' at end of input
   80 | }
      | ^
foo.cc:18:1: note: to match this '{'
   18 | {
      | ^
foo.cc: In member function 'void BinTree::Insert(Node*)':
foo.cc:49:11: error: no matching function for call to 'BinTree::BinTree()'
   49 |  ~BinTree()
      |           ^
foo.cc:21:2: note: candidate: 'BinTree::BinTree(int*, int)'
   21 |  BinTree(int a[], int n)
      |  ^~~~~~~
foo.cc:21:2: note:   candidate expects 2 arguments, 0 provided
foo.cc:17:7: note: candidate: 'constexpr BinTree::BinTree(const BinTree&)'
   17 | class BinTree
      |       ^~~~~~~
foo.cc:17:7: note:   candidate expects 1 argument, 0 provided
foo.cc:17:7: note: candidate: 'constexpr BinTree::BinTree(BinTree&&)'
foo.cc:17:7: note:   candidate expects 1 argument, 0 provided
foo.cc:54:2: error: a function-definition is not allowed here before '{' token
   54 |  {
      |  ^
foo.cc:61:2: error: a function-definition is not allowed here before '{' token
   61 |  {
      |  ^
foo.cc:65:2: error: a function-definition is not allowed here before '{' token
   65 |  {
      |  ^
foo.cc: In member function 'int BinTree::main()':
foo.cc:77:14: error: 'n' was not declared in this scope
   77 |  BinTree T(a,n);
      |              ^
foo.cc:78:4: error: 'class BinTree' has no member named 'MidOrder'
   78 |  T.MidOrder();
      |    ^~~~~~~~
foo.cc: At global scope:
foo.cc:80:1: error: expected unqualified-id at end of input
   80 | }
      | ^
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
自测
题目
DS7-2 先序遍历二叉排序树
语言
C++
递交时间
2021-12-26 16:46:57
评测时间
2021-12-26 16:46:57
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes