foo.cc: In function 'int main()':
foo.cc:67:12: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[50]' [-Wformat=]
67 | scanf("%d%s%s%s",&n,&_a,&_b,&_c);
| ~^ ~~~
| | |
| char* char (*)[50]
foo.cc:67:14: warning: format '%s' expects argument of type 'char*', but argument 4 has type 'char (*)[50]' [-Wformat=]
67 | scanf("%d%s%s%s",&n,&_a,&_b,&_c);
| ~^ ~~~
| | |
| char* char (*)[50]
foo.cc:67:16: warning: format '%s' expects argument of type 'char*', but argument 5 has type 'char (*)[50]' [-Wformat=]
67 | scanf("%d%s%s%s",&n,&_a,&_b,&_c);
| ~^ ~~~
| | |
| char* char (*)[50]
foo.cc:67:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
67 | scanf("%d%s%s%s",&n,&_a,&_b,&_c);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务