monochrome.cpp: In function 'int main()':
monochrome.cpp:34:10: warning: format '%s' expects argument of type 'char*', but argument 2 has type 'char (*)[400005]' [-Wformat=]
34 | scanf("%s",&str);
| ~^ ~~~~
| | |
| | char (*)[400005]
| char*
monochrome.cpp:45:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
45 | while(t<vw.size()&&vw[t]<=vb[i]+n) t++;
| ~^~~~~~~~~~
monochrome.cpp:46:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
46 | while(s<vw.size()&&vw[s]<vb[i]) s++;
| ~^~~~~~~~~~
monochrome.cpp:54:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
54 | while(t<vb.size()&&vb[t]<vw[i]) t++;
| ~^~~~~~~~~~
monochrome.cpp:55:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
55 | while(s<vb.size()&&vb[s]<vw[i]-n) s++;
| ~^~~~~~~~~~
monochrome.cpp:56:10: warning: comparison of integer expressions of different signedness: 'int' and 'std::vector<int>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
56 | while(r<vb.size()&&vb[r]<vw[i]-2*n) r++;
| ~^~~~~~~~~~
monochrome.cpp:33:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
33 | scanf("%d",&n);
| ~~~~~^~~~~~~~~
monochrome.cpp:34:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
34 | scanf("%s",&str);
| ~~~~~^~~~~~~~~~~