foo.cc: In function 'int main()':
foo.cc:27:54: error: expected unqualified-id before '&' token
scanf("%d%s%s%d",&sr[i].id,sr[i].name,sr[i].phone. &sr[i].secs)
^
foo.cc:36:7: error: 'srtcmp' was not declared in this scope
if(srtcmp(sr[i].name,st[j].name)==0)
^~~~~~
foo.cc:36:7: note: suggested alternative: 'strncmp'
if(srtcmp(sr[i].name,st[j].name)==0)
^~~~~~
strncmp
foo.cc:76:25: error: no match for 'operator=' (operand types are 'SR' and 'ST')
sr[j+1]=temp;
^~~~
foo.cc:6:8: note: candidate: SR& SR::operator=(const SR&)
struct SR
^~
foo.cc:6:8: note: no known conversion for argument 1 from 'ST' to 'const SR&'
foo.cc:6:8: note: candidate: SR& SR::operator=(SR&&)
foo.cc:6:8: note: no known conversion for argument 1 from 'ST' to 'SR&&'
[Hydro](https://hydro.ac)提供评测服务