foo.cc: In function 'int main()':
foo.cc:23:68: warning: format '%s' expects argument of type 'char*', but argument 4 has type 'char (*)[20]' [-Wformat=]
scanf("%d%s%s%d",&rec[i].id,rec[i].name,&rec[i].phone,rec[i].secs);
~~~~~~~~~~~~~ ^
foo.cc:23:68: warning: format '%d' expects argument of type 'int*', but argument 5 has type 'int' [-Wformat=]
foo.cc:23: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)提供评测服务