记录详情

Compile Error

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

信息

递交者
类型
递交
题目
5-8 留下最大数
比赛
2023 程序设计与竞赛(作业7:最初的综合)
语言
C++
递交时间
2023-11-11 20:08:57
评测时间
2023-11-11 20:08:57
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes