Compile Error
/in/foo.cc: In function 'void DeleteSubstring(char*, int, int)': /in/foo.cc:7:26: error: 'strlen' was not declared in this scope int length = strlen(s); ^ /in/foo.cc: In function 'int main()': /in/foo.cc:24:22: error: 'strcspn' was not declared in this scope s[strcspn(s, "\n")] = '\0'; ^
信息
- 递交者
- 类型
- 自测
- 题目
- P1063 A8-7 删除字符串中一个子串
- 语言
- C++
- 递交时间
- 2024-11-12 18:03:09
- 评测时间
- 2024-11-12 18:03:09
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes