foo.cc: In function 'int main()':
foo.cc:19:17: error: elements of array 'main()::student s [100]' have incomplete type
struct student s[N],t;
^
foo.cc:19:17: error: storage size of 's' isn't known
foo.cc:19:22: error: aggregate 'main()::student t' has incomplete type and cannot be defined
struct student s[N],t;
^
foo.cc:23: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].sece);
^~
foo.cc:23:64: error: 'struct SR' has no member named 'sece'
scanf("%d%s%s%d",&rec[i].id,rec[i].name,rec[i].phone,&rec[i].sece);
^~~~
foo.cc:34:29: error: expected primary-expression before ',' token
if(strcmp(rec[k].name,,names[i])==0)
^
foo.cc:34:30: error: 'names' was not declared in this scope
if(strcmp(rec[k].name,,names[i])==0)
^~~~~
foo.cc:34:30: note: suggested alternative: 'rename'
if(strcmp(rec[k].name,,names[i])==0)
^~~~~
rename
foo.cc:37:4: error: expected ';' before '}' token
}
^
foo.cc:41:11: error: 'names' was not declared in this scope
strcpy(names[index],rec[k].name);
^~~~~
foo.cc:41:11: note: suggested alternative: 'rename'
strcpy(names[index],rec[k].name);
^~~~~
rename
foo.cc:47:3: error: 'cont' was not declared in this scope
cont<<i+1<<" "<<names[i]<<endl;
^~~~
foo.cc:47:3: note: suggested alternative: 'uint'
cont<<i+1<<" "<<names[i]<<endl;
^~~~
uint
foo.cc:47:19: error: 'names' was not declared in this scope
cont<<i+1<<" "<<names[i]<<endl;
^~~~~
foo.cc:47:19: note: suggested alternative: 'rename'
cont<<i+1<<" "<<names[i]<<endl;
^~~~~
rename
[Hydro](https://hydro.ac)提供评测服务