foo.cc: In function 'int main()':
foo.cc:29:4: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(strcmp(rec[k].name,names[i])==0);
^~
foo.cc:30:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
{
^
foo.cc:21:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d%s%s%d",&rec[i].id,rec[i].name,rec[i].phone,&rec[i].secs);
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务