selling_rna.cpp: In function 'int main()':
selling_rna.cpp:52:10: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'll*' {aka 'long long int*'} [-Wformat=]
52 | scanf("%d%d", &n, &m);
| ~^ ~~
| | |
| int* ll* {aka long long int*}
| %lld
selling_rna.cpp:52:12: warning: format '%d' expects argument of type 'int*', but argument 3 has type 'll*' {aka 'long long int*'} [-Wformat=]
52 | scanf("%d%d", &n, &m);
| ~^ ~~
| | |
| int* ll* {aka long long int*}
| %lld
selling_rna.cpp:54:11: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'str*' {aka 'std::__cxx11::basic_string<char>*'} [-Wformat=]
54 | scanf("%s", &s[i]);
| ~^ ~~~~~
| | |
| | str* {aka std::__cxx11::basic_string<char>*}
| char*
selling_rna.cpp:58:11: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'str*' {aka 'std::__cxx11::basic_string<char>*'} [-Wformat=]
58 | scanf("%s%s", &t[i * 2], &t[i * 2 + 1]);
| ~^ ~~~~~~~~~
| | |
| char* str* {aka std::__cxx11::basic_string<char>*}
selling_rna.cpp:58:13: warning: format '%s' expects argument of type 'char*', but argument 3 has type 'str*' {aka 'std::__cxx11::basic_string<char>*'} [-Wformat=]
58 | scanf("%s%s", &t[i * 2], &t[i * 2 + 1]);
| ~^ ~~~~~~~~~~~~~
| | |
| char* str* {aka std::__cxx11::basic_string<char>*}
selling_rna.cpp:52:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
52 | scanf("%d%d", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~
selling_rna.cpp:54:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
54 | scanf("%s", &s[i]);
| ~~~~~^~~~~~~~~~~~~
selling_rna.cpp:58:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
58 | scanf("%s%s", &t[i * 2], &t[i * 2 + 1]);
| ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~