/in/foo.cc: In function 'bool cmpx(fruit, fruit)':
/in/foo.cc:10:9: error: 'strcmp' was not declared in this scope
10 | if (strcmp(x.pla, y.pla) > 0) return 0;
| ^~~~~~
/in/foo.cc:3:1: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
2 | #include<algorithm>
+++ |+#include <cstring>
3 | using namespace std;
/in/foo.cc:11:9: error: 'strcmp' was not declared in this scope
11 | if (strcmp(x.pla, y.pla) < 0) return 1;
| ^~~~~~
/in/foo.cc:11:9: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
/in/foo.cc:12:9: error: 'strcmp' was not declared in this scope
12 | if (strcmp(x.pla, y.pla) == 0)
| ^~~~~~
/in/foo.cc:12:9: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
/in/foo.cc: In function 'int main()':
/in/foo.cc:31:17: error: 'strcmp' was not declared in this scope
31 | if (strcmp(arr[j].pla, arr[j + 1].pla) == 0 && strcmp(arr[j].nam, arr[j + 1].nam) == 0) {
| ^~~~~~
/in/foo.cc:31:17: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
/in/foo.cc:42:22: error: 'strcmp' was not declared in this scope
42 | else if (strcmp(arr[j - 1].pla, arr[j].pla) != 0) {
| ^~~~~~
/in/foo.cc:42:22: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'?