Compile Error

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

信息

递交者
类型
递交
题目
P1154 结构体-手机通话记录2
语言
C++
递交时间
2021-11-14 16:59:32
评测时间
2021-11-14 16:59:32
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes