tabletennis.cpp: In function 'int main()':
tabletennis.cpp:25:14: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
25 | scanf( "%d", &n );
| ~^ ~~
| | |
| | long long int*
| int*
| %lld
tabletennis.cpp:26:14: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
26 | scanf( "%d", &k );
| ~^ ~~
| | |
| | long long int*
| int*
| %lld
tabletennis.cpp:29:18: warning: format '%d' expects argument of type 'int*', but argument 2 has type 'long long int*' [-Wformat=]
29 | scanf( "%d", &A[i] );
| ~^ ~~~~~
| | |
| | long long int*
| int*
| %lld
tabletennis.cpp:39: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]
39 | for(long long i=0;i<st.size();i++) {
| ~^~~~~~~~~~
tabletennis.cpp:43: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]
43 | for(long long i=0;i<v.size();i++)
| ~^~~~~~~~~
tabletennis.cpp:44: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=]
44 | printf ("%d ", v[i]);
| ~^
| |
| int
| %lld
tabletennis.cpp:52: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]
52 | for(long long i=0;i<st.size();i++) {
| ~^~~~~~~~~~
tabletennis.cpp:56: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]
56 | for(long long i=0;i<v.size();i++)
| ~^~~~~~~~~
tabletennis.cpp:57: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=]
57 | printf ("%d ", v[i]);
| ~^
| |
| int
| %lld
tabletennis.cpp:25:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
25 | scanf( "%d", &n );
| ~~~~~^~~~~~~~~~~~
tabletennis.cpp:26:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
26 | scanf( "%d", &k );
| ~~~~~^~~~~~~~~~~~
tabletennis.cpp:29:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
29 | scanf( "%d", &A[i] );
| ~~~~~^~~~~~~~~~~~~~~