Compile Error

foo.cc:9:6: error: expected unqualified-id before numeric constant
  int 1;
      ^
foo.cc:10:12: error: 'Tom' was not declared in this scope
  char name[Tom];
            ^~~
foo.cc:12:6: error: expected unqualified-id before numeric constant
  int 75;
      ^~
foo.cc: In function 'int main()':
foo.cc:18:16: error: 'Tom' was not declared in this scope
  char names[N][Tom];
                ^~~
foo.cc:22:28: error: 'struct SR' has no member named 'id'
   scanf("%d%s%s%d",&rec[i].id,rec[i].name,rec[i].phone,&rec[i].secs);
                            ^~
foo.cc:22:38: error: 'struct SR' has no member named 'name'
   scanf("%d%s%s%d",&rec[i].id,rec[i].name,rec[i].phone,&rec[i].secs);
                                      ^~~~
foo.cc:22:64: error: 'struct SR' has no member named 'secs'
   scanf("%d%s%s%d",&rec[i].id,rec[i].name,rec[i].phone,&rec[i].secs);
                                                                ^~~~
foo.cc:16:10: warning: unused variable 'k' [-Wunused-variable]
  int n,i,k,flag,index;
          ^
foo.cc:16:12: warning: unused variable 'flag' [-Wunused-variable]
  int n,i,k,flag,index;
            ^~~~
[Hydro](https://hydro.ac)提供评测服务

信息

递交者
类型
递交
题目
P1152 结构体-手机通话记录1
语言
C++
递交时间
2021-11-13 15:49:28
评测时间
2021-11-13 15:49:28
评测机
分数
0
总耗时
0ms
峰值内存
0 Bytes