foo.cc: In function 'int calc(int, int)':
foo.cc:14:15: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
14 | if(r-i+1>=dic[j].size()){
| ~~~~~^~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:38:16: warning: comparison of integer expressions of different signedness: 'int' and 'std::__cxx11::basic_string<char>::size_type' {aka 'long unsigned int'} [-Wsign-compare]
38 | for(int i=0;i<s.size();++i){
| ~^~~~~~~~~
foo.cc:34:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
34 | scanf("%d",&m);
| ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务