joi2019_ho_t1.cpp: In function 'int main()':
joi2019_ho_t1.cpp:8:33: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[3050]' [-Wformat=]
8 | for(int i=0;i<h;i++)scanf("%s",&s[i]);
| ~^ ~~~~~
| | |
| | char (*)[3050]
| char*
joi2019_ho_t1.cpp:7:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
7 | scanf("%i %i",&h,&w);
| ~~~~~^~~~~~~~~~~~~~~
joi2019_ho_t1.cpp:8:30: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
8 | for(int i=0;i<h;i++)scanf("%s",&s[i]);
| ~~~~~^~~~~~~~~~~~