bank.cpp: In function 'std::__cxx11::string tr(int, int)':
bank.cpp:19:19: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
while(res.size() < m)
~~~~~~~~~~~^~~
bank.cpp: At global scope:
bank.cpp:68:6: warning: ISO C++ forbids declaration of 'main' with no type [-Wreturn-type]
main()
^
bank.cpp: In function 'int main()':
bank.cpp:70:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d %d", &n, &m);
~~~~~^~~~~~~~~~~~~~~~~
bank.cpp:72:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &a[i]);
~~~~~^~~~~~~~~~~~~
bank.cpp:75:21: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
scanf("%d", &b[i]), mx += b[i];
~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~