Compile Error
foo.cc: In function 'int Length(char*)':
foo.cc:6:16: error: 'strlen' was not declared in this scope
6 | return strlen(s);
| ^~~~~~
foo.cc:2:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
1 | #include<iostream>
+++ |+#include <cstring>
2 | using namespace std;
[Hydro](https://hydro.ac)提供评测服务
信息
- 递交者
- 类型
- 递交
- 题目
- A8-1 字符串的输出函数
- 比赛
- 2023 程序设计与基础(语言的世界)
- 语言
- C++
- 递交时间
- 2023-12-05 14:37:46
- 评测时间
- 2023-12-05 14:37:46
- 评测机
- 分数
- 0
- 总耗时
- 0ms
- 峰值内存
- 0 Bytes