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