/in/foo.cc: In function 'int main()':
/in/foo.cc:27:10: error: 'strcmp' was not declared in this scope
27 | if (!strcmp(temp, a[j])) {//如果找到了
| ^~~~~~
/in/foo.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
1 | #include<iostream>
+++ |+#include <cstring>
2 | char a[1000][1000];//每一维记录人名
/in/foo.cc:34:5: error: 'strcpy' was not declared in this scope
34 | strcpy(a[cnt], temp);
| ^~~~~~
/in/foo.cc:34:5: note: 'strcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
/in/foo.cc:42:7: error: 'strlen' was not declared in this scope
42 | if (strlen(a[i]) > 20)continue;
| ^~~~~~
/in/foo.cc:42:7: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
/in/foo.cc:44:4: error: 'strcpy' was not declared in this scope
44 | strcpy(t[houxuan], a[i]);
| ^~~~~~
/in/foo.cc:44:4: note: 'strcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
/in/foo.cc:50:8: error: 'strlen' was not declared in this scope
50 | if (strlen(t[i]) > strlen(t[j])) {
| ^~~~~~
/in/foo.cc:50:8: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
/in/foo.cc:52:5: error: 'strcpy' was not declared in this scope
52 | strcpy(q, t[i]);
| ^~~~~~
/in/foo.cc:52:5: note: 'strcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
/in/foo.cc:60:16: error: 'strlen' was not declared in this scope
60 | for (j = i; (strlen(t[j]) == strlen(t[i])); j++);
| ^~~~~~
/in/foo.cc:60:16: note: 'strlen' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
/in/foo.cc:64:9: error: 'strcmp' was not declared in this scope
64 | if (strcmp(t[k], t[z]) > 0) {
| ^~~~~~
/in/foo.cc:64:9: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
/in/foo.cc:66:6: error: 'strcpy' was not declared in this scope
66 | strcpy(q, t[k]);
| ^~~~~~
/in/foo.cc:66:6: note: 'strcpy' is defined in header '<cstring>'; did you forget to '#include <cstring>'?