mate.cpp: In function 'int main()':
mate.cpp:14:13: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'std::string' {aka 'std::__cxx11::basic_string<char>'} [-Wformat=]
14 | scanf("%s",s);
| ~^
| |
| char*
mate.cpp:14:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
14 | scanf("%s",s);
| ~~~~~^~~~~~~~
mate.cpp:46:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
46 | scanf("%d",&q);
| ~~~~~^~~~~~~~~
mate.cpp:48:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
48 | scanf("%d %c %c",&lg,&l1,&l2);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~