sob.cpp: In function 'int main()':
sob.cpp:38:20: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | for (int j=0 ; j<b.size() ; j++) {
| ~^~~~~~~~~
sob.cpp:54:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
54 | for (int j=0 ; j<b.size() ; j++) {
| ~^~~~~~~~~
sob.cpp:61:21: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
61 | for (int j=0 ; j<b.size() ; j++) {
| ~^~~~~~~~~
sob.cpp:65:22: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
65 | for (int j=st ; j<b.size() ; j++) {
| ~^~~~~~~~~
sob.cpp:27:7: warning: ignoring return value of 'int scanf(const char*, ...)' declared with attribute 'warn_unused_result' [-Wunused-result]
27 | scanf("%d%d", &n, &m);
| ~~~~~^~~~~~~~~~~~~~~~
sob.cpp:70:9: warning: 'pos' may be used uninitialized in this function [-Wmaybe-uninitialized]
70 | int pos;
| ^~~