foo.cc: In function 'int main()':
foo.cc:15:10: warning: unused variable 'j' [-Wunused-variable]
int n,i,j,k,flag,index;
^
foo.cc:16:19: warning: unused variable 't' [-Wunused-variable]
struct SR rec[N],t;
^
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)提供评测服务