bank.cpp: In function 'std::__cxx11::string int_to_bit(int)':
bank.cpp:34:21: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while (res.size() < m) {
~~~~~~~~~~~^~~
bank.cpp: In function 'void read()':
bank.cpp:45:22: warning: format '%d' expects argument of type 'int*', but argument 2 has type '__gnu_cxx::__alloc_traits<std::allocator<short int> >::value_type* {aka short int*}' [-Wformat=]
scanf("%d", &a[i]);
^
bank.cpp:48:22: warning: format '%d' expects argument of type 'int*', but argument 2 has type '__gnu_cxx::__alloc_traits<std::allocator<short int> >::value_type* {aka short int*}' [-Wformat=]
scanf("%d", &b[i]);
^
bank.cpp: In function 'int solve()':
bank.cpp:87:1: warning: no return statement in function returning non-void [-Wreturn-type]
}
^
bank.cpp: In function 'void read()':
bank.cpp:41:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &m);
~~~~~^~~~~~~~~~~~~~~~~
bank.cpp:45:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i]);
~~~~~^~~~~~~~~~~~~
bank.cpp:48:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &b[i]);
~~~~~^~~~~~~~~~~~~