foo.cc: In function 'int main()':
foo.cc:25:68: warning: format '%s' expects argument of type 'char*', but argument 4 has type 'char (*)[20]' [-Wformat=]
scanf("%d %s %s %d",&sr[i].id,sr[i].name,&sr[i].phone,&sr[i].secs);//"%d %s %s %d"有没有空格都可以
~~~~~~~~~~~~ ^
foo.cc:19:7: warning: unused variable 'names' [-Wunused-variable]
char names[100][20];
^~~~~
foo.cc:25:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %s %s %d",&sr[i].id,sr[i].name,&sr[i].phone,&sr[i].secs);//"%d %s %s %d"有没有空格都可以
~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务