foo.c: In function 'CountWord':
foo.c:32:13: warning: unused variable 'n' [-Wunused-variable]
32 | int n=0;
| ^
foo.c: In function 'main':
foo.c:42:9: warning: 'fgets' writing 100001 bytes into a region of size 100000 overflows the destination [-Wstringop-overflow=]
42 | fgets(s0,N+1,stdin);
| ^~~~~~~~~~~~~~~~~~~
foo.c:41:14: note: destination object 's0' of size 100000
41 | char s0[N];
| ^~
In file included from foo.c:1:
/nix/store/y8wfrgk7br5rfz4221lfb9v8w3n0cnyd-glibc-2.37-8-dev/include/stdio.h:592:14: note: in a call to function 'fgets' declared with attribute 'access (write_only, 1, 2)'
592 | extern char *fgets (char *__restrict __s, int __n, FILE *__restrict __stream)
| ^~~~~
[Hydro](https://hydro.ac)提供评测服务