foo.cc: In function 'int main()':
foo.cc:15:11: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'std::string*' {aka 'std::__cxx11::basic_string<char>*'} [-Wformat=]
15 | scanf("%s%d%d%c%c%d",&x,&a,&c,&d,&e,&b);
| ~^ ~~
| | |
| char* std::string* {aka std::__cxx11::basic_string<char>*}
foo.cc:15:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
15 | scanf("%s%d%d%c%c%d",&x,&a,&c,&d,&e,&b);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务