tabletennis.cpp: In function 'int main()':
tabletennis.cpp:24:14: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
24 | scanf( "%d", &n );
| ~^ ~~
| | |
| | long long int*
| int*
| %lld
tabletennis.cpp:25:14: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
25 | scanf( "%d", &k );
| ~^ ~~
| | |
| | long long int*
| int*
| %lld
tabletennis.cpp:28:18: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
28 | scanf( "%d", &A[i] );
| ~^ ~~~~~
| | |
| | long long int*
| int*
| %lld
tabletennis.cpp:38:28: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | for(long long i=0;i<st.size();i++) {
| ~^~~~~~~~~~
tabletennis.cpp:42:28: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
42 | for(long long i=0;i<v.size();i++)
| ~^~~~~~~~~
tabletennis.cpp:43:19: warning: format '%d' expects argument of type 'int', but argument 2 has type '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} [-Wformat=]
43 | printf ("%d ", v[i]);
| ~^
| |
| int
| %lld
tabletennis.cpp:51:28: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
51 | for(long long i=0;i<st.size();i++) {
| ~^~~~~~~~~~
tabletennis.cpp:55:28: warning: comparison of integer expressions of different signedness: 'long long int' and 'std::vector<long long int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
55 | for(long long i=0;i<v.size();i++)
| ~^~~~~~~~~
tabletennis.cpp:56:19: warning: format '%d' expects argument of type 'int', but argument 2 has type '__gnu_cxx::__alloc_traits<std::allocator<long long int>, long long int>::value_type' {aka 'long long int'} [-Wformat=]
56 | printf ("%d ", v[i]);
| ~^
| |
| int
| %lld
tabletennis.cpp:24:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
24 | scanf( "%d", &n );
| ~~~~~^~~~~~~~~~~~
tabletennis.cpp:25:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
25 | scanf( "%d", &k );
| ~~~~~^~~~~~~~~~~~
tabletennis.cpp:28:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
28 | scanf( "%d", &A[i] );
| ~~~~~^~~~~~~~~~~~~~~