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)提供评测服务