记录详情

Compile Error

/in/foo.cc:1:9: error: #include expects "FILENAME" or <FILENAME>
 #include <iostream>
         ^
/in/foo.cc:2:9: error: #include expects "FILENAME" or <FILENAME>
 #include <cstddef>
         ^
/in/foo.cc:4:6: error: stray '\302' in program
 using namespace std;
      ^
/in/foo.cc:4:7: error: stray '\240' in program
 using namespace std;
       ^
/in/foo.cc:4:17: error: stray '\302' in program
 using namespace std;
                 ^
/in/foo.cc:4:18: error: stray '\240' in program
 using namespace std;
                  ^
/in/foo.cc:6:7: error: stray '\302' in program
 struct Node
       ^
/in/foo.cc:6:8: error: stray '\240' in program
 struct Node
        ^
/in/foo.cc:8:5: error: stray '\302' in program
 char data;
     ^
/in/foo.cc:8:6: error: stray '\240' in program
 char data;
      ^
/in/foo.cc:9:6: error: stray '\302' in program
 Node* left;
      ^
/in/foo.cc:9:7: error: stray '\240' in program
 Node* left;
       ^
/in/foo.cc:10:6: error: stray '\302' in program
 Node* right;
      ^
/in/foo.cc:10:7: error: stray '\240' in program
 Node* right;
       ^
/in/foo.cc:12:10: error: stray '\302' in program
 Node(char e) : data(e), left(NULL), right(NULL)
          ^
/in/foo.cc:12:11: error: stray '\240' in program
 Node(char e) : data(e), left(NULL), right(NULL)
           ^
/in/foo.cc:12:14: error: stray '\302' in program
 Node(char e) : data(e), left(NULL), right(NULL)
              ^
/in/foo.cc:12:15: error: stray '\240' in program
 Node(char e) : data(e), left(NULL), right(NULL)
               ^
/in/foo.cc:12:17: error: stray '\302' in program
 Node(char e) : data(e), left(NULL), right(NULL)
                 ^
/in/foo.cc:12:18: error: stray '\240' in program
 Node(char e) : data(e), left(NULL), right(NULL)
                  ^
/in/foo.cc:12:27: error: stray '\302' in program
 Node(char e) : data(e), left(NULL), right(NULL)
                           ^
/in/foo.cc:12:28: error: stray '\240' in program
 Node(char e) : data(e), left(NULL), right(NULL)
                            ^
/in/foo.cc:12:40: error: stray '\302' in program
 Node(char e) : data(e), left(NULL), right(NULL)
                                        ^
/in/foo.cc:12:41: error: stray '\240' in program
 Node(char e) : data(e), left(NULL), right(NULL)
                                         ^
/in/foo.cc:21:6: error: stray '\302' in program
 class BinTree
      ^
/in/foo.cc:21:7: error: stray '\240' in program
 class BinTree
       ^
/in/foo.cc:24:6: error: stray '\302' in program
 Node* root;
      ^
/in/foo.cc:24:7: error: stray '\240' in program
 Node* root;
       ^
/in/foo.cc:25:6: error: stray '\302' in program
 Node* createTreeByPrev(char* pre, int& i);
      ^
/in/foo.cc:25:7: error: stray '\240' in program
 Node* createTreeByPrev(char* pre, int& i);
       ^
/in/foo.cc:25:30: error: stray '\302' in program
 Node* createTreeByPrev(char* pre, int& i);
                              ^
/in/foo.cc:25:31: error: stray '\240' in program
 Node* createTreeByPrev(char* pre, int& i);
                               ^
/in/foo.cc:25:36: error: stray '\302' in program
 Node* createTreeByPrev(char* pre, int& i);
                                    ^
/in/foo.cc:25:37: error: stray '\240' in program
 Node* createTreeByPrev(char* pre, int& i);
                                     ^
/in/foo.cc:25:42: error: stray '\302' in program
 Node* createTreeByPrev(char* pre, int& i);
                                          ^
/in/foo.cc:25:43: error: stray '\240' in program
 Node* createTreeByPrev(char* pre, int& i);
                                           ^
/in/foo.cc:26:5: error: stray '\302' in program
 void Order(Node* node);
     ^
/in/foo.cc:26:6: error: stray '\240' in program
 void Order(Node* node);
      ^
/in/foo.cc:26:18: error: stray '\302' in program
 void Order(Node* node);
                  ^
/in/foo.cc:26:19: error: stray '\240' in program
 void Order(Node* node);
                   ^
/in/foo.cc:27:5: error: stray '\302' in program
 void DestoryAll(Node* node);
     ^
/in/foo.cc:27:6: error: stray '\240' in program
 void DestoryAll(Node* node);
      ^
/in/foo.cc:27:23: error: stray '\302' in program
 void DestoryAll(Node* node);
                       ^
/in/foo.cc:27:24: error: stray '\240' in program
 void DestoryAll(Node* node);
                        ^
/in/foo.cc:28:4: error: stray '\302' in program
 int count(Node* node);
    ^
/in/foo.cc:28:5: error: stray '\240' in program
 int count(Node* node);
     ^
/in/foo.cc:28:17: error: stray '\302' in program
 int count(Node* node);
                 ^
/in/foo.cc:28:18: error: stray '\240' in program
 int count(Node* node);
                  ^
/in/foo.cc:31:5: error: stray '\302' in program
 void DestoryAll();
     ^
/in/foo.cc:31:6: error: stray '\240' in program
 void DestoryAll();
      ^
/in/foo.cc:32:8: error: stray '\302' in program
 virtual ~BinTree();
        ^
/in/foo.cc:32:9: error: stray '\240' in program
 virtual ~BinTree();
         ^
/in/foo.cc:33:13: error: stray '\302' in program
 BinTree(char pre[]);
             ^
/in/foo.cc:33:14: error: stray '\240' in program
 BinTree(char pre[]);
              ^
/in/foo.cc:34:4: error: stray '\302' in program
 int count();
    ^
/in/foo.cc:34:5: error: stray '\240' in program
 int count();
     ^
/in/foo.cc:35:5: error: stray '\302' in program
 void Order();
     ^
/in/foo.cc:35:6: error: stray '\240' in program
 void Order();
      ^
/in/foo.cc:38:7: error: stray '\302' in program
 inline Node* BinTree::createTreeByPrev(char* pre, int& i)
       ^
/in/foo.cc:38:8: error: stray '\240' in program
 inline Node* BinTree::createTreeByPrev(char* pre, int& i)
        ^
/in/foo.cc:38:14: error: stray '\302' in program
 inline Node* BinTree::createTreeByPrev(char* pre, int& i)
              ^
/in/foo.cc:38:15: error: stray '\240' in program
 inline Node* BinTree::createTreeByPrev(char* pre, int& i)
               ^
/in/foo.cc:38:47: error: stray '\302' in program
 inline Node* BinTree::createTreeByPrev(char* pre, int& i)
                                               ^
/in/foo.cc:38:48: error: stray '\240' in program
 inline Node* BinTree::createTreeByPrev(char* pre, int& i)
                                                ^
/in/foo.cc:38:53: error: stray '\302' in program
 inline Node* BinTree::createTreeByPrev(char* pre, int& i)
                                                     ^
/in/foo.cc:38:54: error: stray '\240' in program
 inline Node* BinTree::createTreeByPrev(char* pre, int& i)
                                                      ^
/in/foo.cc:38:59: error: stray '\302' in program
 inline Node* BinTree::createTreeByPrev(char* pre, int& i)
                                                           ^
/in/foo.cc:38:60: error: stray '\240' in program
 inline Node* BinTree::createTreeByPrev(char* pre, int& i)
                                                            ^
/in/foo.cc:40:5: error: stray '\302' in program
 char c = pre[i++];
     ^
/in/foo.cc:40:6: error: stray '\240' in program
 char c = pre[i++];
      ^
/in/foo.cc:40:8: error: stray '\302' in program
 char c = pre[i++];
        ^
/in/foo.cc:40:9: error: stray '\240' in program
 char c = pre[i++];
         ^
/in/foo.cc:40:11: error: stray '\302' in program
 char c = pre[i++];
           ^
/in/foo.cc:40:12: error: stray '\240' in program
 char c = pre[i++];
            ^
/in/foo.cc:41:3: error: stray '\302' in program
 if (c == '*')
   ^
/in/foo.cc:41:4: error: stray '\240' in program
 if (c == '*')
    ^
/in/foo.cc:41:7: error: stray '\302' in program
 if (c == '*')
       ^
/in/foo.cc:41:8: error: stray '\240' in program
 if (c == '*')
        ^
/in/foo.cc:41:11: error: stray '\302' in program
 if (c == '*')
           ^
/in/foo.cc:41:12: error: stray '\240' in program
 if (c == '*')
            ^
/in/foo.cc:43:7: error: stray '\302' in program
 return NULL;
       ^
/in/foo.cc:43:8: error: stray '\240' in program
 return NULL;
        ^
/in/foo.cc:45:6: error: stray '\302' in program

信息

递交者
类型
自测
题目
DS5-1 根据含空指针标记的先序序列创建二叉树
语言
C++
递交时间
2019-04-06 11:21:21
评测时间
2019-04-06 11:21:21
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes