foo.c: In function 'main':
foo.c:8:9: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[100001]' [-Wformat=]
scanf("%s",&number);
~^ ~~~~~~~
foo.c:21:2: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
if(c[i]!=' ') m=i;break;
^~
foo.c:21:21: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
if(c[i]!=' ') m=i;break;
^~~~~
foo.c:7:7: warning: unused variable 'i' [-Wunused-variable]
int n,i,m,c[100001],b[100001];
^
foo.c: In function 't':
foo.c:29:1: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
for(int i=0;i<n;i++)
^~~
foo.c:31:2: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
char c[100001];
^~~~
foo.c: In function 'main':
foo.c:8:1: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",&number);
^~~~~~~~~~~~~~~~~~~
foo.c:9:1: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&n);
^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务