记录详情

Compile Error

/in/foo.cc: In constructor 'BinTree::BinTree(char*, char*)':
/in/foo.cc:49:42: error: 'strlen' was not declared in this scope
  int ipre = 0, imid = 0, len = strlen(pre);
                                          ^
/in/foo.cc: In function 'int main()':
/in/foo.cc:106:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]
  BinTree T("abdecf", "dbeacf");
                              ^
/in/foo.cc:106:30: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings]

信息

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