foo.c: In function 'main':
foo.c:19:11: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'int' [-Wformat=]
19 | printf("%s",a[j]);
| ~^ ~~~~
| | |
| | int
| char *
| %d
foo.c:8:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
8 | {scanf("%s ",&a[j]);
| ^~~~~~~~~~~~~~~~~~
foo.c:9:6: warning: iteration 100 invokes undefined behavior [-Waggressive-loop-optimizations]
9 | b[j]=sizeof(a[j]);
| ~~~~^~~~~~~~~~~~~
foo.c:7:2: note: within this loop
7 | for(j=0;j<=101;j++)
| ^~~
[Hydro](https://hydro.ac)提供评测服务