foo.cc: In function 'int main()':
foo.cc:29:10: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[150]' [-Wformat=]
29 | scanf("%s%s",&s1,&s2);
| ~^ ~~~
| | |
| | char (*)[150]
| char*
foo.cc:29:12: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'char (*)[150]' [-Wformat=]
29 | scanf("%s%s",&s1,&s2);
| ~^ ~~~
| | |
| char* char (*)[150]
foo.cc:29:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
29 | scanf("%s%s",&s1,&s2);
| ~~~~~^~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务