foo.c: In function 'main':
foo.c:14:11: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[14]' [-Wformat=]
scanf("%s",&name1[i]);
~^ ~~~~~~~~~
foo.c:18:11: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[14]' [-Wformat=]
scanf("%s",&name2[i]);
~^ ~~~~~~~~~
foo.c:29:14: warning: format '%s' expects argument of type 'char *', but argument 2 has type 'char (*)[14]' [-Wformat=]
scanf("%s",&name3[j]);
~^ ~~~~~~~~~
foo.c:7:19: warning: unused variable 'c2' [-Wunused-variable]
int a,c1[12]={0},c2[36]={0};
^~
foo.c:11:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d",&a);
^~~~~~~~~~~~~~
foo.c:14:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",&name1[i]);
^~~~~~~~~~~~~~~~~~~~~
foo.c:18:3: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",&name2[i]);
^~~~~~~~~~~~~~~~~~~~~
foo.c:23:5: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d",&b,&c);
^~~~~~~~~~~~~~~~~~~~
foo.c:29:6: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
scanf("%s",&name3[j]);
^~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务