foo.cc: In function 'int main()':
foo.cc:21:69: 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: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)提供评测服务