记录详情

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:12:17: error: 'strlen' was not declared in this scope
   12 |         int n = strlen(a);
      |                 ^~~~~~
foo.cc:12:17: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
[Hydro](https://hydro.ac)提供评测服务

信息

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