记录详情

Compile Error

foo.cc: In function 'int main()':
foo.cc:14:29: error: 'strlen' was not declared in this scope
   14 |         for (int j = 0; j < strlen(a); j++)
      |                             ^~~~~~
foo.cc:3:1: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
    2 | #include <string>
  +++ |+#include <cstring>
    3 | using namespace std;
foo.cc:25:29: error: 'strlen' was not declared in this scope
   25 |         for (int i = 0; i < strlen(s)-sum; i++)
      |                             ^~~~~~
foo.cc:25:29: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1062 A8-6 删除字符串中多余的多种字符
比赛
2023 程序设计与竞赛(作业7:最初的综合)
语言
C++
递交时间
2023-11-11 19:09:13
评测时间
2023-11-11 19:09:13
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes