foo.cc: In function 'int main()':
foo.cc:27:21: error: 'strcmp' was not declared in this scope
27 | if(a[i].End>85 && strcmp(a[i].East,"Y")==0){
| ^~~~~~
foo.cc:2:1: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
1 | #include<iostream>
+++ |+#include <cstring>
2 | using namespace std;
foo.cc:30:23: error: 'strcmp' was not declared in this scope
30 | if(a[i].Class>85 && strcmp(a[i].job,"Y")==0){
| ^~~~~~
foo.cc:30:23: note: 'strcmp' is defined in header '<cstring>'; did you forget to '#include <cstring>'?
foo.cc:38:13: error: cannot convert 'student' to 'int' in assignment
38 | w=a[j];
| ~~~^
| |
| student
foo.cc:40:15: error: no match for 'operator=' (operand types are 'student' and 'int')
40 | a[j+1]=w;
| ^
foo.cc:3:8: note: candidate: 'student& student::operator=(const student&)'
3 | struct student{
| ^~~~~~~
foo.cc:3:8: note: no known conversion for argument 1 from 'int' to 'const student&'
foo.cc:3:8: note: candidate: 'student& student::operator=(student&&)'
foo.cc:3:8: note: no known conversion for argument 1 from 'int' to 'student&&'
[Hydro](https://hydro.ac)提供评测服务