foo.c: In function 'main':
foo.c:5:14: warning: unused variable 'tmp' [-Wunused-variable]
5 | int n,i,m,j,tmp;
| ^~~
foo.c:5:12: warning: unused variable 'j' [-Wunused-variable]
5 | int n,i,m,j,tmp;
| ^
foo.c:8:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
8 | scanf("%d %d",&n,&m);
| ^~~~~~~~~~~~~~~~~~~~
foo.c:10:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
10 | scanf("%d",&s[i]);
| ^~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务