Compile Error
/in/foo.cc: In constructor 'BinTree::BinTree(char*, char*)': /in/foo.cc:21:21: error: 'strlen' was not declared in this scope int n = strlen(pre); ^ /in/foo.cc: In function 'int main()': /in/foo.cc:109:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] BinTree T("ABDEC", "DEBAC"); ^ /in/foo.cc:109:28: warning: ISO C++ forbids converting a string constant to 'char*' [-Wwrite-strings] /in/foo.cc:114:10: error: expected '}' at end of input return 0; ^
信息
- 递交者
- 类型
- 自测
- 题目
- DS5-2 根据先序和中序序列创建二叉树
- 语言
- C++
- 递交时间
- 2021-12-28 09:25:45
- 评测时间
- 2021-12-28 09:25:45
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes